@Deprecated
public interface DistanceService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<DistanceResponse> |
getCall(java.lang.String userAgent,
java.lang.String user,
java.lang.String profile,
java.lang.String accessToken,
okhttp3.RequestBody coordinates)
Deprecated.
replace by the Directions Matrix API.
|
@Deprecated
@POST(value="distances/v1/{user}/{profile}")
retrofit2.Call<DistanceResponse> getCall(@Header(value="User-Agent")
java.lang.String userAgent,
@Path(value="user")
java.lang.String user,
@Path(value="profile")
java.lang.String profile,
@Query(value="access_token")
java.lang.String accessToken,
@Body
okhttp3.RequestBody coordinates)
userAgent - The User.user - The user.profile - Directions profile id.accessToken - Mapbox access token.coordinates - converted to a MultiPoint.toJson().DistanceResponse in a Call wrapper