public interface MapMatchingService
Modifier and Type | Method and Description |
---|---|
retrofit2.Call<MapMatchingResponse> |
getCall(String userAgent,
String user,
String profile,
String coordinates,
String accessToken,
String geometries,
String radiuses,
Boolean steps,
String overview,
String timestamps,
String annotations,
String language)
Call-based interface
|
@GET(value="matching/v5/{user}/{profile}/{coordinates}") retrofit2.Call<MapMatchingResponse> 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="geometries") String geometries, @Query(value="radiuses") String radiuses, @Query(value="steps") Boolean steps, @Query(value="overview") String overview, @Query(value="timestamps") String timestamps, @Query(value="annotations") String annotations, @Query(value="language") String language)
userAgent
- User agentuser
- Userprofile
- Directions profile ID; either mapbox/driving, mapbox/walking,
or mapbox/cyclingcoordinates
- Inaccurate traces from a GPS unit or a phoneaccessToken
- Mapbox access tokengeometries
- Format of the returned geometry. Allowed values are: geojson
(as LineString), polyline with precision 5, polyline6. The default
value is polyline .radiuses
- A list of integers in meters indicating the assumed precision of
the used tracking device. There must be as many radiuses as there
are coordinates in the request, each separated by ;. Values can be
a number between 0 and 30. Use higher numbers (20-30) for noisy
traces and lower numbers (1-10) for clean traces. The default value
is 5.steps
- Whether to return steps and turn-by-turn instructions. Can be true
or false. The default is false.overview
- Type of returned overview geometry. Can be full (the most detailed
geometry available), simplified (a simplified version of the full
geometry), or false (no overview geometry). The default is simplified.timestamps
- Timestamps corresponding to each coordinate provided in the request;
must be numbers in Unix time (seconds since the Unix epoch). There
must be as many timestamps as there are coordinates in the request,
each separated by ;.annotations
- Whether or not to return additional metadata for each coordinate
along the match geometry. Can be one or all of 'duration', 'distance',
or 'nodes', each separated by ,. See the response object for more
details on what it is included with annotations.language
- Language of returned turn-by-turn text instructions.© 2015–2016 Mapbox. All rights reserved.