makeRoute method
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
@override
RoutePath makeRoute(LocationPoint from, LocationPoint to) {
final _makeRouteFfi = __lib.catchArgumentError(() => __lib.nativeLibrary.lookupFunction<
Pointer<Void> Function(Pointer<Void>, LocationPointNative, LocationPointNative),
Pointer<Void> Function(Pointer<Void>, LocationPointNative, LocationPointNative)
>('navigine_sdk_flutter_RouteManager_makeRoute__From_To'));
final __resultHandle = _makeRouteFfi(this.ptr, LocationPointImpl.toNative(from), LocationPointImpl.toNative(to));
final _result = RoutePath$Impl.fromNativePtr(__resultHandle);
exception.checkCallResult();
return _result;
}