Easy OpenStreetMap tile displaying for Python

后端 未结 7 697
野的像风
野的像风 2020-12-08 12:21

I want to include the open street map (OSM) in my python code.

I have read through lots of webpages regarding to OSM. But unfortunately I\'m a bit lost, regarding wh

7条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-08 12:52

    It is not so very complex. A little bit of guidance can be obtained from this link, where the complexity of tiles are explained in detail.

    It can hardly be reproduced here, but in general you have to

    • determine the tiles you need by formula
    • load them from their server (there is a certain choice of map styles)
    • possibly concatenate them in both directions
    • and then display them.

    Be aware that you possibly have aspect ratio issues which you must solve as well...

提交回复
热议问题