Git Product home page Git Product logo

baidumap_tiles's Introduction

BaiduMap tiles

Getting Started

Download Baidu Maps tiles

Edit download_tiles.py to specify the area and the zoom level you want.

zoom = 8

lat_start, lon_start = 31.717714,105.540665
lat_stop, lon_stop = 39.659668,111.262224

satellite = True    # roads if false

download_tiles(zoom, lat_start, lat_stop, lon_start, lon_stop, satellite)

You can easily find Baidu coordinates with http://api.map.baidu.com/lbsapi/getpoint/.

Then, run $ python download_tiles.py and get individual tiles in tile folder.

Merge Baidu Maps tiles

Edit merge_tiles.py to specify the area and the zoom level you want, it's just the same as before.

zoom = 19

lat_start, lon_start = 31.022547,121.429391
lat_stop, lon_stop = 31.041453,121.45749

satellite = True    # roads if false

Then, run $ python merge_tiles.py and get map_s.jpg for satellite or map_r.png for roads.

Note: merging the tiles requires Python Image Library.

Reference

baidumap_tiles's People

Contributors

muxfe avatar yinger650 avatar nst avatar

Watchers

James Cloos avatar xiashuijun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.