buildResourceUrl

open fun buildResourceUrl(@NonNull host: String, resourceUrl: String, querySize: Int, offline: Boolean): String

Adapts a resource request url based on the host, query size, and offline requirement. MapLibre resources downloaded for offline use are subject to separate Vector Tile and Raster Tile API pricing and are not included in the Maps SDK’s “unlimited” requests. See our pricing page for more information.

Return

the adapted resource url

Parameters

host

the host used as endpoint

resourceUrl

the resource to download

querySize

the query size of the resource request

offline

the type of resource, either offline or online