@@ -12,6 +12,7 @@ import com.mapbox.navigation.base.trip.model.eh.OpenLRStandard
1212import com.mapbox.navigation.core.MapboxNavigation
1313import com.mapbox.navigation.navigator.internal.MapboxNativeNavigator
1414import com.mapbox.navigator.MatchingOptions
15+ import com.mapbox.navigator.PartialPolylineDistanceCalculationStrategy
1516import com.mapbox.navigator.RoadObject
1617import com.mapbox.navigator.RoadObjectMatcherError
1718import com.mapbox.navigator.RoadObjectMatcherListener
@@ -115,7 +116,7 @@ class RoadObjectMatcher internal constructor(
115116 MatchableOpenLr (roadObjectId, openLRLocation, openLRStandard)
116117 )
117118 ),
118- MatchingOptions (false , false ),
119+ MatchingOptions (false , false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
119120 )
120121 }
121122
@@ -136,7 +137,7 @@ class RoadObjectMatcher internal constructor(
136137 matchableOpenLrs.map {
137138 EHorizonFactory .buildNativeMatchableOpenLr(it)
138139 },
139- MatchingOptions (useOnlyPreloadedTiles, false ),
140+ MatchingOptions (useOnlyPreloadedTiles, false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
140141 )
141142 }
142143
@@ -164,7 +165,7 @@ class RoadObjectMatcher internal constructor(
164165 MatchableGeometry (roadObjectId, polyline)
165166 )
166167 ),
167- MatchingOptions (false , false ),
168+ MatchingOptions (false , false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
168169 )
169170 }
170171
@@ -190,7 +191,7 @@ class RoadObjectMatcher internal constructor(
190191 matchableGeometries.map {
191192 EHorizonFactory .buildNativeMatchableGeometry(it)
192193 },
193- MatchingOptions (useOnlyPreloadedTiles, false ),
194+ MatchingOptions (useOnlyPreloadedTiles, false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
194195 )
195196 }
196197
@@ -218,7 +219,7 @@ class RoadObjectMatcher internal constructor(
218219 MatchableGeometry (roadObjectId, polygon)
219220 )
220221 ),
221- MatchingOptions (false , false ),
222+ MatchingOptions (false , false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
222223 )
223224 }
224225
@@ -244,7 +245,7 @@ class RoadObjectMatcher internal constructor(
244245 matchableGeometries.map {
245246 EHorizonFactory .buildNativeMatchableGeometry(it)
246247 },
247- MatchingOptions (useOnlyPreloadedTiles, false ),
248+ MatchingOptions (useOnlyPreloadedTiles, false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
248249 )
249250 }
250251
@@ -272,7 +273,7 @@ class RoadObjectMatcher internal constructor(
272273 MatchableGeometry (roadObjectId, gantry)
273274 )
274275 ),
275- MatchingOptions (false , false ),
276+ MatchingOptions (false , false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
276277 )
277278 }
278279
@@ -298,7 +299,7 @@ class RoadObjectMatcher internal constructor(
298299 matchableGeometries.map {
299300 EHorizonFactory .buildNativeMatchableGeometry(it)
300301 },
301- MatchingOptions (useOnlyPreloadedTiles, false ),
302+ MatchingOptions (useOnlyPreloadedTiles, false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
302303 )
303304 }
304305
@@ -324,7 +325,7 @@ class RoadObjectMatcher internal constructor(
324325 MatchablePoint (roadObjectId, point)
325326 )
326327 ),
327- MatchingOptions (false , false ),
328+ MatchingOptions (false , false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
328329 )
329330 }
330331
@@ -348,7 +349,7 @@ class RoadObjectMatcher internal constructor(
348349 matchablePoints.map {
349350 EHorizonFactory .buildNativeMatchablePoint(it)
350351 },
351- MatchingOptions (useOnlyPreloadedTiles, false ),
352+ MatchingOptions (useOnlyPreloadedTiles, false , PartialPolylineDistanceCalculationStrategy . ONLY_MATCHED ),
352353 )
353354 }
354355
0 commit comments