Class PhysicalAttributes

java.lang.Object
com.here.sdk.mapdata.PhysicalAttributes

public final class PhysicalAttributes extends Object

Physical attributes of the segment.

Note a road can have more than one attribute at the same time.

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behaviors. Related APIs may change for new releases without a deprecation process.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Indicates the presence of a road divider.
    boolean
    Identifies a generalised route of a boat ferry for passengers or vehicles over water.
    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 whether the navigable segment is paved.
    boolean
    Deprecated.
    Will be removed in v4.26.0.
    boolean
    Identifies separately digitised roads, i.e., roads that are digitised with one line per direction of traffic instead of one line per road.
    boolean
    Private identifies roads that are not maintained by an organization responsible for maintenance of public roads.
    boolean
    Identifies a generalised route of a ferry for passengers or vehicles via rail.
    boolean
    Indicates the presence of a roundabout.
    boolean
    Identifies an enclosed (on all sides) passageway through or under an obstruction.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new instance with default values.
  • 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.

    • 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.

    • isDividedRoad

      @Deprecated public boolean isDividedRoad
      Deprecated.

      Will be removed in v4.26.0. Please use divider instead for getting RoadDivider and isMultiplyDigitized for getting multiply digitized attribute.

      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.

    • isRoundabout

      public boolean isRoundabout

      Indicates the presence of a roundabout.

    • isMultiplyDigitized

      public boolean isMultiplyDigitized

      Identifies separately digitised roads, i.e., roads that are digitised with one line per direction of traffic instead of one line per road. It may be flagged on roads when certain physical features (e.g. a walkway, a tram, a bus lane) are located between the separately digitised opposing roadbeds if driver perception remains unchanged.

    • divider

      @Nullable public RoadDivider divider

      Indicates the presence of a road divider.

    • isBoatFerry

      public boolean isBoatFerry

      Identifies a generalised route of a boat ferry for passengers or vehicles over water.

    • isRailFerry

      public boolean isRailFerry

      Identifies a generalised route of a ferry for passengers or vehicles via rail. It is applied on a segment that represent a ferry route for vehicles over rail such as: a route for ferrying passengers over rail, if destination is not accessible by the road network or prohibits the use of automobiles.

  • Constructor Details

    • PhysicalAttributes

      public PhysicalAttributes()

      Creates a new instance with default values.

  • Method Details