RoadInfo class is providing information about road type. More...
Classes | |
class | RoadClass |
Enum of the road class as it is used for computing. More... | |
Public Member Functions | |
RoadInfo () | |
Class constructor. More... | |
RoadInfo (int roadOffset, int roadFlags, String isoCode) | |
RoadInfo (int roadOffset, int roadFlags, String isoCode, String openLRString) | |
String | getIsoCode () |
Iso code string of the map, where the road is located. More... | |
int | getRoadOffset () |
String | getOpenLRString () |
boolean | isFerry () |
boolean | isProhibited () |
True if the road is prohibited to drive on. More... | |
int | roadClass () |
Returns the road class. More... | |
byte | speedCategory () |
Returns the speed category of the road. More... | |
boolean | isTollRoad () |
True if it is a toll road. More... | |
boolean | isPaved () |
True if the road is paved. More... | |
boolean | isCongestionCharge () |
True if it is a road with congestion charge. More... | |
boolean | isUrban () |
True if the road is in urban area. More... | |
boolean | isTunnel () |
True if the road is tunnel. More... | |
int | speedRestriction () |
Returns the speed restriction for that road. More... | |
String | toString () |
Static Public Member Functions | |
static Bundle | writeBundle (RoadInfo info) |
static RoadInfo | readBundle (Bundle b) |
RoadInfo class is providing information about road type.
This is retrieved from the ApiLocation#getLocationRoadInfo(Position, int) function.
RoadInfo | ( | ) |
Class constructor.
Referenced by RoadInfo.readBundle().
RoadInfo | ( | int | roadOffset, |
int | roadFlags, | ||
String | isoCode | ||
) |
RoadInfo | ( | int | roadOffset, |
int | roadFlags, | ||
String | isoCode, | ||
String | openLRString | ||
) |
String getIsoCode | ( | ) |
Iso code string of the map, where the road is located.
Referenced by RoadInfo.writeBundle().
String getOpenLRString | ( | ) |
Referenced by RoadInfo.writeBundle().
int getRoadOffset | ( | ) |
Referenced by RoadInfo.writeBundle().
boolean isCongestionCharge | ( | ) |
boolean isFerry | ( | ) |
boolean isPaved | ( | ) |
True if the road is paved.
boolean isProhibited | ( | ) |
True if the road is prohibited to drive on.
boolean isTollRoad | ( | ) |
True if it is a toll road.
References RoadInfo.isCongestionCharge(), RoadInfo.RoadClass.RC1, and RoadInfo.roadClass().
boolean isTunnel | ( | ) |
True if the road is tunnel.
boolean isUrban | ( | ) |
True if the road is in urban area.
|
static |
References RoadInfo.RoadInfo().
Referenced by ApiLocation.getLocationRoadInfo().
int roadClass | ( | ) |
byte speedCategory | ( | ) |
Returns the speed category of the road.
int speedRestriction | ( | ) |
Returns the speed restriction for that road.
String toString | ( | ) |
|
static |
References RoadInfo.getIsoCode(), RoadInfo.getOpenLRString(), and RoadInfo.getRoadOffset().