PhysicalAttributes (API Reference)
Class PhysicalAttributes
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
FieldsModifier and TypeFieldDescriptionIndicates the presence of a road divider.booleanIdentifies a generalised route of a boat ferry for passengers or vehicles over water.booleanIdentifies 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.booleanIndicates whether the navigable segment is paved.booleanDeprecated.Will be removed in v4.26.0.booleanIdentifies separately digitised roads, i.e., roads that are digitised with one line per direction of traffic instead of one line per road.booleanPrivate identifies roads that are not maintained by an organization responsible for maintenance of public roads.booleanIdentifies a generalised route of a ferry for passengers or vehicles via rail.booleanIndicates the presence of a roundabout.booleanIdentifies an enclosed (on all sides) passageway through or under an obstruction. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
isDirtRoad
public boolean isDirtRoadIndicates 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 isTunnelIdentifies an enclosed (on all sides) passageway through or under an obstruction. This attribute can be used for display or route guidance.
-
isBridge
public boolean isBridgeIdentifies 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 isPrivatePrivate 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.Will be removed in v4.26.0. Please use
dividerinstead for gettingRoadDividerandisMultiplyDigitizedfor 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 isRoundaboutIndicates the presence of a roundabout.
-
isMultiplyDigitized
public boolean isMultiplyDigitizedIdentifies 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
Indicates the presence of a road divider.
-
isBoatFerry
public boolean isBoatFerryIdentifies a generalised route of a boat ferry for passengers or vehicles over water.
-
isRailFerry
public boolean isRailFerryIdentifies 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