Represents a delegate to handle SYRoute route calculation updates.
More...
#import <SYRouting.h>
Represents a delegate to handle SYRoute route calculation updates.
◆ routing:computingFailedWithError:()
- (void) routing: |
|
(nonnull SYRouting *) |
routing |
computingFailedWithError: |
|
(SYRoutingError) |
error |
|
|
| |
|
optional |
Callback when route calculation fails.
- Parameters
-
routing | SYRouting object |
error | SYRoutingError type |
◆ routing:didComputeAlternativeRoute:()
- (void) routing: |
|
(nonnull SYRouting *) |
routing |
didComputeAlternativeRoute: |
|
(nullable SYRoute *) |
route |
|
|
| |
|
optional |
Callback when a alternative route has been calculated.
- Parameters
-
◆ routing:didComputeDurations:for:()
- (void) routing: |
|
(nonnull SYRouting *) |
routing |
didComputeDurations: |
|
(nonnull NSArray< NSNumber * > *) |
durations |
for: |
|
(nonnull SYRoute *) |
route |
|
|
| |
|
optional |
Called when computeNextTimes did finished.
- Parameters
-
routing | SYRouting object. |
durations | array of durations in NSTimeInterval. |
route | SYRoute object. |
◆ routing:didComputePrimaryRoute:()
- (void) routing: |
|
(nonnull SYRouting *) |
routing |
didComputePrimaryRoute: |
|
(nullable SYRoute *) |
route |
|
|
| |
|
optional |
Callback when a primary route has been calculated.
- Parameters
-
◆ routing:didFinishRouteRecompute:()
- (void) routing: |
|
(nonnull SYRouting *) |
routing |
didFinishRouteRecompute: |
|
(nonnull SYRoute *) |
route |
|
|
| |
|
optional |
Called when re-compute did finished with success.
- Parameters
-
routing | SYRouting object. |
route | computed route with start point at current location. |
◆ routing:didUpdateComputingProgress:onRoute:()
- (void) routing: |
|
(nonnull SYRouting *) |
routing |
didUpdateComputingProgress: |
|
(float) |
progress |
onRoute: |
|
(NSUInteger) |
routeIndex |
|
|
| |
|
optional |
Callback for reporting the progress of route calculation, values range from 0.0 (starting) to 1.0 (complete).
- Parameters
-
routing | SYRouting object. |
progress | The progress of the current routing operation. |
routeIndex | Computed route index. |
◆ routingDidFinishRouteCompute:()
- (void) routingDidFinishRouteCompute: |
|
(nonnull SYRouting *) |
routing |
|
|
optional |
Called when compute did finished with success after computeRoute: call.
- Parameters
-
◆ routingDidStartRouteComputing:()
- (void) routingDidStartRouteComputing: |
|
(nonnull SYRouting *) |
routing |
|
|
optional |
Callback upon completion of route calculation.
- Parameters
-
◆ routingDidStartRouteRecompute:()
- (void) routingDidStartRouteRecompute: |
|
(nonnull SYRouting *) |
routing |
|
|
optional |
Called when re-compute did star due to vehicle position change.
- Parameters
-
The documentation for this protocol was generated from the following file: