Module: Aucklandia::Shapes

Included in:
Client
Defined in:
lib/aucklandia/shapes.rb

Constant Summary collapse

SHAPES_ENDPOINT =
'/gtfs/shapes/tripId/'

Instance Method Summary collapse

Instance Method Details

#get_shapes_by_trip(trip_id) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/aucklandia/shapes.rb', line 6

def get_shapes_by_trip(trip_id)
  url = build_url(BASE_URL, SHAPES_ENDPOINT, trip_id)

  response = get(url)

  JSON.parse(response)['response']
end