Skip to content

ina6ra/google-maps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps

Installation

gem install google-maps

Usage Examples

Google::Maps.distance("Science Park, Amsterdam", "Deventer")
 #=> "104 km"
Google::Maps.duration("Science Park, Amsterdam", "Deventer")
 #=> "1 hour 12 mins"

route = Google::Maps.route("Science Park, Amsterdam", "Deventer")
route.distance.text
 #=> "104 km"
route.duration.text
 #=> "1 hour 12 mins"
route.distance.value
 #=> 103712
route.duration.value
 #=> 4337

Testing

Run all tests:

rspec spec/

Copyright

Copyright (c) 2011 Zilverline / Daniël van Hoesel. See LICENSE for details.

About

Ruby wrapper for the Google Maps API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%