Class RequestPoint

com.yandex.mapkit

java.lang.Object ⇽ RequestPoint

public class RequestPoint

There are two types of request points.

A waypoint is a destination. Use it when you plan to stop there. Via points (throughpoints) correct the route to make it pass through all the via points. Waypoints are guaranteed to be between sections in the resulting route. Via points are embedded into sections.

For each request point, you can provide a list of arrival points (for example, if the request point is a building, you can provide a list of entrances to that building). If there is at least one arrival point, then the router will choose one of them and use it for routing. The point member will be used only as a suggestion. Otherwise, the point itself will be used for routing.

Also, for each point you can specify a list of driving arrival points (for example, places where the driver can park their vehicle). They will be used in nearby alternatives: the router will provide alternatives to these points along with alternatives to the main destination point.

Constructors

RequestPoint()

Use constructor with parameters in your code.

RequestPoint(_NonNull Point point, _NonNull List< Point > arrivalPoints, _NonNull List< DrivingArrivalPoint > drivingArrivalPoints, _NonNull RequestPointType type)

Methods

synchronized List< Point > getArrivalPoints()

Arrival points.

synchronized List< DrivingArrivalPoint > getDrivingArrivalPoints()

Driving arrival points.

String getNativeName()
synchronized Point getPoint()

The request point.

synchronized RequestPointType getType()

The type of request point specified.

void serialize(Archive archive)

Constructor Detail

RequestPoint

public RequestPoint ()

Use constructor with parameters in your code.

This one is for serialization only!

RequestPoint

public RequestPoint (@NonNull Point point, @NonNull List< Point > arrivalPoints, @NonNull List< DrivingArrivalPoint > drivingArrivalPoints, @NonNull RequestPointType type)

Method Detail

getArrivalPoints

public synchronized List< Point > getArrivalPoints ()

Arrival points.

getDrivingArrivalPoints

public synchronized List< DrivingArrivalPoint > getDrivingArrivalPoints ()

Driving arrival points.

getNativeName

public static String getNativeName ()

getPoint

public synchronized Point getPoint ()

The request point.

getType

public synchronized RequestPointType getType ()

The type of request point specified.

serialize

public void serialize (Archive archive)