Skip to content

Return full response for Directions API #6

Description

@SunnyKarma

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions