query

open fun query(@NonNull from: MPPoint, @NonNull to: MPPoint)

Query a route between two points

Parameters

from

Origin

to

Destination


open fun query(@NonNull from: MPPoint, @NonNull to: MPPoint, @Nullable stops: List<MPPoint>, @Nullable optimize: Boolean)

Query a route between two points, with optional stops

Parameters

from

Origin

to

Destination

stops

List of stops

optimize

Whether to optimize the stops on the route