We publish frequent updates to our documentation, and translation of this page may still be in progress. For the most current information, please visit the English documentation. If there's a problem with translations on this page, please let us know.

Tiles Directory Format - .metainfo

Specification of OsmAnd's Metainfo Format

The Metainfo format used in OsmAnd to store the tile layers preferences. In OsmAnd we add a number of tables extending the format:

FieldSpec and Purpose
"[url_template]"String. URL template to download tiles with zoom - {1}, x - {2} , y - {3}, server name - {rnd}
"[randoms]"String. The names of the mirrors of server. Comma-separated. One of these values will randomly replace the placeholder {rdn} in "url" field.
"[minzoom]"Integer. Min zoom level. In regular format (OSM, Google maps).
"[maxzoom]"Integer. Max zoom level. In regular format (OSM, Google maps).
"[ellipsoid]"Bool "true" or "false". True for Elliptic Mercator (Yandex tiles). False for regular Spheric Web Mercator (OSM, Google maps)
"[inverted_y]"Bool "true" or "false". True for inverted Y tile number (Nakarte.me tiles).
"[tile_size]"Integer 256 or 512. Side size of downloading tile in px.
"[img_density]"Integer. Tile image density.
"[avg_img_size]"Integer.Average tile image size.
"[expiration_time_minutes]"Integer. Specifies if tiles shall expire after the given number of minutes. They would still be displayed, but also re-downloaded.

The class supporting this tile source is at or near https://github.com/osmandapp/Osmand/blob/master/OsmAnd-java/src/main/java/net/osmand/map/TileSourceManager.java#L28.

Did this doc help you?

Privacy policy

Help us make these docs great!

All OsmAnd docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.

Все еще нужна помощь?

Join OsmAnd community Поддержка