using Tile Url
fun usingTileUrl(tilesUrl: String, tilesDir: String, tilesAreGzFiles: Boolean = false): ValhallaConfig
The defaults, pointed at a tile server that tiles are downloaded from on demand and cached in tilesDir.
Valhalla fills the {tilePath} portion of tilesUrl in with the tile it wants.
Downloading needs com.valhalla.valhalla.Valhalla to have been built with an HTTP client, which it is by default. A config built this way against a build with no client reports every missing tile as a fetch failure.
Parameters
tiles Url
the URL pattern tiles are fetched from.
tiles Dir
absolute path of the directory downloaded tiles are stored in.
tiles Are Gz Files
whether to store downloaded tiles gzip-compressed or raw, whatever the server sends. Ignored for a tar URL.