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&center=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&center=Boston,MA&size=200x200&sensor=false&zoom=16"

...To be continued

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request