HERE Android SDK Developer's Guide

RoutingError

The enumeration RoutingError is a member of com.here.android.mpa.routing .

Enumeration Summary

public final enumeration RoutingError

extends java.lang.Enum, java.lang.Object

Represents values describing possible route calculation errors.

[For complete information, see the section Enumeration Details]

Enum Constant Summary

Table 1. Enum Constants in RoutingError
Fields

public static final RoutingError NONE

There was no calculation error.

public static final RoutingError UNKNOWN

There was an unknown error preventing calculation.

public static final RoutingError OUT_OF_MEMORY

An out-of-memory error prevented calculation.

public static final RoutingError INVALID_PARAMETERS

Parameters passed were invalid.

public static final RoutingError INVALID_OPERATION

The operation is not allowed at this time because another request is in progress.

public static final RoutingError GRAPH_DISCONNECTED

No route was found.

public static final RoutingError GRAPH_DISCONNECTED_CHECK_OPTIONS

No route was found, one of the RouteOptions might be preventing calculation.

public static final RoutingError NO_START_POINT

No start point was found.

public static final RoutingError NO_END_POINT

No end point was found.

public static final RoutingError NO_END_POINT_CHECK_OPTIONS

The end point is unreachable, possibly due to one of the RouteOptions.

public static final RoutingError CANNOT_DO_PEDESTRIAN

A PEDESTRIAN transport mode was set but was not practical (possibly the route is too long).

public static final RoutingError ROUTING_CANCELLED

An application user cancelled the calculation.

public static final RoutingError VIOLATES_OPTIONS

A route was found but is invalid because it makes use of roads that were disabled by RouteOptions.

public static final RoutingError ROUTE_CORRUPTED

Could not decode the route as received from the server.

public static final RoutingError INVALID_CREDENTIALS

The route cannot be calculated because the HERE Developer credentials are invalid or were not provided.

public static final RoutingError REQUEST_TIMEOUT

Deprecated: As of SDK 3.3.

The online route calculation request has timed out because the server has not responded or the device system resources have been exhausted.

public static final RoutingError OPERATION_NOT_ALLOWED

Access to this operation is denied.

public static final RoutingError NO_CONNECTIVITY

No internet connection is available.

public static final RoutingError INSUFFICIENT_MAP_DATA

The route cannot be calculated because there is not enough local map data to perform route calculation.

public static final RoutingError NETWORK_COMMUNICATION

The online route calculation request failed because of a networking error.

public static final RoutingError UNSUPPORTED_MAP_VERSION

The online routing server does not support the device downloaded map version as specified in the route request.

Method Summary

Table 2. Methods in RoutingError
Methods

public int value ()

public static RoutingError valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

public static RoutingError[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

Enumeration Details

Represents values describing possible route calculation errors.

Enum Constant Details

public static final RoutingError NONE

There was no calculation error. NOTE: do not rename; there is code that refers to "NONE" as a hard-coded literal

public static final RoutingError UNKNOWN

There was an unknown error preventing calculation.

public static final RoutingError OUT_OF_MEMORY

An out-of-memory error prevented calculation.

public static final RoutingError INVALID_PARAMETERS

Parameters passed were invalid.

public static final RoutingError INVALID_OPERATION

The operation is not allowed at this time because another request is in progress.

public static final RoutingError GRAPH_DISCONNECTED

No route was found.

public static final RoutingError GRAPH_DISCONNECTED_CHECK_OPTIONS

No route was found, one of the RouteOptions might be preventing calculation.

public static final RoutingError NO_START_POINT

No start point was found.

public static final RoutingError NO_END_POINT

No end point was found.

public static final RoutingError NO_END_POINT_CHECK_OPTIONS

The end point is unreachable, possibly due to one of the RouteOptions.

public static final RoutingError CANNOT_DO_PEDESTRIAN

A PEDESTRIAN transport mode was set but was not practical (possibly the route is too long).

public static final RoutingError ROUTING_CANCELLED

An application user cancelled the calculation.

public static final RoutingError VIOLATES_OPTIONS

A route was found but is invalid because it makes use of roads that were disabled by RouteOptions.

public static final RoutingError ROUTE_CORRUPTED

Could not decode the route as received from the server.

public static final RoutingError INVALID_CREDENTIALS

The route cannot be calculated because the HERE Developer credentials are invalid or were not provided.

public static final RoutingError REQUEST_TIMEOUT

Deprecated: As of SDK 3.3.

Use NETWORK_COMMUNICATION.

The online route calculation request has timed out because the server has not responded or the device system resources have been exhausted. The route calculation request should be retried.

public static final RoutingError OPERATION_NOT_ALLOWED

Access to this operation is denied. Contact your HERE representative for more information.

public static final RoutingError NO_CONNECTIVITY

No internet connection is available.

public static final RoutingError INSUFFICIENT_MAP_DATA

The route cannot be calculated because there is not enough local map data to perform route calculation. Client can re-download map data and calculate route again.

public static final RoutingError NETWORK_COMMUNICATION

The online route calculation request failed because of a networking error. The route calculation request should be retried.

public static final RoutingError UNSUPPORTED_MAP_VERSION

The online routing server does not support the device downloaded map version as specified in the route request. Clients must update the map version installed on the device.

Method Details

public int value ()

public static RoutingError valueOf (String name)

This method retrieves the enumeration value that matches the name specified by the caller.

Parameters:

  • name

    A string containing the name of the enumeration member whose value is to be retrieved.

public static RoutingError[] values ()

This method retrieves an array of constants of the given enum type in the order in which they are declared.

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.