matchPolygonObject

fun matchPolygonObject(roadObjectId: String, polygon: List<Point>)

Matches given polygon 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.

Parameters

roadObjectId

unique id of the object

polygon

polygon representing the object