Class RoadAttributes

java.lang.Object
com.here.sdk.navigation.RoadAttributes

public final class RoadAttributes extends Object

Road attributes, including usage and physical characteristics. Note that a road can have more than one attribute at the same time.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    boolean
    Identifies a structure that allows a road, railway, or walkway to pass over another road, railway, waterway, or valley serving map display and route guidance functionalities.
    boolean
    Indicates if the navigable segment is a built up area.
    boolean
    Controlled access roads are roads with limited entrances and exits that allow uninterrupted high-speed traffic flow.
    boolean
    Indicates whether the navigable segment is paved.
    boolean
    Indicates if there is a physical structure or painted road marking intended to legally prohibit left turns in right-side driving countries, right turns in left-side driving countries, and U-turns at divided intersections or in the middle of divided segments.
    boolean
    Identifies a no through road.
    boolean
    Private identifies roads that are not maintained by an organization responsible for maintenance of public roads.
    boolean
    Range is a ramp: connects roads that do not intersect at grade.
    boolean
    Indicates if vehicles have to drive on the right-hand side of the road or the left-hand side.
    boolean
    Indicates the presence of a roundabout.
    boolean
    Identifies a road for which a fee must be paid to use the road.
    boolean
    Identifies an enclosed (on all sides) passageway through or under an obstruction.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • isDirtRoad

      public boolean isDirtRoad

      Indicates whether the navigable segment is paved. Paved is primarily used for map display and routing by assigning higher penalties to unpaved roads. Paved roads are made of concrete, asphalt, cobblestone or brick. Unpaved roads do not have a solid surface, e.g. are made of gravel, dirt or grass.

    • isTunnel

      public boolean isTunnel

      Identifies an enclosed (on all sides) passageway through or under an obstruction. This attribute can be used for display or route guidance.

    • isBridge

      public boolean isBridge

      Identifies a structure that allows a road, railway, or walkway to pass over another road, railway, waterway, or valley serving map display and route guidance functionalities. Bridge is published on segments that represent significant bridges and/or overpasses; elevated roads are not published as bridge.

    • isRamp

      public boolean isRamp

      Range is a ramp: connects roads that do not intersect at grade. Ramp allows explication of maneuvers involving ramps (e.g., “Take the ramp”) and for route guidance when determining if sign text should be used.

    • isControlledAccess

      public boolean isControlledAccess

      Controlled access roads are roads with limited entrances and exits that allow uninterrupted high-speed traffic flow. For example, the Interstate/Freeway network in the United States or the Motorway network in Europe. Controlled Access can be used for map display, avoidance of freeway/motorway, publishing speed limits, and route guidance timing.

    • isPrivate

      public boolean isPrivate

      Private identifies roads that are not maintained by an organization responsible for maintenance of public roads. Allows for unique cartographic representation of roads that restrict public use. May be used to avoid routing through a private road.

    • isNoThrough

      public boolean isNoThrough

      Identifies a no through road. This can also be a part of the route you can only enter or leave if it’s a waypoint.

    • isTollway

      public boolean isTollway

      Identifies a road for which a fee must be paid to use the road. Tollway may be used for map display (e.g., different rendering of toll roads) and routing. Tollway is flagged on roads that require a fee for traversal.

    • isDividedRoad

      public boolean isDividedRoad

      Indicates if there is a physical structure or painted road marking intended to legally prohibit left turns in right-side driving countries, right turns in left-side driving countries, and U-turns at divided intersections or in the middle of divided segments.

    • isRightDrivingSide

      public boolean isRightDrivingSide

      Indicates if vehicles have to drive on the right-hand side of the road or the left-hand side. For example, in New York it is always true and in London always false as the United Kingdom is a left-hand driving country.

    • isRoundabout

      public boolean isRoundabout

      Indicates the presence of a roundabout.

    • isBuiltUpArea

      public boolean isBuiltUpArea

      Indicates if the navigable segment is a built up area.

  • Constructor Details

    • RoadAttributes

      public RoadAttributes()

      Creates a new instance.

  • Method Details