Class: MapQuest
Class Method Summary collapse
Class Method Details
.distance(from, to) ⇒ Object
15 16 17 18 |
# File 'lib/mapqdist.rb', line 15 def self.distance(from, to) = {:query => {'from' => from, 'to' => to}} get('/routematrix',)['distance'][1] end |