public class RoadElement
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RoadElement.Attribute
Defined values for different road attributes
|
static class |
RoadElement.FormOfWay
Form of Way Types
|
static class |
RoadElement.PluralType
Plural type identifies when a Junction is made up of multiple Road Elements.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.EnumSet<RoadElement.Attribute> |
getAttributes()
Gets the road attributes.
|
int |
getAverageSpeed()
Gets the average speed of the road element.
|
RoadElement.FormOfWay |
getFormOfWay()
Gets the form of way.
|
java.util.List<GeoCoordinate> |
getGeometry() |
double |
getGeometryLength()
Returns the length of the polyline associated with this RoadElement in meters.
|
int |
getNumberOfLanes()
Gets number of lanes in this road element.
|
RoadElement.PluralType |
getPluralType()
Gets the plural type of the road element.
|
java.lang.String |
getRoadName()
Gets the name of the road element.
|
java.lang.String |
getRouteName()
Gets the route name of the road element.
|
float |
getSpeedLimit()
Gets the speed limit.
|
java.util.Date |
getStartTime()
Gets the (estimated) time at which this road element starts.
|
int |
hashCode() |
boolean |
isPedestrian()
Checks, if the road is allowed only for pedestrians.
|
boolean |
isPlural()
Tests if the road element is plural.
|
public java.util.List<GeoCoordinate> getGeometry()
public java.util.EnumSet<RoadElement.Attribute> getAttributes()
RoadElement.Attribute
public RoadElement.FormOfWay getFormOfWay()
RoadElement.FormOfWay
public boolean isPlural()
public RoadElement.PluralType getPluralType()
RoadElement.PluralType
public java.lang.String getRoadName()
public java.lang.String getRouteName()
public float getSpeedLimit()
public int getAverageSpeed()
public int getNumberOfLanes()
public boolean isPedestrian()
public java.util.Date getStartTime()
RouteOptions
associated with this road element, than
the time is relative to the system time when the route calculation took place. Otherwise, the
times are relative to the specified departure time.null
if not availableRouteOptions.setTime(Date, TimeType)
public double getGeometryLength()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object