google-maps-services-ruby icon indicating copy to clipboard operation
google-maps-services-ruby copied to clipboard

Add full response for directions api

Open jguthrie100 opened this issue 8 years ago • 2 comments

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)

jguthrie100 avatar Jun 03 '17 19:06 jguthrie100

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 avatar Jun 03 '17 20:06 coveralls

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 avatar Jun 03 '17 20:06 coveralls