fun matchPolygonObjects(matchableGeometries: List<MatchableGeometry>, useOnlyPreloadedTiles: Boolean = false)

Matches given polygons to graph. "Matching" here means we try to find all intersections of polygon with the road graph and track distances to those intersections as distance to polygon. In case of error (if there are no tiles in cache, decoding failed, etc.) object won't be matched.



matchable geometries


If there is no data for the specified geometry yet cached on the device, setting this to false will wait (potentially indefinitely) for the data covering this geometry to be loaded via other means (location updates, predictive ambient caching, offline regions etc.) before attempting to match. If set to true and there is no data on device covering specified geometry, this call will return an error immediately.