Live bus and river bus arrivals API (instant)

Hi,

I was trying to get the information about the bus stop closer to the current position and I have seen this API: Live bus and river bus arrivals API (instant) e.g: “http://countdown.api.tfl.gov.uk/interfaces/ura/instant_V1?Circle=51.49598,-0.14191,250&StopPointState=0&ReturnList=StopCode1,StopPointName,Bearing,StopPointIndicator,StopPointType,Latitude,Longitude

But i have read that we should call directly to “https://api.tfl.gov.uk/” instead of use other domains that are old domains and APIs.

In fact I have realized that I can not add the API_ID or API_KEY to the “countdown.api.tfl.gov.uk”.

Could you please let me know what is the official recommendation?

Many thanks,

Hi,

The feed you mention there is Countdown which is one of our legacy source data feeds and does not require an App or API key.

Our official line is that wherever possible, to call our Unified API (https://api.tfl.gov.uk) with your App & API keys.

One of of blog articles, Location of Things should give you some ideas on how to formulate a call including Lat/Long.

Thanks,
James Evans
TfL Online Operations

1 Like

Hi @jamesevans,

Does the Unified API offer the same or similar stream functionality for vehicles? My app requires some kind of websocket to subscribe to in order to get the location of all vehicles in service in real-time.

Thanks,
Nathan Odong