Package com.trimblemaps.mapsdk.http
Class HttpRequestUrl
java.lang.Object
com.trimblemaps.mapsdk.http.HttpRequestUrl
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbuildResourceUrl(String host, String resourceUrl, int querySize, boolean offline) Adapts a resource request url based on the host, query size, and offline requirement.
-
Method Details
-
buildResourceUrl
public static String buildResourceUrl(@NonNull String host, String resourceUrl, int querySize, boolean offline) Adapts a resource request url based on the host, query size, and offline requirement. TrimbleMaps 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.- Parameters:
host- the host used as endpointresourceUrl- the resource to downloadquerySize- the query size of the resource requestoffline- the type of resource, either offline or online- Returns:
- the adapted resource url
-