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.
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.