Class: Geogle::Directions
Instance Method Summary collapse
Methods inherited from Base
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, = {}) params = @parametizer.directions(origin, destination, ) body = request(URL::DIRECTIONS, params) return body["routes"] if @raw Parser.routes(body["routes"]) end |