edwardsamuel / google-maps-services-ruby

Ruby gem for Google Maps Web Service APIs
Apache License 2.0
91 stars 52 forks source link

There's no tests using latitude and longitude in the directions_spec.rb #13

Open mateusluizfb opened 6 years ago

mateusluizfb commented 6 years ago

I was checking if there's support for lat and lng parameters in the gem, but I didn't found any tests in the directions_spec.rb using them as parameters, I'm gonna use the directions passing lat and lng and i'll post the feedback here.

EDIT: If you pass the lat and lng as string the result is the same: routes = gmaps.directions( "#{order.latitude},#{order.longitude}", "#{customer.latitude}, #{customer.longitude}", mode: "driving", alternatives: false, units: "metric" ) I'll try to do the tests later.