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
At this moment, client.directions returns only [:routes] element of the JSON response from Google Directions API. But in some cases it needs to handle [:status] element or [:available_travel_modes]. So it could be better if it just returns full response or we can specify it.
The text was updated successfully, but these errors were encountered:
jguthrie100
added a commit
to jguthrie100/google-maps-services-ruby
that referenced
this issue
Jun 3, 2017
…amuel#6)
Added a feature that allows 'return_type: :all' to be passed into the client.directions method, which returns the full Hash output, rather than just the [:routes] entry
Can change the argument to be 'return_type: :status' if you just want the status, or leave it blank to get the [:routes] value (i.e. the same output as is the case without this change)
return get('/maps/api/directions/json', params)[:routes]
At this moment, client.directions returns only [:routes] element of the JSON response from Google Directions API. But in some cases it needs to handle [:status] element or [:available_travel_modes]. So it could be better if it just returns full response or we can specify it.
The text was updated successfully, but these errors were encountered: