HERE iOS SDK Developer's Guide

Offline Search

Force Online or Offline

You can launch online or offline searches without changing the device or HERE SDK connectivity by using the connectivity property on an NMARequest instance. This property is applicable to all NMARequest subclasses, except NMAAutoSuggestionRequest, which can only be used online.

The connectivity property can be set to three possible values:
  • NMARequestConnectivityDefault - Uses the connectivity as determined through the SDK
  • NMARequestConnectivityOffline - Uses cached data on the device
  • NMARequestConnectivityOnline - Attempts to perform online requests, but does not fallback to use cached data even if no connection is available

To ensure that the connectivity mode is applied, set the connectivity property before executing an NMARequest.

  • If an NMARequestConnectivityOnline search request fails due to connection issues, HERE SDK returns the NMARequestErrorUnknown error code.
  • If an NMARequestConnectivityOnline Geocoding or Reverse Geocoding request fails due to connection issues, HERE SDK returns the NMARequestErrorNetworkCommunication error code.
  • If an NMARequestConnectivityOffline search request fails due to not enough cached data, HERE SDK returns with zero results.
  • If you attempt to start an NMAAutoSuggestionRequest with the NMARequestConnectivityOffline connectivity mode, HERE SDK returns the NMARequestErrorNotSupported error code, since auto suggestions are only supported online.

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