Transport for Toronto, Canada
TTC(多伦多公车局)
- 认证方式
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 交通运输
- 文档 / URL
- https://myttc.ca/developers
简介
myttc.ca 以 JSON 提供多伦多公车局(TTC)的时刻表和到站信息——免密钥(实测可用)。
快速开始
站点到站信息(实测可用):
curl "https://myttc.ca/sherbourne_station.json"
{
"stop": {
"name": "Sherbourne Station",
"routes": [
{
"routeName": "75",
"routeShortName": "75",
"stops": [ { "name": "Sherbourne Station", "lat": 43.67, "lon": -79.37, "times": [ { "departureTime": 1728000000, "departureTimeAsText": "9:00pm" } ] } ]
}
]
}
}
认证方式
无需认证——免密钥。
速率限制与注意事项
- 免费;请礼貌使用——没有公开的硬性限制。
- URL 用站名作 slug:
https://myttc.ca/{站名}.json。 - 返回线路、站点和发车时间。
常见问题
myttc 免费吗? 是的——免费且免密钥(实测)。
怎么查询站点?
https://myttc.ca/{站名}.json。
返回什么数据? 线路、站点和发车时间。
交通运输 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| ADS-B Exchange Access real-time and historical data of any and all airborne aircraft | No auth | Yes | Unknown | ↗ |
| airportsapi Get name and website-URL for airports by ICAO code | No auth | Yes | Unknown | ↗ |
| AIS Hub Real-time data of any marine and inland vessel equipped with AIS tracking system | API Key | No | Unknown | ↗ |
| Amadeus for Developers Travel Search - Limited usage | OAuth | Yes | Unknown | ↗ |
| apilayer aviationstack Real-time Flight Status & Global Aviation Data API | OAuth | Yes | Unknown | ↗ |