public interface OptimizedTripsService
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Call<OptimizedTripsResponse> |
getCall(java.lang.String userAgent,
java.lang.String user,
java.lang.String profile,
java.lang.String coordinates,
java.lang.String accessToken,
java.lang.Boolean roundTrip,
java.lang.String radiuses,
java.lang.String bearings,
java.lang.Boolean steps,
java.lang.String overview,
java.lang.String geometries,
java.lang.String[] annotations,
java.lang.String destination,
java.lang.String source,
java.lang.String language,
java.lang.String distributions) |
@GET(value="optimized-trips/v1/{user}/{profile}/{coordinates}")
retrofit2.Call<OptimizedTripsResponse> 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="roundtrip")
java.lang.Boolean roundTrip,
@Query(value="radiuses")
java.lang.String radiuses,
@Query(value="bearings")
java.lang.String bearings,
@Query(value="steps")
java.lang.Boolean steps,
@Query(value="overview")
java.lang.String overview,
@Query(value="geometries")
java.lang.String geometries,
@Query(value="annotations")
java.lang.String[] annotations,
@Query(value="destination")
java.lang.String destination,
@Query(value="source")
java.lang.String source,
@Query(value="language")
java.lang.String language,
@Query(value="distributions")
java.lang.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.