aName
aName

Reputation: 3043

download open street maps' tiles.png

I'm trying to use offline open street map in a react native application, for that reason, and according to react native maps I need to store the tiles in a specific format :

The path template of the locally stored tiles. The patterns {x} {y} {z} will be replaced at runtime
For example, /storage/emulated/0/mytiles/{z}/{x}/{y}.png

I tried to download the tiles using tiles servers, however, I find out that It will take a lot of time (it is almost impossible)
I also looked at the proposed ways to download tiles, however, I don't know the files extension and I don't know if I could convert one of them to png, therefore, I wonder I there is an opensource/free way to do that

I find also, this software but I can only use it up to zoom=13, otherwise its not for free.

Upvotes: 1

Views: 6208

Answers (1)

scai
scai

Reputation: 21469

Bulk downloads are usually forbidden. See the tile usage policy. Quoting the important parts:

OpenStreetMap data is free for everyone to use. Our tile servers are not.

Bulk downloading is strongly discouraged. Do not download tiles unnecessarily.

In particular, downloading an area of over 250 tiles at zoom level 13 or higher for offline or later usage is forbidden. These tiles are generally not available (cached) on the server in advance, and have to be rendered specifically for those requests, putting an unjustified burden on the available resources.

You can render your own raster tiles by installing a rendering software such as TileMill or by installing your own tile-server. Alternatively take a look at Commercial OSM software and services.

Alternatively switch to vector tiles. Obtaining raw OSM data is rather easy. Vector tiles allow you to render tiles on your device on the fly.

Upvotes: 4

Related Questions