HERE iOS SDK Developer's Guide

NMAUrbanMobilityRouter

Class Summary

class NMAUrbanMobilityRouter

Derived from: NMARouter

Urban Mobility-specific route calculation executor.

Include: NMAKit.framework/headers/NMAUrbanMobilityRouter.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAUrbanMobilityRouter

[For complete information, see the section Class Details]

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

-(NSProgress *) calculateRouteWithStops:(NSArray *) stops routingMode:( NMARoutingMode *) mode completionBlock:( NMAUrbanMobilityCalculateResultBlock ) completion

Starts a NMAUrbanMobilityRoute calculation with the given stop list

-(NSProgress *) calculateSubsequentRouteWithRouteResult:( NMAUrbanMobilityRouteResult *) routeResult withSubsequentRouteType:( NMASubsequentRouteType ) subsequentRouteType withRouteCount:(NSUInteger) routeCount completionBlock:( NMAUrbanMobilityCalculateResultBlock ) completion

Class Details

Urban Mobility-specific route calculation executor. Defines Urban Mobility specific calculation methods and response listener.

Urban Mobility provides Inter-modal and Multi-modal routes including Public Transit.

IMPORTANT: Urban Mobility routing is a Beta feature. The related classes are subject to change without notice.

Instance Method Details

-(NSProgress *) calculateRouteWithStops:(NSArray *) stops routingMode:( NMARoutingMode *) mode completionBlock:( NMAUrbanMobilityCalculateResultBlock ) completion

Starts a NMAUrbanMobilityRoute calculation with the given stop list.

This method returns nil and a route will not be calculated if access to this operation is denied. Contact your HERE representative for more information.

NMARoutingErrorInvalidParameters is returned if new route is requested while the previous one has not yet been completed.

Parameters:

  • stops

    The array of stops used to calculate the route. Must have two items and of type NMAWaypoint. Otherwise, this method returns nil, completes with NMARoutingErrorInvalidParameters and a route will not be calculated.

  • mode

    The NMARoutingMode to use for route calculation

Returns:

NSProgress if route calculation is successfully started, nil otherwise

-(NSProgress *) calculateSubsequentRouteWithRouteResult:( NMAUrbanMobilityRouteResult *) routeResult withSubsequentRouteType:( NMASubsequentRouteType ) subsequentRouteType withRouteCount:(NSUInteger) routeCount completionBlock:( NMAUrbanMobilityCalculateResultBlock ) completion

Starts an earlier route calculation, based on service parameters included in NMAUrbanMobilityRouteResult

This method returns nil and a route will not be calculated if access to this operation is denied. Contact your HERE representative for more information.

Parameters:

  • routeResult

    of type NMAUrbanMobilityRouteResult contains parameters (serviceUrl and context) obtained from response of requested route

  • subsequentRouteType

    The NMASubsequentRouteType parameter to force searching earlier or later routes

  • routeCount

    Number of desired route. Given number is just suggestion and the number of route returned is not guaranteed. Allowed range is [1, 6]. Using unsupported value will result error response in route calculation.

Returns:

NSProgress if route calculation is successfully started, nil otherwise

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.