Class WayPoint

com.yandex.mapkit.transport.masstransit

java.lang.Object ⇽ WayPoint

public class WayPoint

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

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

Constructors

WayPoint()

Use constructor with parameters in your code.

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

Methods

String getNativeName()
synchronized Point getPosition()

Coordinates of the original waypoint from the request.

synchronized Point getSelectedArrivalPoint()

Coordinates of the arrival point that was selected for arrival at the waypoint.

synchronized Point getSelectedDeparturePoint()

Coordinates of the arrival point that was selected for departure from the waypoint.

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, @Nullable Point selectedDeparturePoint)

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 arrival point that was selected for arrival at the waypoint.

Optional field, can be null.

getSelectedDeparturePoint

public synchronized Point getSelectedDeparturePoint ()

Coordinates of the arrival point that was selected for departure from the waypoint.

Optional field, can be null.

serialize

public void serialize (Archive archive)