CartoType Android API 8.8-7-gb35e4dc71
for Java development on Android
Public Attributes | List of all members
com.cartotype.NearestRoadInfo Class Reference

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
 

Detailed Description

Information about the nearest road to a certain point. It is returned by Framework.getNearestRoad.

Member Data Documentation

◆ distance

double com.cartotype.NearestRoadInfo.distance

The distance from the chosen point to iNearestPoint in meters.

◆ featureInfo

FeatureInfo com.cartotype.NearestRoadInfo.featureInfo = new FeatureInfo(FeatureType.UnknownRoute)

The feature info, including feature type, max speed, whether it is one-way, etc.

◆ headingInDegrees

double com.cartotype.NearestRoadInfo.headingInDegrees

The heading of the nearest segment in degrees.

◆ headingVectorX

double com.cartotype.NearestRoadInfo.headingVectorX

The x coordinate of the heading of the nearest segment as a unit vector.

◆ headingVectorY

double com.cartotype.NearestRoadInfo.headingVectorY

The x coordinate of the heading of the nearest segment as a unit vector.

◆ name

String com.cartotype.NearestRoadInfo.name

The standard name of the road.

◆ nearestPointX

double com.cartotype.NearestRoadInfo.nearestPointX

The x coordinate of the nearest point on the road, in map coordinates, to the chosen point.

◆ nearestPointY

double com.cartotype.NearestRoadInfo.nearestPointY

The y coordinate of the nearest point on the road, in map coordinates, to the chosen point.

◆ ref

String com.cartotype.NearestRoadInfo.ref

The road reference of the road.

◆ sideOfRoad

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.


The documentation for this class was generated from the following file: