List of Station's stop_ids


#1

I’m having trouble locating station’s stop_ids. I’m using the depature_mon API and I’d like to be submitting stop ids but to get them I have to use the stop_finder API. The stop_ids within stops.txt don’t seem to work with the departure_mon API

Any help would be appreciated


#2

Hi Lockie,
The API does support the use of the stops listed in the GTFS stops file, I use it that way myself.

Are you able to give me some more detail? Maybe just post the whole query string or variables you are using and I’ll take a look.


#3

Hey,
Thanks for your response. Upon some more testing, I’ve found that you can only use the platform stop_ids.

For example, Sydenham Station’s stop_id is 204420 and with the request of https://api.transport.nsw.gov.au/v1/tp/departure_mon?outputFormat=rapidJSON&coordOutputFormat=EPSG%3A4326&mode=direct&type_dm=stop&name_dm=204420&depArrMacro=dep&itdDate=20170511&itdTime=1200&TfNSWDM=true&version=10.2.1.15 I get the response: { "version": "10.2.1.15", "systemMessages": [], "location": [] }
Using Platform 1’s stop_id, which is 204471 with the request of https://api.transport.nsw.gov.au/v1/tp/departure_mon?outputFormat=rapidJSON&coordOutputFormat=EPSG%3A4326&mode=direct&type_dm=stop&name_dm=204471&depArrMacro=dep&itdDate=20170511&itdTime=1200&TfNSWDM=true&version=10.2.1.15 yield’s the depatures from that platform, so it actually works.

Thanks