module Aucklandia::Shapes

Constants

SHAPES_ENDPOINT

Public Instance Methods

get_shapes_by_trip(trip_id) click to toggle source
# 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