@@ -19,43 +19,44 @@ public interface MapMatchingService {
1919 * Constructs the html call using the information passed in through the
2020 * {@link MapboxMapMatching.Builder}.
2121 *
22- * @param userAgent user agent
23- * @param user user
24- * @param profile directions profile ID; either mapbox/driving, mapbox/walking,
25- * or mapbox/cycling
26- * @param coordinates inaccurate traces from a GPS unit or a phone
27- * @param accessToken Mapbox access token
28- * @param geometries format of the returned geometry. Allowed values are: geojson
29- * (as LineString), polyline with precision 5, polyline6. The default
30- * value is polyline
31- * @param radiuses a list of integers in meters indicating the assumed precision of
32- * the used tracking device. There must be as many radiuses as there
33- * are coordinates in the request, each separated by ;. Values can be
34- * a number between 0 and 30. Use higher numbers (20-30) for noisy
35- * traces and lower numbers (1-10) for clean traces. The default value
36- * is 5
37- * @param steps whether to return steps and turn-by-turn instructions. Can be true
38- * or false. The default is false
39- * @param overview type of returned overview geometry. Can be full (the most detailed
40- * geometry available), simplified (a simplified version of the full
41- * geometry), or false (no overview geometry). The default is simplified
42- * @param timestamps timestamps corresponding to each coordinate provided in the request;
43- * must be numbers in Unix time (seconds since the Unix epoch). There
44- * must be as many timestamps as there are coordinates in the request,
45- * each separated by {@code ;}
46- * @param annotations whether or not to return additional metadata for each coordinate
47- * along the match geometry. Can be one or all of 'duration', 'distance ',
48- * or 'nodes', each separated by ,. See the response object for more
49- * details on what it is included with annotations
50- * @param language language of returned turn-by-turn text instructions
51- * @param tidy whether or not to transparently remove clusters and re-sample traces for
52- * improved map matching results
53- * @param roundaboutExits Whether or not to emit instructions at roundabout exits.
22+ * @param userAgent user agent
23+ * @param user user
24+ * @param profile directions profile ID; either mapbox/driving, mapbox/walking,
25+ * or mapbox/cycling
26+ * @param coordinates inaccurate traces from a GPS unit or a phone
27+ * @param accessToken Mapbox access token
28+ * @param geometries format of the returned geometry. Allowed values are: geojson
29+ * (as LineString), polyline with precision 5, polyline6. The default
30+ * value is polyline
31+ * @param radiuses a list of integers in meters indicating the assumed precision of
32+ * the used tracking device. There must be as many radiuses as there
33+ * are coordinates in the request, each separated by ;. Values can be
34+ * a number between 0 and 30. Use higher numbers (20-30) for noisy
35+ * traces and lower numbers (1-10) for clean traces. The default value
36+ * is 5
37+ * @param steps whether to return steps and turn-by-turn instructions. Can be true
38+ * or false. The default is false
39+ * @param overview type of returned overview geometry. Can be full (the most detailed
40+ * geometry available), simplified (a simplified version of the full
41+ * geometry), or false (no overview geometry). The default is simplified
42+ * @param timestamps timestamps corresponding to each coordinate provided in the request;
43+ * must be numbers in Unix time (seconds since the Unix epoch). There
44+ * must be as many timestamps as there are coordinates in the request,
45+ * each separated by {@code ;}
46+ * @param annotations whether or not to return additional metadata for each coordinate
47+ * along the match geometry. Can be one or all of 'duration',
48+ * 'distance', or 'nodes', each separated by ,. See the response
49+ * object for more details on what it is included with annotations
50+ * @param language language of returned turn-by-turn text instructions
51+ * @param tidy whether or not to transparently remove clusters and re-sample
52+ * traces for improved map matching results
53+ * @param roundaboutExits Whether or not to emit instructions at roundabout exits.
5454 * @param bannerInstructions Whether or not to return banner objects associated with
5555 * the `routeSteps`. Should be used in conjunction with `steps`.
56- * @param voiceInstructions whether or not to return
57- * marked-up text for voice guidance along the route.
58- * @param waypoints Which input coordinates should be treated as waypoints.
56+ * @param voiceInstructions whether or not to return
57+ * marked-up text for voice guidance along the route.
58+ * @param voiceUnits voice units
59+ * @param waypoints Which input coordinates should be treated as waypoints.
5960 * @return the MapMatchingResponse in a Call wrapper
6061 * @since 2.0.0
6162 */
@@ -77,5 +78,6 @@ Call<MapMatchingResponse> getCall(
7778 @ Query ("roundabout_exits" ) Boolean roundaboutExits ,
7879 @ Query ("banner_instructions" ) Boolean bannerInstructions ,
7980 @ Query ("voice_instructions" ) Boolean voiceInstructions ,
81+ @ Query ("voice_units" ) String voiceUnits ,
8082 @ Query ("waypoints" ) String waypoints );
8183}
0 commit comments