pilot.MapMatch

Class

MapMatch describes the current position in terms of the Road Map, when possible.

Fields

long time

POSIX timestamp in [usec].

bool is_valid

If a match was found or not.

float distance

Shortest distance from platform center to matched node or segment in [meters].

MapNode *node

The matched pilot.MapNode if near a node.

RoadSegment *segment

The matched pilot.RoadSegment if on a segment, which is normally the case.

vector<MapArea *> areas

Areas the platform is inside of.