public interface DirectionsService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<DirectionsResponse> |
getCall(String userAgent,
String user,
String profile,
String coordinates,
String accessToken,
Boolean alternatives,
String geometries,
String overview,
String radiuses,
Boolean steps,
String bearings,
Boolean continueStraight,
String annotations,
String language,
Boolean roundaboutExits)
Call-based interface
|
@GET(value="directions/v5/{user}/{profile}/{coordinates}") retrofit2.Call<DirectionsResponse> 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="alternatives") Boolean alternatives, @Query(value="geometries") String geometries, @Query(value="overview") String overview, @Query(value="radiuses") String radiuses, @Query(value="steps") Boolean steps, @Query(value="bearings") String bearings, @Query(value="continue_straight") Boolean continueStraight, @Query(value="annotations") String annotations, @Query(value="language") String language, @Query(value="roundabout_exits") Boolean roundaboutExits)
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.roundaboutExits
- Define if exit on roundabout is allowed.DirectionsResponse
in a Call wrapper.© 2015–2016 Mapbox. All rights reserved.