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,
java.lang.Boolean roundaboutExits,
java.lang.Boolean voiceInstructions,
java.lang.Boolean bannerInstructions,
java.lang.String voiceUnits,
java.lang.String exclude,
java.lang.String approaches,
java.lang.String waypointNames)
Constructs the html call using the information passed in through the
MapboxDirections.Builder . |
@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, @Query(value="roundabout_exits") java.lang.Boolean roundaboutExits, @Query(value="voice_instructions") java.lang.Boolean voiceInstructions, @Query(value="banner_instructions") java.lang.Boolean bannerInstructions, @Query(value="voice_units") java.lang.String voiceUnits, @Query(value="exclude") java.lang.String exclude, @Query(value="approaches") java.lang.String approaches, @Query(value="waypoint_names") java.lang.String waypointNames)
MapboxDirections.Builder
.userAgent
- the user agentuser
- the userprofile
- the profile directions should usecoordinates
- the coordinates the route should followaccessToken
- Mapbox access tokenalternatives
- define whether you want to receive more then one routegeometries
- route geometryoverview
- route full, simplified, etc.radiuses
- start at the most efficient point within the radiussteps
- define if you'd like the route stepsbearings
- 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 slowerannotations
- 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 geometrylanguage
- language of returned turn-by-turn text instructionsroundaboutExits
- Add extra step when roundabouts occur with additional information for
the uservoiceInstructions
- request that the response contain voice instruction information,
useful for navigationbannerInstructions
- request that the response contain banner instruction information,
useful for navigationvoiceUnits
- voice unitsexclude
- exclude tolls, motorways or more along your routeapproaches
- which side of the road to approach a waypointwaypointNames
- custom names for waypoints used for the arrival instruction.DirectionsResponse
in a Call wrapper