Skip to content

fers4t/go-map-downloader

 
 

Repository files navigation

go-map-downloader

build_badge

English | 中文

Map downloader for golang. It supports multiple map type:

  • google satellite
  • google image
  • google terrain
  • amap satellite
  • amap cover
  • amap image

Feature

  • Download map tile picture
  • Combine tile to a big map

Install

Gitpod (recommended)

gitpod_badge

You can open this project on Gitpod by clicking above. Gitpod is a complete cloud development environment that you can use as a remote VSCode. This allows you to not need to configure your local environment.

Because the compile command is already run, you can use the binary directly: bin/go-map-downloader . Try running:

./bin/go-map-downloader -l 139.278433 -t 35.968355 -r 140.506452 -b 35.427143 -min 11 -max 11 -type GoogleSatellite -p bin/save

The results:

gitpod_result

Local installation

go get -u github.com/Icemap/go-map-downloader

Example

google satellite

./go-map-downloader -l 139.278433 -t 35.968355 -r 140.506452 -b 35.427143 -min 11 -max 11 -type GoogleSatellite

google satellite

amap image

./go-map-downloader -l 139.278433 -t 35.968355 -r 140.506452 -b 35.427143 -min 11 -max 11 -type AMapImage

amap_image

help

./go-map-downloader -h
Usage of ./go-map-downloader:
  -b float
        bottom latitude
  -c    combine same level map together (default true)
  -g int
        goroutine nums (default 50)
  -l float
        left longitude
  -max int
        map max level (default 3)
  -min int
        map min level (default 1)
  -p string
        map save path (default "/tmp")
  -q int
        query file per second number (default 500)
  -r float
        right longitude
  -retry int
        max retry num (default 3)
  -t float
        top latitude
  -type string
        map type (GoogleSatellite/GoogleImage/GoogleTerrain/AMapSatellite/AMapCover/AMapImage) (default "GoogleSatellite")

About

a map downloader for golang. It supports multiple map type: google satellite/google image/google terrain/amap satellite/amap cover/amap image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%