public interface DirectionsServiceRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<com.mapbox.services.api.directions.v5.models.DirectionsResponse> |
getObservable(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)
Observable-based interface
|
@GET(value="directions/v5/{user}/{profile}/{coordinates}") io.reactivex.Observable<com.mapbox.services.api.directions.v5.models.DirectionsResponse> getObservable(@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)
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.annotations
- 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.© 2015–2016 Mapbox. All rights reserved.