public interface DirectionsRefreshService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<com.mapbox.api.directionsrefresh.v1.models.DirectionsRefreshResponse> |
getCall(java.lang.String userAgent,
java.lang.String requestId,
int routeIndex,
int legIndex,
java.lang.String accessToken)
Constructs the html call using the information passed in through the
MapboxDirectionsRefresh.Builder. |
@GET(value="directions-refresh/v1/mapbox/driving-traffic/{request_id}/{route_index}/{leg_index}")
retrofit2.Call<com.mapbox.api.directionsrefresh.v1.models.DirectionsRefreshResponse> getCall(@Header(value="User-Agent")
java.lang.String userAgent,
@Path(value="request_id")
java.lang.String requestId,
@Path(value="route_index")
int routeIndex,
@Path(value="leg_index")
int legIndex,
@Query(value="access_token")
java.lang.String accessToken)
MapboxDirectionsRefresh.Builder.userAgent - the user agentrequestId - a uuid specifying the request containing the route being refreshedrouteIndex - the index of the specified routelegIndex - the index of the leg to start the refresh response (inclusive)accessToken - Mapbox access tokenDirectionsRefreshResponse in a Call wrapper