HERE iOS SDK Developer's Guide

NMATransitManager

Class Summary

class NMATransitManager

Derived from: NSObject

A singleton object used to obtain public transit infrastructure information.

Include: NMAKit.framework/headers/NMATransitManager.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMATransitManager

[For complete information, see the section Class Details]

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, writable, weak] id< NMATransitManagerDelegate delegate

An object implementing the NMATransitManagerDelegate protocol which will receive the results of information requests.

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull) init

-(void) requestAccessInfoForId:(nonnull NSString *) uniqueId

Starts a request for the NMATransitAccess object associated with the given identifying string

-(void) requestInfoForObject:(nonnull NMATransitObject *) object

Starts a request for the transit information associated with the given NMATransitObject.

-(void) requestLineInfoForId:(nonnull NSString *) uniqueId

Starts a request for the NMATransitLine object associated with the given identifying string.

-(void) requestStopInfoForId:(nonnull NSString *) uniqueId

Starts a request for the NMATransitStop object associated with the given identifying string.

-(void) requestSystemInfoForId:(nonnull NSString *) uniqueId

Starts a request for the NMATransitSystem object associated with the given identifying string.

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull) new

+(nonnull NMATransitManager *) sharedTransitManager

Used to access the shared NMATransitManager singleton object.

Class Details

A singleton object used to obtain public transit infrastructure information.

The NMATransitManager may be used to obtain information about public transit systems, lines, stops, and accesses. This can be done via unique identifying strings or objects obtained from an NMAMapView (via gesture or programmatic object selection).

Note:

The NMATransitManager is a singleton and should only be accessed using the sharedTransitManager class method.

Note:

Requests made through the NMATransitManager are asynchronous. Cocurrent requests are not supported.

Public Property Details

[readable, writable, weak] id< NMATransitManagerDelegatedelegate

An object implementing the NMATransitManagerDelegate protocol which will receive the results of information requests.

Instance Method Details

-(nonnull) init

Instances of this class should not be initialized directly

-(void) requestAccessInfoForId:(nonnull NSString *) uniqueId

Starts a request for the NMATransitAccess object associated with the given identifying string.

Parameters:

  • uniqueId

    The identifier to use when requesting access.

-(void) requestInfoForObject:(nonnull NMATransitObject *) object

Starts a request for the transit information associated with the given NMATransitObject.

Note:

The NMATransitObject may represent a line, access, or stop.

See also:

NMATransitObject

-(void) requestLineInfoForId:(nonnull NSString *) uniqueId

Starts a request for the NMATransitLine object associated with the given identifying string.

Parameters:

  • uniqueId

    The identifier to use when requesting a transit line.

-(void) requestStopInfoForId:(nonnull NSString *) uniqueId

Starts a request for the NMATransitStop object associated with the given identifying string.

Parameters:

  • uniqueId

    The identifier to use when requesting transit stop info.

-(void) requestSystemInfoForId:(nonnull NSString *) uniqueId

Starts a request for the NMATransitSystem object associated with the given identifying string.

Parameters:

  • uniqueId

    The identifier to use when requesting transit system info.

Class Method Details

+(nonnull) new

Instances of this class should not be initialized directly

+(nonnull NMATransitManager *) sharedTransitManager

Used to access the shared NMATransitManager singleton object.

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.