Module: Azimuth::Client::RouteMatrix
- Included in:
- Azimuth::Client
- Defined in:
- lib/azimuth/client/route_matrix.rb
Overview
Methods for the Route Matrix API
Instance Method Summary collapse
-
#route_matrix(locations, options = {}) ⇒ Hashie::Mash
Get calculation of the distances and driving times between locations.
Instance Method Details
#route_matrix(locations, options = {}) ⇒ Hashie::Mash
Get calculation of the distances and driving times between locations.
16 17 18 19 20 |
# File 'lib/azimuth/client/route_matrix.rb', line 16 def route_matrix(locations, ={}) parameters = { locations: locations, options: } format_response(post('routematrix', parameters)) end |