StaticMaps (Google Static Maps V2 API)
(Work in Progress...)
Simple Ruby Wrapper for Google Static Maps V2 API
Installation
Add this line to your application's Gemfile:
gem 'static_maps'
And then execute:
$ bundle
Or install it yourself as:
$ gem install static_maps
Usage
StaticMaps::API.fetch
=> "http://maps.googleapis.com/maps/api/staticmap?visual_refresh=true¢er=Stan,Mountain+View,CA&size=640x640&sensor=false&zoom=16"
StaticMaps::API.fetch({:center => 'Boston, MA', :size => '200x200'})
=> "http://maps.googleapis.com/maps/api/staticmap?visual_refresh=true¢er=Boston,MA&size=200x200&sensor=false&zoom=16"
...To be continued
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request