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_travelmodes]. So it could be better if it just returns full response or we can specify it.
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_travelmodes]. So it could be better if it just returns full response or we can specify it.