HERE iOS SDK Developer's Guide

NMAUrbanMobilityCityCoverageRequest

Class Summary

class NMAUrbanMobilityCityCoverageRequest

Derived from: NMAUrbanMobilitySearchRequest

Represents a request used to get a list of cities where we have transit coverage, as well as list of transit operators, from a given location, within a certain radius.

Include: NMAKit.framework/headers/NMAUrbanMobilityCityCoverageRequest.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAUrbanMobilityCityCoverageRequest

[For complete information, see the section Class Details]

See also:

NMAUrbanMobilityCitySearchCompletionBlock

NMACity

Protected Typedef Summary

Table 1. Protected Typedefs
Protected Typedefs

(void) (^NMAUrbanMobilityCityCoverageRequestCompletionBlock) (NMAUrbanMobilityCityCoverageResult *coverageResult, NSError *error)

Public Property Summary

Table 2. Public Properties
Public Properties

[readable, writable, assign] NMAGeoCoordinates location

Optional parameter

[readable, writable, assign] NSInteger  maximumResults

Optional parameter

[readable, writable, assign] NSInteger  nearbyMax

Optional parameter

[readable, writable, assign] NSInteger  radius

Optional parameter

[readable, writable, assign] BOOL  requestCityDetailsEnabled

Optional parameter

[readable, writable, assign] NSDate *  time

Optional parameter

[readable, writable, assign] NMACoverageUpdateType   updateType

Optional parameter, used for filtering data

Instance Method Summary

Table 3. Instance Methods
Instance Method Summary

-(BOOL) startWithCompletionBlock:( NMAUrbanMobilityCityCoverageRequestCompletionBlock ) completion

Sends the request to retrieve public transit coverage by city

Class Details

Represents a request used to get a list of cities where we have transit coverage, as well as list of transit operators, from a given location, within a certain radius.

NMAUrbanMobilityCityCoverageRequest assembles and issues requests to the HERE backend server.

The HERE backend server responds with either a list of NMACity or NSError if something goes wrong. Use NMAUrbanMobilityCitySearchCompletionBlock to capture the response.

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

See also:

NMAUrbanMobilityCitySearchCompletionBlock

NMACity

Protected Typedef Details

(void) (^NMAUrbanMobilityCityCoverageRequestCompletionBlock) (NMAUrbanMobilityCityCoverageResult *coverageResult, NSError *error)

Public Property Details

[readable, writable, assign] NMAGeoCoordinateslocation

Optional parameter. Specifies the location of the center point of your search

[readable, writable, assign] NSInteger maximumResults

Optional parameter. Limits the number of cities the response can contain. Default value is 0. Parameter is added to request if it's value is greater than 0.

[readable, writable, assign] NSInteger nearbyMax

Optional parameter. Set maximum number of cities returned in a separate "nearby" list. Enables a separate list for nearby cities. The resulting response contains a separate list of cities without any details. Cities with zero relevancy are included in the nearby list. All cities with a relevancy greater than 0 are shown in the "main" cities list.

[readable, writable, assign] NSInteger radius

Optional parameter. Specifies a radius in meters that when combined with a user location (as specified by the parameter location ) defines the area of search. The default value is 150000m.

[readable, writable, assign] BOOL requestCityDetailsEnabled

Optional parameter. Enables Pop (population of a city) and array of NMAUrbanMobilityOperator in the NMAUrbanMobilityCity list. Otherwise, the NMAUrbanMobilityCity doesn't contain that informations. Only applicable for the cities list, the nearby list never contains details NO = disabled, YES = enabled The default is YES. Parameter is added to request only if client sets value.

[readable, writable, assign] NSDate * time

Optional parameter. Specifies the date and time to search. If you specify this parameter in your request, the response contains information filtered by given date. Use the NMACoverageUpdateType parameter to specify filtering behavior.

[readable, writable, assign] NMACoverageUpdateType  updateType

See also:

time.

Instance Method Details

-(BOOL) startWithCompletionBlock:( NMAUrbanMobilityCityCoverageRequestCompletionBlock ) completion

Sends the request to retrieve public transit coverage by city. Request processing is performed asynchronously: NMAUrbanMobilityCityCoverageRequestCompletionBlock is used to pass the response.

Note:

NMAUrbanMobilityCityCoverageRequestCompletionBlock is called on the main queue.

Parameters:

  • completion

    NMAUrbanMobilityCityCoverageRequestCompletionBlock which is used to pass the response.

Returns:

YES if the request was triggered successfully, NO otherwise.

See also:

NMAUrbanMobilityCityCoverageRequestCompletionBlock

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.