Skip to content

Commit dac0577

Browse files
committed
feat(apix): elevation coordinates count in 1..100
1 parent 93e36b4 commit dac0577

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • lib/src/main/kotlin/com/openmeteo/apix/elevation

lib/src/main/kotlin/com/openmeteo/apix/elevation/Elevation.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ open class Elevation(
3434
)
3535

3636
init {
37+
require(latitude.size in 1..100)
3738
require(longitude.size == latitude.size)
39+
// require(longitude.size in 1..100)` // if (x in 0..100 && y == x) then (y in 0..100)
3840
}
3941

4042
@Transient

0 commit comments

Comments
 (0)