public interface DirectionsMatrixService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<DirectionsMatrixResponse> |
getCall(String userAgent,
String user,
String profile,
String coordinates,
String accessToken,
String destinations,
String sources)
Call-based interface
|
@GET(value="directions-matrix/v1/{user}/{profile}/{coordinates}") retrofit2.Call<DirectionsMatrixResponse> getCall(@Header(value="User-Agent") String userAgent, @Path(value="user") String user, @Path(value="profile") String profile, @Path(value="coordinates") String coordinates, @Query(value="access_token") String accessToken, @Query(value="destinations") String destinations, @Query(value="sources") String sources)
userAgent
- The user.user
- The user.profile
- The profile directions should use.coordinates
- The coordinates the route should follow.accessToken
- Mapbox access token.destinations
- Array of waypoint objects. Each waypoints is an input coordinate snapped to the road and path
network. The waypoints appear in the array in the order of the input coordinates, or in the
order as specified in the destinations query parameter.sources
- Array of waypoint objects. Each waypoints is an input coordinate snapped to the road and path
network. The waypoints appear in the array in the order of the input coordinates, or in the
order as specified in the sources query parameter.DirectionsMatrixResponse
in a Call wrapper.© 2015–2016 Mapbox. All rights reserved.