Builder

class Builder

Builder for RoutingTilesOptions. You must choose a filePath for this to be built successfully.

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): RoutingTilesOptions
Link copied to clipboard
fun filePath(filePath: String?): RoutingTilesOptions.Builder

Creates a custom file path to store the road network tiles. It is used for persistent configuration and history files storing.

Link copied to clipboard
fun minDaysBetweenServerAndLocalTilesVersion(minDaysBetweenServerAndLocalTilesVersion: Int): RoutingTilesOptions.Builder

Override minimum time in days between local version of tiles and latest on the server to consider using the latest version of routing tiles from the server. This only works if tiles version is empty.

Link copied to clipboard
fun tilesBaseUri(tilesBaseUri: URI): RoutingTilesOptions.Builder

Override the routing tiles base endpoint with a URI.

Link copied to clipboard
fun tilesDataset(tilesDataset: String): RoutingTilesOptions.Builder

String built out of <account>[.<graph>] variables.

Link copied to clipboard
fun tilesProfile(tilesProfile: String): RoutingTilesOptions.Builder

Profile of the dataset. One of (driving|driving-traffic|walking|cycling|truck).

Link copied to clipboard
fun tileStore(tileStore: TileStore?): RoutingTilesOptions.Builder

Override tile store instance. It manages downloads and storage for requests to tile-related API endpoints. For offline/predictive-caching use cases this instance should be the same that is passed to map resource options.

Link copied to clipboard
fun tilesVersion(version: String): RoutingTilesOptions.Builder

Override the default routing tiles version.