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

Public Attributes

int segmentIndex
 
int lineIndex
 
double nearestPointX
 
double nearestPointY
 
double distanceToRoute
 
double distanceAlongRoute
 
double distanceAlongSegment
 
double timeAlongRoute
 
double timeAlongSegment
 
double heading
 

Detailed Description

Information about the nearest route segment to a point.

Member Data Documentation

◆ distanceAlongRoute

double com.cartotype.NearestSegmentInfo.distanceAlongRoute

The distance of the nearest point along the route in meters.

◆ distanceAlongSegment

double com.cartotype.NearestSegmentInfo.distanceAlongSegment

The distance within the current segment in meters.

◆ distanceToRoute

double com.cartotype.NearestSegmentInfo.distanceToRoute

The distance from the other point to iNearestPoint in meters.

◆ heading

double com.cartotype.NearestSegmentInfo.heading

The heading of the nearest line as a map angle taken anti-clockwise from rightwards.

◆ lineIndex

int com.cartotype.NearestSegmentInfo.lineIndex

The index of the line within the segment's path: line N goes from point N to point N + 1.

◆ nearestPointX

double com.cartotype.NearestSegmentInfo.nearestPointX

The X coordinate of the point in the segment's path nearest to the other point, in map coordinates.

◆ nearestPointY

double com.cartotype.NearestSegmentInfo.nearestPointY

The Y coordinate of the point in the segment's path nearest to the other point, in map coordinates.

◆ segmentIndex

int com.cartotype.NearestSegmentInfo.segmentIndex

The index of the segment in the Route object, or -1 if there were no segments.

◆ timeAlongRoute

double com.cartotype.NearestSegmentInfo.timeAlongRoute

The estimated time of the nearest point, along the route, in seconds.

◆ timeAlongSegment

double com.cartotype.NearestSegmentInfo.timeAlongSegment

The estimated time within the current segment, in seconds.


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