Class PolylineUtils

com.yandex.mapkit.geometry.geo

public class PolylineUtils

Methods

native PolylinePosition advancePolylinePosition(@NonNull Polyline polyline, @NonNull PolylinePosition position, double distance)

The position of the polyline.

native Point pointByPolylinePosition(@NonNull Polyline geometry, @NonNull PolylinePosition position)

The point in the polyline.

native List< PolylinePosition > positionsOfFork(@NonNull Polyline firstPolyline, @NonNull PolylinePosition firstPolylinePosition, @NonNull Polyline secondPolyline, @NonNull PolylinePosition secondPolylinePosition)

The position of the fork on the road.

Method Detail

advancePolylinePosition

public static native PolylinePosition advancePolylinePosition (@NonNull Polyline polyline, @NonNull PolylinePosition position, double distance)

The position of the polyline.

Parameters:
polyline

The polyline.

position

The polyline position.

distance

Distance.

pointByPolylinePosition

public static native Point pointByPolylinePosition (@NonNull Polyline geometry, @NonNull PolylinePosition position)

The point in the polyline.

Parameters:
geometry

The polyline.

position

The polyline position.

positionsOfFork

public static native List< PolylinePosition > positionsOfFork (@NonNull Polyline firstPolyline, @NonNull PolylinePosition firstPolylinePosition, @NonNull Polyline secondPolyline, @NonNull PolylinePosition secondPolylinePosition)

The position of the fork on the road.

Parameters:
firstPolyline

The first path of the fork.

firstPolylinePosition

The position of the first path.

secondPolyline

The second path of the fork.

secondPolylinePosition

The position of the second path.