Module: Aucklandia::StopTimes
- Included in:
- Client
- Defined in:
- lib/aucklandia/stop_times.rb
Constant Summary collapse
- STOP_TIMES_ENDPOINT =
'/gtfs/stopTimes'
Instance Method Summary collapse
Instance Method Details
#get_stop_times_by_trip_id(trip_id) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/aucklandia/stop_times.rb', line 6 def get_stop_times_by_trip_id(trip_id) url = build_url(BASE_URL, STOP_TIMES_ENDPOINT, '/tripId/', trip_id) response = get(url) JSON.parse(response)['response'] end |