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 point context. It's an opaque string that describe entrances, driving arrival points and so on. If such context is provided then a client will get routes to those additional points.

Constructors

RequestPoint()

Use constructor with parameters in your code.

RequestPoint(@NonNull Point point, @NonNull RequestPointType type, @Nullable String pointContext)

Methods

String getNativeName()
synchronized Point getPoint()

The request point.

synchronized String getPointContext()

Opaque string that describe entrances, driving arrival points and so on.

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 RequestPointType type, @Nullable String pointContext)

Method Detail

getNativeName

public static String getNativeName ()

getPoint

public synchronized Point getPoint ()

The request point.

getPointContext

public synchronized String getPointContext ()

Opaque string that describe entrances, driving arrival points and so on.

Optional field, can be null.

getType

public synchronized RequestPointType getType ()

The type of request point specified.

serialize

public void serialize (Archive archive)