No commit activity in last 3 years
No release in over 3 years
Download and stitch google map tiles into a single image.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

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.