Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grassdog/perth-timetable
https://github.com/grassdog/perth-timetable
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/grassdog/perth-timetable
- Owner: grassdog
- Created: 2013-01-14T05:23:54.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-14T05:25:45.000Z (almost 12 years ago)
- Last Synced: 2024-11-06T15:59:11.946Z (about 2 months ago)
- Language: Ruby
- Size: 127 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
Awesome Lists containing this project
README
= Perth Timetable
Service to supply times for departing buses and trains for a specific stop.
Data is taken from the transperth google feed. See doc/get_rawdata.sh to retrieve your own copy of the data.= Timetable
Retrieve departure tiems of all services at a specific stop.
/time_table/stop_number/date (/time_table/10066/2012-09-17)
* stop_number can be a stop with child stops or a child stop itself
* date ISO formatted date yyyy-mm-ddThere is the option to add a set of routes to narrow down the selection.
(?routes[][210]=To%20Esplanade%20Busport&routes[][211]=To%20Esplanade%20Busport)
The format being: routes[][route_number]=headsign
= Stops
Get a list of all stops. This list only includes top level stops, so no stop with a parent stop will be included.
/stops?start_lat=#&start_long=#&end_lat=#&end_long=# (/stops?start_lat=-31.929219&start_long=115.841290&end_lat=-31.963595&end_long=115.881373)
* start coordinates are for top left corner, end coordinates for bottom right
= Routes
Retrieve all routes that pass through a stop.
/routes/stop_number (/routes/59)
* stop_number can be a child or parent stop. If the stop has child stops all routes passing through any of it's children are listed as well.