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.

https://api.tfl.gov.uk/Stoppoint?lat=51.506654&lon=-0.043586&stoptypes=…

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

https://api.tfl.gov.uk/StopPoint/490005183E/arrivals

References

Advertisements