#include <CartoTypeRouter.h>
Information about the nearest road to a point.
◆ distance
The distance from the chosen point to the nearest point in meters.
◆ featureInfo
The road type of the arc.
◆ headingInDegrees
- (double) headingInDegrees |
|
readwritenonatomicassign |
The heading of the nearest segment in degrees.
◆ headingVector
The heading of the nearest segment as a unit vector.
◆ maxSpeed
The maximum legal speed in kilometres per hour. A value of zero means there is no known speed limit, or the standard speed limit for the type of road applies.
◆ name
The standard name of the road.
◆ nearestPoint
The nearest point on the road, in map coordinates, to the chosen point.
◆ ref
The road reference of the road.
◆ sideOfRoad
- (CtSideOfRoad) sideOfRoad |
|
readwritenonatomicassign |
The side of the road on which the selected point lies, or SideOfRoadNone if the vehicle heading is not supplied. It is Left if the heading vector is left of a vector from the chosen point to the nearest point on the road, otherwise Right. 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: