SITNavigationDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | SITNavigationInterface.h |
Overview
Protocol for SITNavigationManager. Use this to listen for route progression related callbacks.
– navigationManager:didFailWithError:
required method
Called when an error is encountered.
- (void)navigationManager:(id<SITNavigationInterface>)navigationManager didFailWithError:(NSError *)error
Parameters
navigationManager |
navigation provider. |
---|---|
error |
error that describes the problematic situation. |
Declared In
SITNavigationInterface.h
– navigationManager:didUpdateProgress:onRoute:
required method
Called when a user progresses on a route
- (void)navigationManager:(id<SITNavigationInterface>)navigationManager didUpdateProgress:(SITNavigationProgress *)progress onRoute:(SITRoute *)route
Parameters
navigationManager |
navigation provider (object that called this method) |
---|---|
progress |
object containing information about current progress on route |
route |
SITRoute that the user is following |
Declared In
SITNavigationInterface.h
– navigationManager:destinationReachedOnRoute:
required method
Called when location has reached the last point on a route.
- (void)navigationManager:(id<SITNavigationInterface>)navigationManager destinationReachedOnRoute:(SITRoute *)route
Parameters
navigationManager |
navigation provider (object that called this method). |
---|---|
route |
SITRoute that the user is following. |
Discussion
arriving to the destination means the user is less than distanceToGoalThreshold meters (defined in SITNavigationRequest) to the goal.
Declared In
SITNavigationInterface.h
– navigationManager:userOutsideRoute:
required method
Called when location has deviated from route enough to warrant a re-routing.
- (void)navigationManager:(id<SITNavigationInterface>)navigationManager userOutsideRoute:(SITRoute *)route
Parameters
navigationManager |
navigation provider (object that called this method). |
---|---|
route |
SITRoute that the user is following. |
Discussion
outside the route means the user is more the outsideRouteThreshold meters (defined in SITNavigationRequest) to the route.
Declared In
SITNavigationInterface.h