OneBusAway / wayfinder

Modern web app frontend for OneBusAway built in JavaScript with SvelteKit
GNU Affero General Public License v3.0
4 stars 1 forks source link

Load stops for the entire viewport #51

Closed aaronbrethorst closed 1 week ago

aaronbrethorst commented 2 weeks ago

User story

as a transit rider, I want to see my entire screen covered with stops when I open the web app, so I can feel confident that my area has a bus stop nearby

Right now, we load stops for the center of the viewport but the size of the viewport can easily be greater than what will be loaded and returned by the API. We should load stops across the entire viewport.

Screenshot

image

Concept

I added a circle around the area that is originally loaded. I'd love to see us calculate similarly sized bounding boxes (or circles) that can load stops for the rest of the viewport in the least number of API calls. We should cache these results locally based on the current zoom level so we don't repeat API calls.

bubbles