You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: