Some ResRobot ids, like 740016962 lead to SVC_LOC error - how should we assign agency_id to name?
Hello, I think I understood the stop id mapping for different agencies meanwhile. Also the special case with site ids for SL Stockholm. So I plan to use ResRobot only, so I can address always the same service. However, I found out that e.g.
res robot stop id=740016962
which I retrieved for agency id 173 and their specific stop id 2 will not work:
https://api.resrobot.se/v2/departureBoard?key=*...
How can I find out or get a list which stop ids are (not) working for res_robot? Furthermore I did this mapping with agency_id, their specific stop (or for SL area) code and res_robot stop code, but it bases on ids only, is there an API to get just an assignment "ID == agency_name", or do we have to download the GTFS.zip and extract its agency.txt?
Följ inlägget
0
följare
Is the following assumption correct?
Only stop_ids present in the stops.txt of the GTFS.zip ("Sweden 2") can be requested by ResRobot Pole & Schedules ("ResRobot - Stolptidtabeller 2"). So:
Any stop_ids retrieved by mapping specific agency stop ids (or area codes in case of SL Stockholm) to ResRobot stop ids, which are NOT PRESENT in the stops.txt of the GTFS.zip, CANNOT be requested by ResRobot realtime API.
True or wrong?
Remaining questions:
1) is there a way to request all "valid" ResRobot stop ids via an API?
2) is there a way to request all agency names and their id via an API?
Or is it like that, we should use agency.txt and stops.txt from the GTFS.zip?
If so, how often does the infrastructure data (stops and agencies) change?
How can I find out or get a list which stop ids are (not) working for res_robot?
GTFS stops.txt have a complete list of stops that have traffic.
is there an API to get just an assignment "ID == agency_name", or do we have to download the GTFS.zip and extract its agency.txt?
Yes you have to download GTFS.zip and extract it from agency.txt
Is the following assumption correct?
Yes
1) is there a way to request all "valid" ResRobot stop ids via an API?
No
2) is there a way to request all agency names and their id via an API?
No
If you in need a list of agency or stops you should use the list from GTFS sweden.zip.
Thanks a lot for the clarification.
Can you say, how often stop information might change?
I think for agency, it will hopefully (almost) never change.
Just to adapt when to refresh the infrastructure data.
We update sweden.zip 2-5 times per week, and some of the stops can change. But a majority of stops is changed very seldom.
I would recommend you to always keey sweden.zip updated with the latest changes.
Best regards
Daniel