justin
November 9, 2017, 9:12pm
1
Hi, the following request returns bus journeys from Brandon Hill Cemetery to Shannon Corner Superstores:
https://api.tfl.gov.uk/Journey/JourneyResults/BANDON%20HILL%20CEMETERY/to/SHANNON%20CORNER%20SUPERSTORES ?
This works fine but some bus stop names are not unique. Is it possible to use Stop_Code_LBSL, Bus_Stop_Code or Naptan_Atco from your ‘London Bus Stops.xls’ document to uniquely identify bus stops. If so please include some examples.
Tim
November 13, 2017, 12:07pm
2
To get a list of Bus Stops, use the StopPoint API e.g.
https://api.tfl.gov.uk/StopPoint/Mode/bus?page=1
The API is paginated so if you want to retrieve all the bus stops you’ll need to request subsequent pages…
If you just want to get the full StopPoint details for the AtcoCode, get the StopPoint by Id:
https://api.tfl.gov.uk/StopPoint/490010374A
More info on this API in this blog post .
1 Like
justin
November 15, 2017, 6:56pm
3