BOOL lIsAccessible = [self.enableAccessibleRouteSwitch isOn];
BOOL lIsOptimized = [self.enableOptimizeSwitch isOn];
optimize:lIsOptimized];
CLLocation* lLocation = [[CLLocation alloc] initWithCoordinate:CLLocationCoordinate2DMake(45.7424829, 4.8800862)
altitude:52
horizontalAccuracy:5
verticalAccuracy:0
course:-1
speed:5
timestamp:[NSDate date]];
[lRouteRequest setOriginWithLocation:lLocation];
[lRouteRequest addDestinations:@[@"B4-UL05-ID0032", @"B2-LL01-ID0011", @"B3-UL00-ID0070"]];
[self.mapView computeRoute:lRouteRequest callback:self];
Represents a route request to computeRoute:callback: (VMEMapView)
Definition: VMERouteRequest.h:16
BOOL lIsAccessible = [self.enableAccessibleRouteSwitch isOn];
destinationsOrder:lDestOrder
accessible:lIsAccessible];
CLLocation* lCLLocation = [[CLLocation alloc] initWithCoordinate:CLLocationCoordinate2DMake(45.7424829, 4.8800862)
altitude:52
horizontalAccuracy:5
verticalAccuracy:0
course:-1
speed:5
timestamp:[NSDate date]];
VMEPosition* lPosition = [self.mapView createPositionFromLocation:lCLLocation];
[lRouteRequest setOrigin:lPosition];
[lRouteRequest addDestinations:@[@"B4-UL05-ID0032", @"B2-LL01-ID0011", @"B3-UL00-ID0070"]];
[self.mapView computeRoute:lRouteRequest callback:self];
@ VMERouteRequestTypeFastest
Indicates a request for a route that optimizes time.
Definition: VMERouteRequestType.h:27
VMERouteDestinationsOrder
The different ways to interpret multiple destinations, these options do not change the behavior if th...
Definition: VMERouteDestinationsOrder.h:18
@ VMERouteDestinationsOrderOptimal
Indicates that the destinations should be traversed in the order that minimizes the overall distance ...
Definition: VMERouteDestinationsOrder.h:31
@ VMERouteDestinationsOrderInOrder
Indicates that the destinations should be traversed in order.
Definition: VMERouteDestinationsOrder.h:24