Y
Y
Yuriy2018-02-06 14:19:42
API
Yuriy, 2018-02-06 14:19:42

YandexMaps API how to find the first waypoint leaving the polygon?

Yandex.Map API v2+
There is a route A to B.
There is a polygon C.
Point A is always inside polygon C.
How to find the first point (coordinates) in the route A-B that is not included in polygon C?
in the old version 1 there was such a thing
polygon.getClosestPoint(point)
in version 2 there is such a thing:

myPolyline.geometry.getClosest(e.get('coordPosition'))

how to connect it with the polygon xs))

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question