makeRoute abstract method

RoutePath makeRoute(
  1. LocationPoint from,
  2. LocationPoint to
)

Method is used to build a route between points about evaluated RoutePath from your position to target point. from starting LocationPoint. to destination LocationPoint. Returns RoutePath from starting to destination point.

Example:

// Make route from point to point
RoutePath routePath = _routeManager!.makeRoute(startLocationPoint, endLocationPoint);
print("Route created with length: ${routePath.length} meters");

Implementation

RoutePath makeRoute(LocationPoint from, LocationPoint to);