Navmii SDK
2.2.0
Write yourself a navigation system in iOS
|
Inherits <NSObject>.
Instance Methods | |
(nullable NMRouteCalculationSession *) | - calculateRouteUsingRoutePlan:statusReportListener: |
(nullable NMRouteCalculationSession *) | - calculateRouteUsingRoutePlan:options:statusReportListener: |
(nullable NMRouteCalculationSession *) | - snapRoute:options:statusReportListener: |
(nullable NMRouteCalculationSession *) | - snapRoute:fromPosition:options:statusReportListener: |
(nullable instancetype) | - NS_UNAVAILABLE |
Class Methods | |
(nullable instancetype) | + NS_UNAVAILABLE |
Service to be used to calculate or snap routes.
- (nullable NMRouteCalculationSession *) calculateRouteUsingRoutePlan: | (nonnull NMRoutePlan *) | routePlan | |
options: | (nullable NMRouteCalculationOptions *) | options | |
statusReportListener: | (nullable id< NMRouteCalculationListener >) | listener | |
Initiates route calculation process using the specified route plan and options.
routePlan | @nonnull List of waypoints to calculate a route via; |
options | Options to be used during the route calculation process. Default options are used if 'nil' is passed; |
listener | Listener to get notifications on route calculation status updates. |
- (nullable NMRouteCalculationSession *) calculateRouteUsingRoutePlan: | (nonnull NMRoutePlan *) | routePlan | |
statusReportListener: | (nullable id< NMRouteCalculationListener >) | listener | |
Initiates route calculation process using the specified route plan. Default route calculation options are used.
routePlan | @nonnull List of waypoints to calculate a route via; |
listener | Listener to get notifications on route calculation status updates. |
- (nullable instancetype) NS_UNAVAILABLE |
Default initialization is forbidden.
+ (nullable instancetype) NS_UNAVAILABLE |
- (nullable NMRouteCalculationSession *) snapRoute: | (nonnull NMExternalRoute *) | route | |
fromPosition: | (nonnull NMPosition *) | position | |
options: | (nonnull NMRouteSnappingOptions *) | options | |
statusReportListener: | (nullable id< NMRouteCalculationListener >) | listener | |
Starts new route calculation session to snap the specified route object to the map. Additionally calculates a route from the specified start point to the first point of the specified route object. If both, snapping and calculation, succeeded, combines both routes into one.
route | Route object to snap to the map. |
position | Specifies the first point in the final route. |
options | Route snapping options. |
listener | Listener to get notifications on route calculation status updates. |
- (nullable NMRouteCalculationSession *) snapRoute: | (nonnull NMExternalRoute *) | route | |
options: | (nonnull NMRouteSnappingOptions *) | options | |
statusReportListener: | (nullable id< NMRouteCalculationListener >) | listener | |
Starts new route calculation session to snap the specified route object to the map.
route | Route object to snap to the map. |
options | Route snapping options. |
listener | Listener to get notifications on route calculation status updates. |