diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2021-07-12 18:41:30 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2021-07-12 18:41:30 +0200 | 
| commit | 12ea2edf8e9afa531e4ac799085d02a635c4dfcb (patch) | |
| tree | 489d6a57ce833e436f6ec2361696a671b094fb20 /bin | |
| parent | 51b2d0da81accffe5cffa1552a00c9545827bde3 (diff) | |
show up to ten nearby stops
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/nvm | 2 | 
1 files changed, 1 insertions, 1 deletions
| @@ -333,7 +333,7 @@ async def ajax_geolocation(request):      request_data = await request.json()      lat = request_data["lat"]      lon = request_data["lon"] -    request_url = f"{db_rest_api}/stops/nearby?latitude={lat}&longitude={lon}" +    request_url = f"{db_rest_api}/stops/nearby?latitude={lat}&longitude={lon}&results=10"      logging.debug(f"Requesting stops near {lat}/{lon} from {request_url}")      async with aiohttp.ClientSession() as session:          async with session.get(request_url) as response: | 
