@Deprecated public static class MapboxDistance.Builder<T extends MapboxDistance.Builder> extends MapboxBuilder
baseUrl, clientAppName| Constructor and Description |
|---|
Builder()
Deprecated.
replace by the Directions Matrix API.
|
| Modifier and Type | Method and Description |
|---|---|
MapboxDistance |
build()
Deprecated.
replace by the Directions Matrix API.
|
java.lang.String |
getAccessToken()
Deprecated.
replace by the Directions Matrix API.
|
okhttp3.RequestBody |
getCoordinates()
Deprecated.
|
java.lang.String |
getProfile()
Deprecated.
replace by the Directions Matrix API.
|
java.lang.String |
getUser()
Deprecated.
replace by the Directions Matrix API.
|
T |
setAccessToken(java.lang.String accessToken)
Deprecated.
replace by the Directions Matrix API.
|
T |
setBaseUrl(java.lang.String baseUrl)
Deprecated.
replace by the Directions Matrix API.
|
T |
setClientAppName(java.lang.String appName)
Deprecated.
Set the App Name to identify
|
T |
setCoordinates(java.util.List<com.mapbox.services.commons.models.Position> coordinates)
Deprecated.
|
T |
setProfile(java.lang.String profile)
Deprecated.
replace by the Directions Matrix API.
|
T |
setUser(java.lang.String user)
Deprecated.
replace by the Directions Matrix API.
|
getBaseUrl, getClientAppName, validateAccessToken@Deprecated public Builder()
@Deprecated public T setUser(java.lang.String user)
user - User string, by default this is set to Mapbox
DirectionsCriteria.PROFILE_DEFAULT_USER.@Deprecated public java.lang.String getUser()
@Deprecated public T setProfile(java.lang.String profile)
DirectionsCriteria.profile - String containing A directions profile ID; either driving,
walking, or cycling. Use one of the
DirectionsCriteria constants.@Deprecated public java.lang.String getProfile()
driving,
walking, or cycling.public okhttp3.RequestBody getCoordinates()
@Deprecated public T setCoordinates(java.util.List<com.mapbox.services.commons.models.Position> coordinates)
@Deprecated public T setAccessToken(java.lang.String accessToken)
MapboxDistance.BuildersetAccessToken in class MapboxBuilderaccessToken - Mapbox access token, you must have a Mapbox account in order to use
this API.@Deprecated public java.lang.String getAccessToken()
getAccessToken in class MapboxBuilderpublic T setClientAppName(java.lang.String appName)
MapboxBuildersetClientAppName in class MapboxBuilderappName - base package name or other simple string identifier@Deprecated public T setBaseUrl(java.lang.String baseUrl)
setBaseUrl in class MapboxBuilderbaseUrl - base url used as end point@Deprecated public MapboxDistance build() throws ServicesException
build in class MapboxBuilderMapboxDistanceServicesException - Generic Exception occurring when something with the Distance
API goes wrong.