https://github.com/jacobious52/metro
adelaide metro realtime transport timetable go api
https://github.com/jacobious52/metro
Last synced: about 2 months ago
JSON representation
adelaide metro realtime transport timetable go api
- Host: GitHub
- URL: https://github.com/jacobious52/metro
- Owner: Jacobious52
- Created: 2017-04-11T07:37:07.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-11T07:43:28.000Z (about 9 years ago)
- Last Synced: 2025-12-26T01:54:50.909Z (6 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# metro
adelaide metro realtime transport timetable go api
usage:
`metro.FetchStop(stopID string, previewTimeSeconds string)` returns `RealTimeResponse`
example:
```
response := metro.FetchStop("12624", "120")
for _, stop := range response.StopMonitoringDelivery {
for _, visted := range stop.MonitoredStopVisit {
fmt.Println(visted.MonitoredVehicleJourney.Lineref.Value, "-", visted.MonitoredVehicleJourney.MonitoredCall.LatestExpectedArrivalTime)
}
}
```
stopID lookup coming