Skip to content

Commit 5c82db4

Browse files
committed
picks random stops in switzerland only
1 parent d806855 commit 5c82db4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

via-ui/src/api/gtfs/service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ export class Service {
4949
CAST(stop_lon AS DOUBLE) AS stop_lon
5050
FROM stops
5151
WHERE COALESCE(NULLIF(TRIM(location_type), ''), '0') = '0'
52+
AND CAST(stop_lat AS DOUBLE) BETWEEN 45.8 AND 47.8
53+
AND CAST(stop_lon AS DOUBLE) BETWEEN 5.9 AND 10.5
5254
ORDER BY RANDOM()
5355
LIMIT 1
5456
`)

0 commit comments

Comments
 (0)