OC Transpo API: Making Requests

106 views
Skip to first unread message

Jason B

unread,
Nov 10, 2015, 10:47:50 PM11/10/15
to Open Data Ottawa
Just wondering, is it possible to make requests using this form: 

https://api.octranspo1.com/v1.2/Gtfs/?appID={appID}&apiKey={apiKey}&table=stops&column=stop_id&value=AA010&order_by=stop_code&direction=desc&limit=10&format=json


instead of this form: 
curl -d "appID={appID}&apiKey={apiKey}&table=stops&column=stop_id&value=AA010&order_by=stop_code&direction=desc&limit=10&format=json" https://api.octranspo1.com/v1.2/Gtfs ?


Any help will be appreciated. Thanks in advance.

Cyrus Kafai Wu

unread,
Nov 11, 2015, 7:33:43 PM11/11/15
to Open Data Ottawa
Yes, and no!

I have used this before and programmed for this. It works fine but the data is out of date. As in the schedule is set to 2009 when I worked with this back in 2014.

So, it's not really the best idea.

But you can access the same information but up to the latest date via this link:


No problem!
Reply all
Reply to author
Forward
0 new messages