Module: Gistance::Client::DistanceMatrix
- Included in:
- Gistance::Client
- Defined in:
- lib/gistance/client/distance_matrix.rb
Overview
Methods for the Distance Matrix API
Instance Method Summary collapse
-
#distance_matrix(options = {}) ⇒ Hashie::Mash
Calculate distances for a matrix of origins and destinations.
Instance Method Details
#distance_matrix(options = {}) ⇒ Hashie::Mash
Calculate distances for a matrix of origins and destinations.
18 19 20 21 22 23 |
# File 'lib/gistance/client/distance_matrix.rb', line 18 def distance_matrix(={}) [:origins] = format_locations_array([:origins]) [:destinations] = format_locations_array([:destinations]) delete_status_from_response(get()) end |