Class: Geogle::Directions

Inherits:
Base
  • Object
show all
Defined in:
lib/geogle/directions.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Geogle::Base

Instance Method Details

#routes(origin, destination, options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/geogle/directions.rb', line 5

def routes(origin, destination, options = {})
  params = @parametizer.directions(origin, destination, options)
  body = request(URL::DIRECTIONS, params)
  return body["routes"] if @raw
  Parser.routes(body["routes"])
end