HERE iOS SDK Developer's Guide

NMAUrbanMobilityRequestManager

Class Summary

class NMAUrbanMobilityRequestManager

Derived from: NSObject

Defines a singleton which manages creation of requests to the HERE backend servers.

Include: NMAKit.framework/headers/NMAUrbanMobilityRequestManager.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAUrbanMobilityRequestManager

[For complete information, see the section Class Details]

See also:

NMAUrbanMobilitySearchRequest

NMAUrbanMobilityCityCoverageRequest

NMAUrbanMobilityCitySearchRequest

NMAUrbanMobilityDepartureBoardRequest

NMAUrbanMobilityNearbyCoverageRequest

NMAUrbanMobilityStationSearchRequest

Instance Method Summary

Table 1. Instance Methods
Instance Method Summary

-(nonnull NMAUrbanMobilityCityCoverageRequest *) createCityCoverageRequest

Creates a new NMAUrbanMobilityCityCoverageRequest used to get a list of cities where were have transit coverage, as well as list of transit operators, from a given location, within a certain radius

-(nonnull NMAUrbanMobilityCitySearchRequest *) createCitySearchRequestWithCity:(nonnull NSString *) cityName

Creates a new NMAUrbanMobilityCitySearchRequest for search for public transit coverage by city

-(nonnull NMAUrbanMobilityDepartureBoardRequest *) createDepartureBoardRequestWithStationId:(nonnull NSString *) stationId location:(nonnull NMAGeoCoordinates *) location

Creates a new NMAUrbanMobilityDepartureBoardRequest for a departure board at a transit station with a given ID and given geo coordinates

-(nonnull NMAUrbanMobilityMultiBoardRequest *) createMultiBoardRequestWithLocation:(nonnull NMAGeoCoordinates *) location

Creates a new NMAUrbanMobilityMultiBoardRequest for a multi departure board from given location

-(nonnull NMAUrbanMobilityMultiBoardRequest *) createMultiBoardRequestWithStationIds:(nonnull NSArray< NSString * > *) stationIds

Creates a new NMAUrbanMobilityMultiBoardRequest to search only by Station IDs

-(nonnull NMAUrbanMobilityNearbyCoverageRequest *) createNearbyCoverageRequestForLocation:(nonnull NMAGeoCoordinates *) location

Creates a new NMAUrbanMobilityNearbyCoverageRequest used for retrieve coverage information about nearby cities

-(nonnull NMAUrbanMobilityStationSearchRequest *) createStationSearchRequestWithIds:(nonnull NSArray< NSString * > *) stationIds

Creates a new NMAUrbanMobilityStationSearchRequest to search for transit stations with given IDs

-(nonnull NMAUrbanMobilityStationSearchRequest *) createStationSearchRequestWithLocation:(nonnull NMAGeoCoordinates *) location

Creates a new NMAUrbanMobilityStationSearchRequest to search for transit stations around a given location

-(nonnull instancetype) init

Class Method Summary

Table 2. Class Methods
Class Methods

+(nonnull instancetype) new

+(nonnull NMAUrbanMobilityRequestManager *) sharedRequestManager

Returns the shared instance of NMAUrbanMobilityRequestManager

Class Details

Defines a singleton which manages creation of requests to the HERE backend servers.

NMAUrbanMobilityRequestManager is a singleton which provides convenient shortcuts for creation of NMAUrbanMobilitySearchRequest instances: NMAUrbanMobilityStationSearchRequest to search for transit stations and NMAUrbanMobilityDepartureBoardRequest to request departure boards.

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

See also:

NMAUrbanMobilitySearchRequest

NMAUrbanMobilityCityCoverageRequest

NMAUrbanMobilityCitySearchRequest

NMAUrbanMobilityDepartureBoardRequest

NMAUrbanMobilityNearbyCoverageRequest

NMAUrbanMobilityStationSearchRequest

Instance Method Details

-(nonnull NMAUrbanMobilityCityCoverageRequest *) createCityCoverageRequest

