When i’m travelling, there’s multiple bus stops i could take and no quick way to find out which stop has the next bus for me.

I’m writing a page to list the nearest bus stops and their upcoming buses by looking at the GPS location provided by the browser.

Once i have the latitude and longitude, i can use the call below to get a list of nearby stoppoints.


Once i have the stop point, i can get a list of upcoming arrivals along with their estimated arrival time, destination, route, etc.