public interface OptimizedTripsServiceRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<com.mapbox.services.api.optimizedtrips.v1.models.OptimizedTripsResponse> |
getObservable(String userAgent,
String user,
String profile,
String coordinates,
String accessToken,
Boolean roundTrip,
double[] radiuses,
double[][] bearings,
Boolean steps,
String overview,
String geometries,
String[] annotations,
String destination,
String source) |
@GET(value="optimized-trips/v1/{user}/{profile}/{coordinates}") io.reactivex.Observable<com.mapbox.services.api.optimizedtrips.v1.models.OptimizedTripsResponse> 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="roundtrip") Boolean roundTrip, @Query(value="radiuses") double[] radiuses, @Query(value="bearings") double[][] bearings, @Query(value="steps") Boolean steps, @Query(value="overview") String overview, @Query(value="geometries") String geometries, @Query(value="annotations") String[] annotations, @Query(value="destination") String destination, @Query(value="source") String source)
userAgent
- The user.user
- The user.profile
- The profile directions should use.coordinates
- The coordinates used to calculate the trip.accessToken
- Mapbox access token.roundTrip
- Returned route is a roundtrip (route returns to first location). Allowed values are: true
(default) or false.radiuses
- Maximum distance in meters that each coordinate is allowed to move when snapped to a nearby
road segment. There must be as many radiuses as there are coordinates in the request. Values
can be any number greater than 0 or they can be the string unlimited. If no routable road is
found within the radius, a NoSegment error is returned.bearings
- Used to filter the road segment the waypoint will be placed on by direction and dictates
the angle of approachsteps
- Define if you'd like the route steps.geometries
- Route geometry.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.destination
- Returned route ends at any or last coordinate. Allowed values are: any (default) or last.source
- Returned route starts at any or first coordinate. Allowed values are: any (default) or first.© 2015–2016 Mapbox. All rights reserved.