jeancochrane / mellow-bike-map

🚲 Web app and routing API for finding safe, chill bike routes. Like Google Maps if it took you through cozy side streets.
https://mellowbikemap.com
MIT License
13 stars 5 forks source link

Bias autocomplete to chicago #43

Open kalilsn opened 2 years ago

kalilsn commented 2 years ago

Right now the autocomplete dropdown is biased based on your gps location, but that's unreliable and unnecessary. We should replace that code with hardcoded bounds for the city of chicago and consider setting strictBounds.

@jeancochrane suggests taking the coordinates for the Loop and adding a radius of ~20 miles, which is roughly the distance from the Loop to the furthest community that includes routes on our map (Hegewisch).