Update README.md

This commit is contained in:
2026-07-12 17:36:53 +10:00
parent 0bf2880d36
commit 2c8a4664a4
+1 -1
View File
@@ -13,7 +13,7 @@ The CTA API can be fairly trivially queries to get a JSON response with the requ
To query XML: https://lapi.transitchicago.com/api/1.0/ttarrivals.aspx?key=<KEYID>&mapid=<mapID> To query XML: https://lapi.transitchicago.com/api/1.0/ttarrivals.aspx?key=<KEYID>&mapid=<mapID>
To query JSON: https://lapi.transitchicago.com/api/1.0/ttarrivals.aspx?key=<KEYID>&mapid=40380&outputType=JSON To query JSON: https://lapi.transitchicago.com/api/1.0/ttarrivals.aspx?key=<KEYID>&mapid=40380&outputType=JSON
Simple HTTP POST queries use the '?' to define start of parameters, and each parameter is seperated by an '&' Simple HTTP queries use the '?' to define start of parameters, and each parameter is seperated by an '&'
In the above, we are querying the 'ttarrivals' endpoint, used for the Arrivals API In the above, we are querying the 'ttarrivals' endpoint, used for the Arrivals API
KEYID is your API key KEYID is your API key
MAPID is the ID of a station on the CTA, such as "40380". These station numbers are available on the ttdocs website. MAPID is the ID of a station on the CTA, such as "40380". These station numbers are available on the ttdocs website.