HERE Android SDK Developer's Guide

StreetLevelRoute

The class StreetLevelRoute is a member of com.here.android.mpa.streetlevel .

Class Summary

public final class StreetLevelRoute

extends com.here.android.mpa.streetlevel.StreetLevelObject, com.here.android.mpa.common.ViewObject, java.lang.Object

Represents a route displayed within a StreetLevelFragment

[For complete information, see the section Class Details]

See also:

StreetLevelFragment

Constructor Summary

Table 1. Constructors in StreetLevelRoute
Constructors

StreetLevelRoute ()

StreetLevelRoute (Route route)

Method Summary

Table 2. Methods in StreetLevelRoute
Methods

public int getColor ()

Gets the current ARGB (Alpha/Red/Green/Blue) integer color value used to display the route.

public Route getRoute ()

Gets the Route that has been displayed on the StreetLevel.

public StreetLevelRoute setColor (int argbColor)

Sets a color for displaying the route, using an ARGB (Alpha/Red/Green/Blue) integer color value.

public StreetLevelRoute setRoute (Route route)

Sets a Route that will be displayed on the StreetLevel.

Class Details

Represents a route displayed within a StreetLevelFragment

See also:

StreetLevelFragment

Constructor Details

StreetLevelRoute ()

StreetLevelRoute (Route route)

Parameters:

  • route

Method Details

public int getColor ()

Gets the current ARGB (Alpha/Red/Green/Blue) integer color value used to display the route.

Returns:

The current ARGB integer color value. The packed integer is made up of 4 bytes: alpha, red, green, blue. Each color component has a value range from [0..255] with 0 meaning no contribution for that component, and 255 meaning 100% contribution

See also:

android.graphics.Color

public Route getRoute ()

Gets the Route that has been displayed on the StreetLevel.

Returns:

The Route

public StreetLevelRoute setColor (int argbColor)

Sets a color for displaying the route, using an ARGB (Alpha/Red/Green/Blue) integer color value.

Parameters:

  • argbColor

    The ARGB integer color value. The packed integer is made up of 4 bytes: alpha, red, green, blue. Each color component has a value range from [0..255] with 0 meaning no contribution for that component, and 255 meaning 100% contribution

See also:

android.graphics.Color

public StreetLevelRoute setRoute (Route route)

Sets a Route that will be displayed on the StreetLevel. NOTE: Truck routes and public transport timetable routes are unsupported. A java.lang.IllegalArgumentException will be thrown.

Parameters:

  • route

    A Route representing the route to be displayed on the StreetLevel

Throws:

  • IllegalArgumentException

    if route is a truck or public transport timetable route.

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.