public abstract static class NbmapRouteTiles.Builder
extends java.lang.Object
BoundingBox, and a version.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
abstract NbmapRouteTiles.Builder |
accessToken(java.lang.String accessToken)
Required to call when this is being built.
|
abstract NbmapRouteTiles.Builder |
baseUrl(java.lang.String baseUrl)
Optionally change the APIs base URL to something other then the default Nbmap one.
|
abstract NbmapRouteTiles.Builder |
boundingBox(com.nbmap.geojson.BoundingBox boundingBox)
The bounding box of which to download map route tiles.
|
NbmapRouteTiles |
build()
This uses the provided parameters set using the
NbmapRouteTiles.Builder and first checks that all
values are valid, and creates a new NbmapRouteTiles object with the values provided. |
abstract NbmapRouteTiles.Builder |
clientAppName(java.lang.String clientAppName)
Base package name or other simple string identifier.
|
abstract NbmapRouteTiles.Builder |
interceptor(okhttp3.Interceptor interceptor)
Adds an optional interceptor to set in the OkHttp client.
|
abstract NbmapRouteTiles.Builder |
networkInterceptor(okhttp3.Interceptor interceptor)
Adds an optional network interceptor to set in the OkHttp client.
|
abstract NbmapRouteTiles.Builder |
version(java.lang.String version)
The version of map tiles being requested.
|
public abstract NbmapRouteTiles.Builder boundingBox(@NonNull com.nbmap.geojson.BoundingBox boundingBox)
boundingBox - of which to download map route tilespublic abstract NbmapRouteTiles.Builder version(@NonNull java.lang.String version)
NbmapRouteTileVersions API.version - of which to downloadpublic abstract NbmapRouteTiles.Builder accessToken(@NonNull java.lang.String accessToken)
ServicesException will be thrown.accessToken - Nbmap access token, You must have a Nbmap account inorder to use
the Route Tiles APIpublic abstract NbmapRouteTiles.Builder baseUrl(@NonNull java.lang.String baseUrl)
baseUrl - base url used as end pointpublic abstract NbmapRouteTiles.Builder clientAppName(@NonNull java.lang.String clientAppName)
clientAppName - base package name or other simple string identifierpublic abstract NbmapRouteTiles.Builder interceptor(okhttp3.Interceptor interceptor)
interceptor - to set for OkHttppublic abstract NbmapRouteTiles.Builder networkInterceptor(okhttp3.Interceptor interceptor)
interceptor - to set for OkHttppublic NbmapRouteTiles build()
NbmapRouteTiles.Builder and first checks that all
values are valid, and creates a new NbmapRouteTiles object with the values provided.com.nbmap.core.exceptions.ServicesException - when a provided parameter is detected to be incorrect