@Deprecated public interface DistanceService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<DistanceResponse> |
getCall(String userAgent,
String user,
String profile,
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") String userAgent, @Path(value="user") String user, @Path(value="profile") String profile, @Query(value="access_token") 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© 2015–2016 Mapbox. All rights reserved.