CartoType Android API 8.8-7-gb35e4dc71
for Java development on Android
|
Public Attributes | |
FeatureInfo | featureInfo = new FeatureInfo(FeatureType.UnknownRoute) |
String | name |
String | ref |
double | nearestPointX |
double | nearestPointY |
double | distance |
double | headingInDegrees |
double | headingVectorX |
double | headingVectorY |
int | sideOfRoad |
Information about the nearest road to a certain point. It is returned by Framework.getNearestRoad.
double com.cartotype.NearestRoadInfo.distance |
The distance from the chosen point to iNearestPoint in meters.
FeatureInfo com.cartotype.NearestRoadInfo.featureInfo = new FeatureInfo(FeatureType.UnknownRoute) |
The feature info, including feature type, max speed, whether it is one-way, etc.
double com.cartotype.NearestRoadInfo.headingInDegrees |
The heading of the nearest segment in degrees.
double com.cartotype.NearestRoadInfo.headingVectorX |
The x coordinate of the heading of the nearest segment as a unit vector.
double com.cartotype.NearestRoadInfo.headingVectorY |
The x coordinate of the heading of the nearest segment as a unit vector.
String com.cartotype.NearestRoadInfo.name |
The standard name of the road.
double com.cartotype.NearestRoadInfo.nearestPointX |
The x coordinate of the nearest point on the road, in map coordinates, to the chosen point.
double com.cartotype.NearestRoadInfo.nearestPointY |
The y coordinate of the nearest point on the road, in map coordinates, to the chosen point.
String com.cartotype.NearestRoadInfo.ref |
The road reference of the road.
int com.cartotype.NearestRoadInfo.sideOfRoad |
The side of the road on which the selected point lies, or LocationRef.SIDE_OF_ROAD_NONE (0) if the vehicle heading is not supplied. It is Left (2) if the heading vector is left of a vector from the chosen point to the nearest point on the road, otherwise Right (1). Another way to understand it is: if the road as seen by the driver of the vehicle is to the left, the side of the road is Right, and vice versa.