Skip to content

Commit 9834a1d

Browse files
authored
Add more detailed validation of geolocation coordinates. (#902)
* Add more detailed validation of geolocation coordinates. * Add validation for "latitude" and "longitude".
1 parent 4c38a27 commit 9834a1d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.bs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5629,13 +5629,13 @@ The <dfn export for=commands>emulation.setGeolocationOverride</dfn> command modi
56295629
}
56305630

56315631
emulation.GeolocationCoordinates = {
5632-
latitude: float,
5633-
longitude: float,
5634-
? accuracy: float .default 1.0,
5632+
latitude: -90.0..90.0,
5633+
longitude: -180.0..180.0,
5634+
? accuracy: (float .ge 0.0) .default 1.0,
56355635
? altitude: float / null .default null,
5636-
? altitudeAccuracy: float / null .default null,
5637-
? heading: float / null .default null,
5638-
? speed: float / null .default null,
5636+
? altitudeAccuracy: (float .ge 0.0) / null .default null,
5637+
? heading: (0.0...360.0) / null .default null,
5638+
? speed: (float .ge 0.0) / null .default null,
56395639
}
56405640
</pre>
56415641
</dd>

0 commit comments

Comments
 (0)