public interface DirectionsService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<DirectionsResponse> |
getCall(java.lang.String userAgent,
java.lang.String user,
java.lang.String profile,
java.lang.String coordinates,
java.lang.String accessToken,
java.lang.Boolean alternatives,
java.lang.String geometries,
java.lang.String overview,
java.lang.String radiuses,
java.lang.Boolean steps,
java.lang.String bearings,
java.lang.Boolean continueStraight,
java.lang.String annotations,
java.lang.String language)
Call-based interface
|
@GET(value="directions/v5/{user}/{profile}/{coordinates}")
retrofit2.Call<DirectionsResponse> getCall(@Header(value="User-Agent")
java.lang.String userAgent,
@Path(value="user")
java.lang.String user,
@Path(value="profile")
java.lang.String profile,
@Path(value="coordinates")
java.lang.String coordinates,
@Query(value="access_token")
java.lang.String accessToken,
@Query(value="alternatives")
java.lang.Boolean alternatives,
@Query(value="geometries")
java.lang.String geometries,
@Query(value="overview")
java.lang.String overview,
@Query(value="radiuses")
java.lang.String radiuses,
@Query(value="steps")
java.lang.Boolean steps,
@Query(value="bearings")
java.lang.String bearings,
@Query(value="continue_straight")
java.lang.Boolean continueStraight,
@Query(value="annotations")
java.lang.String annotations,
@Query(value="language")
java.lang.String language)
userAgent - The user.user - The user.profile - The profile directions should use.coordinates - The coordinates the route should follow.accessToken - Mapbox access token.alternatives - Define whether you want to recieve more then one route.geometries - Route geometry.overview - Route full, simplified, etc.radiuses - start at the most efficient point within the radius.steps - Define if you'd like the route steps.bearings - Used to filter the road segment the waypoint will be placed on by direction and dictates
the angle of approachcontinueStraight - Define whether the route should continue straight even if the route
will be slower. @return A retrofit Call objectannotations - An annotations object that contains additional details about each line segment along the
route geometry. Each entry in an annotations field corresponds to a coordinate along the
route geometry.language - Language of returned turn-by-turn text instructions.DirectionsResponse in a Call wrapper.