I am trying to get the location of arrivals when I use the endpoint https://api.tfl.gov.uk/Line/victoria/Arrivals it gives responses like Between Finsbury Park and Seven Sisters or Approaching Blackhorse Road.
This seems rather inconsistent, I was wondering if there is a list of possible connectors like “Between” or “Approaching” that are used. Or alternatively a better way to get the locations of the trains perhaps giving back coordinates.
The currentLocation property is only intended to be used to display that piece of text in a user interface. I wouldn’t recommend trying to parse or interpret that property.
We do not provide latitude and longitude of London Underground trains, although the Trackernet API does have a trackCode property that may be of use to you. Please see this post for more information on location data for London Underground trains:
As for buses, we publish location data to the Bus Open Data Service. You can access this data in SIRI-VM format from there.