HERE iOS SDK Developer's Guide

NMAVenue3dRoutingController

Class Summary

class NMAVenue3dRoutingController

Derived from: NSObject

An NMAVenue3dRoutingController object encapsulates the routing functionality.

Include: NMAKit.framework/headers/NMAVenue3dRoutingController.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAVenue3dRoutingController

[For complete information, see the section Class Details]

See also:

NMAVenue3dMapLayer

NMAVenue3dController

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

-(void) addObserver:(nonnull id< NMAVenue3dRoutingControllerObserver >) observer

Add a NMAVenue3dRoutingControllerObserver.

-(void) calculateRouteFrom:(nonnull NMAVenue3dBaseLocation *) startLocation to:(nonnull NMAVenue3dBaseLocation *) endLocation withParams:(nonnull NMAVenue3dRouteOptions *) options

Calculates route object from start to end location

-(void) calculateRouteWithPoints:(nonnull NSArray< NMAVenue3dBaseLocation * > *) points withParams:(nonnull NMAVenue3dRouteOptions *) options

Calculates route object with the given waypoints

-(void) hideRoute

Hides the currently shown route

-(nonnull) init

-(void) removeObserver:(nonnull id< NMAVenue3dRoutingControllerObserver >) observer

Remove a NMAVenue3dRoutingControllerObserver.

-(void) showRoute:(nonnull NMAVenue3dCombinedRoute *) combinedRoute

Shows the route on the map

Class Method Summary

Table 2. Class Methods
Class Methods

+(nonnull) new

Class Details

An NMAVenue3dRoutingController object encapsulates the routing functionality.

With NMAVenue3dRoutingController one can set route parameters like start end end locations and display the route. Either end of the route need to be some space in a venue.

This class can not be instantiated directly, instead it is obtained from NMAVenueMapLayer for the given NMAVenue3dController object.

See also:

NMAVenue3dMapLayer

NMAVenue3dController

Instance Method Details

-(void) addObserver:(nonnull id< NMAVenue3dRoutingControllerObserver >) observer

Add a NMAVenue3dRoutingControllerObserver.

Parameters:

  • observer

    to be added

-(void) calculateRouteFrom:(nonnull NMAVenue3dBaseLocation *) startLocation to:(nonnull NMAVenue3dBaseLocation *) endLocation withParams:(nonnull NMAVenue3dRouteOptions *) options

Calculates route object from start to end location. Route calculation is done in an asynchronous manner, and the calculated route is available for listeners of NMAVenue3dRoutingControllerDelegate upon completion. Parking locations are only taken into account if the transport mode is set to car in NMARoutingMode. If the transport mode is car and the starting location has an associated parking location, the route segment from the starting point to the associated parking location will be in pedestrian mode. If the transport mode is car and the end point has an associated parking location, the route segment from the parking location to the end point will be in pedestrian mode.

Parameters:

  • startLocation

    A start location object.

  • endLocation

    An end ocation object.

  • options

    An options used for route calculataion.

-(void) calculateRouteWithPoints:(nonnull NSArray< NMAVenue3dBaseLocation * > *) points withParams:(nonnull NMAVenue3dRouteOptions *) options

Calculates route object with the given waypoints. Route calculation is done in an asynchronous manner, and the calculated route is available for listeners of NMAVenue3dRoutingControllerDelegate upon completion. Parking locations are only taken into account for the start and end points of the route, and only if the transport mode is set to car in NMARoutingMode. Parking locations on intermediate waypoints are ignored. If the transport mode is car and the starting point has an associated parking location, the route segment from the starting point to the associated parking location will be in pedestrian mode. If the transport mode is car and the end point has an associated parking location, the route segment from the parking location to the end point will be in pedestrian mode.

Parameters:

  • points

    The points on the route as NMAVenue3dBaseLocation objects (start, waypoints, end). Maximum number of elements is 11 (9 waypoints).

  • options

    Options used for route calculataion.

-(void) hideRoute

Hides the currently shown route.

-(nonnull) init

Instances of this class should not be initialized directly

-(void) removeObserver:(nonnull id< NMAVenue3dRoutingControllerObserver >) observer

Remove a NMAVenue3dRoutingControllerObserver.

Parameters:

  • observer

    to be added

-(void) showRoute:(nonnull NMAVenue3dCombinedRoute *) combinedRoute

Shows the route on the map. Only one route at a time can be shown.

Parameters:

  • combinedRoute

    A route object. This object is obtained using calculateRouteFrom message or calculateRouteWithPoints message of this class. The route can be hidden using hideRoute message of this class.

Class Method Details

+(nonnull) new

Instances of this class should not be initialized directly

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.