google-directions-ruby icon indicating copy to clipboard operation
google-directions-ruby copied to clipboard

Ruby-wrapper for Google Directions API. Can return the drive time and driving distance between two places.

Results 8 google-directions-ruby issues
Sort by recently updated
recently updated
newest added

After upgrading Ruby, we noticed that this method no longer works, so we change the open(@url) to Net::HTTP.get_response(URI(@url)) and it works fine now.

Google wants base url to be https now.

Would be super helpful to get walking estimations too, biking estimates too. EDIT: Ah I see I can pass in `{mode: "walking"}` into the `opts` argument. This is cool, but...

`directions = GoogleDirections.new(origin, destination)` origin and/or destination being latitude/longitude. Preferably we could do either/or for each one.

http://stackoverflow.com/questions/19838399/nomethoderror-in-devise-registrations-sessions-undefined-method-new-for-ni

Transcribe seemed to be working incorrectly with commas in the coordinate style inputs. I simply ignored it as a quick fix. Works.

Added httpi library, and use that instead to make requests, as I can functionally choose the adapter by passing in the new use_em option with opts on initialize.