HERE Android SDK Developer's Guide

UMRouteOptions

The class UMRouteOptions is a member of com.here.android.mpa.routing .

Class Summary

public class UMRouteOptions

extends com.here.android.mpa.routing.RouteOptions, java.lang.Object

The class contains Urban Mobility specific options for route calculation.

[For complete information, see the section Class Details]

Constructor Summary

Table 1. Constructors in UMRouteOptions
Constructors

UMRouteOptions ()

Public Constructor

UMRouteOptions (RouteOptions other)

Copy Constructor

UMRouteOptions (UMRouteOptions other)

Copy Constructor

Method Summary

Table 2. Methods in UMRouteOptions
Methods

public boolean equals (Object obj)

public int getTransitWalkMaxDistance ()

Gets maximum allowed walk distance in meters or -1 if not set.

public int hashCode ()

public boolean isStrictRouteCountEnabled ()

Checks whether specified route count is strict.

public UMRouteOptions setStrictRouteCountEnabled (boolean value)

Sets whether specified route count is strict.

public UMRouteOptions setTransitWalkMaxDistance (int value)

Sets maximum allowed walk distance in meters.

public String toString ()

Class Details

The class contains Urban Mobility specific options for route calculation.

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

Constructor Details

UMRouteOptions ()

Public Constructor

UMRouteOptions (RouteOptions other)

Copy Constructor

Parameters:

  • other

UMRouteOptions (UMRouteOptions other)

Copy Constructor

Parameters:

  • other

Method Details

public boolean equals (Object obj)

Parameters:

  • obj

public int getTransitWalkMaxDistance ()

Gets maximum allowed walk distance in meters or -1 if not set.

Returns:

maximum allowed walk distance in meters, or -1 if not set

public int hashCode ()

public boolean isStrictRouteCountEnabled ()

Checks whether specified route count is strict. The default is false.

Returns:

true if strict otherwise false

public UMRouteOptions setStrictRouteCountEnabled (boolean value)

Sets whether specified route count is strict. If route count is strict then result contains specified number of routes or less; otherwise, the number of routes returned is not guaranteed. The default is false. NOTE: Do not enable strict route count if you plan to use subsequent route requests.

Parameters:

  • value

    true if strict otherwise false.

Returns:

The modified UMRouteOptions itself.

public UMRouteOptions setTransitWalkMaxDistance (int value)

Sets maximum allowed walk distance in meters. Allowed range is [0, 6000], or -1 to use default value. Using unsupported value will result error response in route calculation. The default is 2000.

Parameters:

  • value

    maximum allowed walk distance in meters

Returns:

The modified UMRouteOptions itself.

public String toString ()

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.