Skip to content

Instantly share code, notes, and snippets.

@tjpeden
Created September 17, 2010 19:48
Show Gist options
  • Save tjpeden/584815 to your computer and use it in GitHub Desktop.
Save tjpeden/584815 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'gmapper'
include Google::Maps::Static
address = '1502 Denver AV, 11706' # Looks funny because that's how I got it
options = {
center: address,
zoom: 17,
size: [640, 640],
maptype: :hybrid,
format: :png
}
map = Map.new( options )
map << Markers.new( address, color: :blue )
map.save 'image.png'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment