public interface OptimizedTripsService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<OptimizedTripsResponse> |
getCall(String userAgent,
String user,
String profile,
String coordinates,
String accessToken,
Boolean roundTrip,
String radiuses,
String bearings,
Boolean steps,
String overview,
String geometries,
String[] annotations,
String destination,
String source,
String language,
String distributions) |
@GET(value="optimized-trips/v1/{user}/{profile}/{coordinates}") retrofit2.Call<OptimizedTripsResponse> 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="roundtrip") Boolean roundTrip, @Query(value="radiuses") String radiuses, @Query(value="bearings") String 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, @Query(value="language") String language, @Query(value="distributions") String distributions)
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.overview
- Route full, simplified, etc.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.language
- Language of returned turn-by-turn text instructions.distributions
- Specify pick-up and drop-off locationsOptimizedTripsResponse
in a Call wrapper.© 2015–2016 Mapbox. All rights reserved.