mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
fix(gbfs): exclude stations with invalid coordinates
Reject non-numeric and out-of-range feed coordinates before they reach the map or bike-share queries. Preserve numeric strings, aliases and zero. Cover malformed records at the parser and public query boundaries. Signed-off-by: Bortlesboat <[email protected]>
This commit is contained in:
5 files changed
+132
-4
No files matched your search
@@ -1265,7 +1265,11 @@ camera is refused there with a JSON 404 and is served solely through
|
||||
## GBFS upstream bounds
|
||||
|
||||
Station information is normalized in `src/sources/gbfsStations.js` for both the
|
||||
globe layer and `get_bike_share`. Names accept legacy strings or GBFS v3 Localized
|
||||
globe layer and `get_bike_share`. Stations with missing, blank, nonnumeric or
|
||||
out-of-range coordinates (latitude outside ±90, longitude outside ±180) are
|
||||
skipped. Numbers and nonblank numeric strings are accepted, including genuine
|
||||
zero and the `latitude`/`longitude` aliases; other JSON types are rejected.
|
||||
Names accept legacy strings or GBFS v3 Localized
|
||||
String arrays regardless of the reported feed version. Nonempty English text
|
||||
(including regional `en-*` tags, case-insensitive) takes precedence, then the first
|
||||
usable translation. An unusable `name` falls back to `short_name` with the same
|
||||
|
||||
Reference in new issue
Block a user