Creates a new NMAUrbanMobilityCityCoverageRequest used to get a list of cities where were have transit coverage, as well as list of transit operators, from a given location, within a certain radius.

Returns:

NMAUrbanMobilityCityCoverageRequest which is ready to be executed.

See also:

startWithCompletionBlock:

-(nonnull NMAUrbanMobilityCitySearchRequest *) createCitySearchRequestWithCity:(nonnull NSString *) cityName

Creates a new NMAUrbanMobilityCitySearchRequest for search for public transit coverage by city.

Parameters:

  • cityName

    - string used to search.

Returns:

NMAUrbanMobilityCitySearchRequest which is ready to be executed.

See also:

startWithCompletionBlock:

-(nonnull NMAUrbanMobilityDepartureBoardRequest *) createDepartureBoardRequestWithStationId:(nonnull NSString *) stationId location:(nonnull NMAGeoCoordinates *) location

Creates a new NMAUrbanMobilityDepartureBoardRequest for a departure board at a transit station with a given ID and given geo coordinates.

Note:

Both station ID and geo coordinates are required to identify a transit station unambiguously.

Parameters:

  • stationId

    Transit station ID.

  • location

    Geo coordinates of the transit station.

Returns:

NMAUrbanMobilityDepartureBoardRequest which is ready to be executed.

See also:

startWithCompletionBlock:

-(nonnull NMAUrbanMobilityMultiBoardRequest *) createMultiBoardRequestWithLocation:(nonnull NMAGeoCoordinates *) location

Creates a new NMAUrbanMobilityMultiBoardRequest for a multi departure board from given location.

Parameters:

  • location

    Geo coordinates to search all stations around.

Returns:

NMAUrbanMobilityMultiBoardRequest which is ready to be executed.

See also:

startWithCompletionBlock:

-(nonnull NMAUrbanMobilityMultiBoardRequest *) createMultiBoardRequestWithStationIds:(nonnull NSArray< NSString * > *) stationIds

Creates a new NMAUrbanMobilityMultiBoardRequest to search only by Station IDs.

Parameters:

  • stationIds

    Array of station IDs to search for.

Returns:

NMAUrbanMobilityMultiBoardRequest which is ready to be executed.

See also:

startWithCompletionBlock:

-(nonnull NMAUrbanMobilityNearbyCoverageRequest *) createNearbyCoverageRequestForLocation:(nonnull NMAGeoCoordinates *) location

Creates a new NMAUrbanMobilityNearbyCoverageRequest used for retrieve coverage information about nearby cities.

Parameters:

  • location

    Geo coordinates of the entry point used to search.

Returns:

NMAUrbanMobilityNearbyCoverageRequest which is ready to be executed.

See also:

startWithCompletionBlock:

-(nonnull NMAUrbanMobilityStationSearchRequest *) createStationSearchRequestWithIds:(nonnull NSArray< NSString * > *) stationIds

Creates a new NMAUrbanMobilityStationSearchRequest to search for transit stations with given IDs.

Parameters:

  • stationIds

    Array of transit station IDs to search for.

Returns:

NMAUrbanMobilityStationSearchRequest which is ready to be executed.

See also:

startWithCompletionBlock:

-(nonnull NMAUrbanMobilityStationSearchRequest *) createStationSearchRequestWithLocation:(nonnull NMAGeoCoordinates *) location

Creates a new NMAUrbanMobilityStationSearchRequest to search for transit stations around a given location.

Use optional properties to fine tune the search: searchRange, stationName, nameMatchingMethod

Parameters:

  • location

    Geo coordinates to search for nearby transit stations around.

Returns:

NMAUrbanMobilityStationSearchRequest which is ready to be executed.

See also:

startWithCompletionBlock:

-(nonnull instancetype) init

Instances of this class should not be initialized directly

Class Method Details

+(nonnull instancetype) new

Instances of this class should not be initialized directly

+(nonnull NMAUrbanMobilityRequestManager *) sharedRequestManager

Returns the shared instance of NMAUrbanMobilityRequestManager. No other instances should be created.