edwardsamuel / google-maps-services-ruby

Ruby gem for Google Maps Web Service APIs
Apache License 2.0
91 stars 52 forks source link

Add full response for directions api #10

Open jguthrie100 opened 7 years ago

jguthrie100 commented 7 years ago

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)

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.3%) to 99.73% when pulling a86563b02954803a7aeec97f4d6f810a51a51e16 on jguthrie100:add_full_response_for_directions_api into 46746fd72e90c75855baa88aee04e41c84ff32c9 on edwardsamuel:master.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.3%) to 99.73% when pulling a86563b02954803a7aeec97f4d6f810a51a51e16 on jguthrie100:add_full_response_for_directions_api into 46746fd72e90c75855baa88aee04e41c84ff32c9 on edwardsamuel:master.