Class WayPoint

com.yandex.mapkit.transport.bicycle

java.lang.Object ⇽ WayPoint

public class WayPoint

A waypoint is the origin, destination or intermediate destination on the route.

For each way point, the corresponding selected arrival point can be stored.

Constructors

WayPoint()

Use constructor with parameters in your code.

WayPoint(@NonNull Point position, @Nullable Point selectedArrivalPoint)

Methods

String getNativeName()
synchronized Point getPosition()

Coordinates of the original waypoint from the request.

synchronized Point getSelectedArrivalPoint()

Coordinates of the selected arrival point.

void serialize(Archive archive)

Constructor Detail

WayPoint

public WayPoint ()

Use constructor with parameters in your code.

This one is for serialization only!

WayPoint

public WayPoint (@NonNull Point position, @Nullable Point selectedArrivalPoint)

Method Detail

getNativeName

public static String getNativeName ()

getPosition

public synchronized Point getPosition ()

Coordinates of the original waypoint from the request.

getSelectedArrivalPoint

public synchronized Point getSelectedArrivalPoint ()

Coordinates of the selected arrival point.

Optional field, can be null.

serialize

public void serialize (Archive archive)