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, int onroadPosX, int onroadPosY, int offroadDistance) | |
String | getIsoCode () |
Position | getOnroadPos () |
int | getOffroadDistance () |
int | getRoadOffset () |
boolean | isFerry () |
boolean | isProhibited () |
int | roadClass () |
byte | speedCategory () |
boolean | isTollRoad () |
boolean | isPaved () |
boolean | isCongestionCharge () |
boolean | isUrban () |
boolean | isTunnel () |
int | speedRestriction () |
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, | ||
int | onroadPosX, | ||
int | onroadPosY, | ||
int | offroadDistance | ||
) |
References Position.setPosition().
String getIsoCode | ( | ) |
Referenced by RoadInfo.writeBundle().
int getOffroadDistance | ( | ) |
Referenced by RoadInfo.writeBundle().
Position getOnroadPos | ( | ) |
Referenced by RoadInfo.writeBundle().
int getRoadOffset | ( | ) |
Referenced by RoadInfo.writeBundle().
boolean isCongestionCharge | ( | ) |
Referenced by RoadInfo.isTollRoad().
boolean isFerry | ( | ) |
boolean isPaved | ( | ) |
boolean isProhibited | ( | ) |
boolean isTollRoad | ( | ) |
References RoadInfo.isCongestionCharge(), RoadInfo.RoadClass.RC1, and RoadInfo.roadClass().
boolean isTunnel | ( | ) |
boolean isUrban | ( | ) |
|
static |
References RoadInfo.RoadInfo().
Referenced by ApiLocation.getLocationRoadInfo().
int roadClass | ( | ) |
Referenced by RoadInfo.isTollRoad().
byte speedCategory | ( | ) |
int speedRestriction | ( | ) |
String toString | ( | ) |
References Position.getX(), and Position.getY().
|
static |