HERE Android SDK Developer's Guide

LinkInformation

The class LinkInformation is a member of com.here.android.mpa.electronic_horizon .

Class Summary

public final class LinkInformation

extends java.lang.Object

Represents a link for electronic horizon.

[For complete information, see the section Class Details]

Nested Class Summary

Table 1. Nested Classes in LinkInformation
Nested Classes

public static final enumeration LinkInformation.AllowedDirection

Determines the allowed direction for the Link.

public static final enumeration LinkInformation.FormOfWay

Determines the form of the road for the Link

public static final enumeration LinkInformation.FunctionalRoadClass

Determines the priority of the road for the Link.

Constructor Summary

Table 2. Constructors in LinkInformation
Constructors

LinkInformation (boolean isBridge, boolean isDividedRoad, boolean isTunnel, boolean isUrban, boolean isPedestrianOpen, double speedLimitMetersPerSecond, double lengthMeters, AllowedDirection openForCars, AllowedDirection carThroughOpen, FunctionalRoadClass functionalRoadClass, FormOfWay formOfWay)

Constructor

Method Summary

Table 3. Methods in LinkInformation
Methods

public FormOfWay getFormOfWay ()

public FunctionalRoadClass getFunctionalRoadClass ()

public double getLengthMeters ()

public double getSpeedLimitMetersPerSecond ()

public boolean isBridge ()

public boolean isCarThroughOpen (AllowedDirection direction)

Checks whether the link is allowed to pass through with the cars on certain direction.

public boolean isDividedRoad ()

public boolean isOpenForCars (AllowedDirection direction)

Checks whether the link is allowed for the cars with certain direction.

public boolean isPedestrianOpen ()

public boolean isTunnel ()

public boolean isUrban ()

Class Details

Represents a link for electronic horizon.

Constructor Details

LinkInformation (boolean isBridge, boolean isDividedRoad, boolean isTunnel, boolean isUrban, boolean isPedestrianOpen, double speedLimitMetersPerSecond, double lengthMeters, AllowedDirection openForCars, AllowedDirection carThroughOpen, FunctionalRoadClass functionalRoadClass, FormOfWay formOfWay)

Constructor

Parameters:

  • isBridge
  • isDividedRoad
  • isTunnel
  • isUrban
  • isPedestrianOpen
  • speedLimitMetersPerSecond
  • lengthMeters
  • openForCars
  • carThroughOpen
  • functionalRoadClass
  • formOfWay

Method Details

public FormOfWay getFormOfWay ()

Returns:

The FormOfWay which determines the form of way for the link.

public FunctionalRoadClass getFunctionalRoadClass ()

Returns:

The FunctionalRoadClass which determines the priority of the road.

public double getLengthMeters ()

Returns:

The length of the link in meters.

public double getSpeedLimitMetersPerSecond ()

Returns:

The speed limitation for the current link in meters per seconds.

public boolean isBridge ()

Returns:

true if current link is bridge, false otherwise.

public boolean isCarThroughOpen (AllowedDirection direction)

Checks whether the link is allowed to pass through with the cars on certain direction.

Parameters:

  • direction

    The direction from which the link will be checked.

Returns:

true if link is allowed to pass with the cars, false otherwise.

public boolean isDividedRoad ()

Returns:

true if current link is divided road, false otherwise.

public boolean isOpenForCars (AllowedDirection direction)

Checks whether the link is allowed for the cars with certain direction.

Parameters:

  • direction

    The direction from which the link will be checked.

Returns:

true if link is allowed for cars, false otherwise.

public boolean isPedestrianOpen ()

Returns:

true if current link is allowed for the pedestrian, false otherwise.

public boolean isTunnel ()

Returns:

true if current link is tunnel, false otherwise.

public boolean isUrban ()

Returns:

true if current link is urban, false otherwise.