OnStreets
class OnStreets<T, O : RoutingServiceOptions<O>?, S : RoutingService<GeoPosition, O>?> : RoutingStrategy<T, GeoPosition>
This strategy computes a route along streets allowed for a selected RoutingServiceOptions connecting the starting and ending point.
Parameters
Constructors
Functions
Link copied to clipboard
Returns a copy for destination and reaction when this strategy is stateful, or this object otherwise.
Link copied to clipboard
open fun computeRoute(@Nonnull currentPos: GeoPosition, @Nonnull finalPos: GeoPosition): Route<GeoPosition>
Computes a route from currentPos to finalPos.