HERE iOS SDK Developer's Guide

NMAUrbanMobilityCitySearchRequest

Class Summary

class NMAUrbanMobilityCitySearchRequest

Derived from: NMAUrbanMobilitySearchRequest

Represents a request used for search for public transit coverage by city.

Include: NMAKit.framework/headers/NMAUrbanMobilityCitySearchRequest.h

Inheritance Diagrams

Figure 1. Public inheritance diagram for NMAUrbanMobilityCitySearchRequest

[For complete information, see the section Class Details]

See also:

NMAUrbanMobilityCitySearchCompletionBlock

Public Property Summary

Table 1. Public Properties
Public Properties

[readable, writable, assign] NSInteger  maximumResults

Optional parameter

[readable, writable, assign] BOOL  requestCityDetailsEnabled

Optional parameter

Instance Method Summary

Table 2. Instance Methods
Instance Method Summary

-(nonnull) init

-(nonnull) initWithCity:(nonnull NSString *) cityName

-(BOOL) startWithCompletionBlock:(nonnull NMAUrbanMobilityCitySearchCompletionBlock ) completion

Sends the request to retrieve a public transit coverage by city

Class Method Summary

Table 3. Class Methods
Class Methods

+(nonnull) new

Class Details

Represents a request used for search for public transit coverage by city.

NMAUrbanMobilityCitySearchRequest assembles and issues requests to the HERE backend server by providing a query string and configuration flag for China.

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

See also:

NMAUrbanMobilityCitySearchCompletionBlock

Public Property Details

[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] 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 user sets value.

Instance Method Details

-(nonnull) init

Instances of this class should not be initialized directly

-(nonnull) initWithCity:(nonnull NSString *) cityName

Creates a new NMAUrbanMobilityCitySearchRequest represents a request used for search public transit coverage by city

Parameters:

  • searchText

    specifies the search text for the city name.

-(BOOL) startWithCompletionBlock:(nonnull NMAUrbanMobilityCitySearchCompletionBlock ) completion

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

Note:

NMAUrbanMobilityCitySearchCompletionBlock is called on the main queue.

Parameters:

  • completion

    NMAUrbanMobilityCitySearchCompletionBlock which is used to pass the response.

Returns:

YES if the request was triggered successfully, NO otherwise.

See also:

NMAUrbanMobilityCitySearchCompletionBlock

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.