google-map-stitch
Download and stitch google map tiles into a single image.
Setup
gem install google-map-stitch
Usage
Define a section of map and zoom level
require 'google-map-stitch'
# entire map
engine = GMS::Engine.new({:zoomLevel=>2})
# subsection (South America)
engine = GMS::Engine.new({
:startX => 130,
:endX => 214,
:startY => 236,
:endY => 353,
:zoomLevel => 9
})
# subsection (Mexico)
engine = GMS::Engine.new({
:startX => 10,
:endX => 19,
:startY => 25,
:endY => 31,
:zoomLevel => 6
})
Download Tiles
downloader = GMS::Downloader.new(engine.tiles, 'tiles_folder')
downloader.process
Combine Tiles
stitcher = GMS::Stitcher.new('tiles_folder', 'map.png')
stitcher.process
Copyright (c) 2012 Tyler Kellen. See LICENSE for further details.