@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.
|
String |
getAccessToken()
Deprecated.
replace by the Directions Matrix API.
|
okhttp3.RequestBody |
getCoordinates()
Deprecated.
|
String |
getProfile()
Deprecated.
replace by the Directions Matrix API.
|
String |
getUser()
Deprecated.
replace by the Directions Matrix API.
|
T |
setAccessToken(String accessToken)
Deprecated.
replace by the Directions Matrix API.
|
T |
setBaseUrl(String baseUrl)
Deprecated.
replace by the Directions Matrix API.
|
T |
setClientAppName(String appName)
Deprecated.
Set the App Name to identify
|
T |
setCoordinates(List<com.mapbox.services.commons.models.Position> coordinates)
Deprecated.
|
T |
setProfile(String profile)
Deprecated.
replace by the Directions Matrix API.
|
T |
setUser(String user)
Deprecated.
replace by the Directions Matrix API.
|
getBaseUrl, getClientAppName, validateAccessToken
@Deprecated public Builder()
@Deprecated public T setUser(String user)
user
- User string, by default this is set to Mapbox
DirectionsCriteria.PROFILE_DEFAULT_USER
.@Deprecated public String getUser()
@Deprecated public T setProfile(String profile)
DirectionsCriteria
.profile
- String containing A directions profile ID; either driving
,
walking
, or cycling
. Use one of the
DirectionsCriteria
constants.@Deprecated public String getProfile()
driving
,
walking
, or cycling
.public okhttp3.RequestBody getCoordinates()
@Deprecated public T setCoordinates(List<com.mapbox.services.commons.models.Position> coordinates)
@Deprecated public T setAccessToken(String accessToken)
MapboxDistance.Builder
setAccessToken
in class MapboxBuilder
accessToken
- Mapbox access token, you must have a Mapbox account in order to use
this API.@Deprecated public String getAccessToken()
getAccessToken
in class MapboxBuilder
public T setClientAppName(String appName)
MapboxBuilder
setClientAppName
in class MapboxBuilder
appName
- base package name or other simple string identifier@Deprecated public T setBaseUrl(String baseUrl)
setBaseUrl
in class MapboxBuilder
baseUrl
- base url used as end point@Deprecated public MapboxDistance build() throws ServicesException
build
in class MapboxBuilder
MapboxDistance
ServicesException
- Generic Exception occurring when something with the Distance
API goes wrong.© 2015–2016 Mapbox. All rights reserved.