getClosestSegment method
- Coordinates coord
inherited
Get index of the closest route segment to the given coordinates.
Parameters
- IN coord The geographic coordinates to check against the route segments
Returns
- GemError.general.code (-1) on error and the index of the closest route segment to the given coordinates otherwise.
Throws
- An exception if it fails.
Implementation
int getClosestSegment(final Coordinates coord) {
final OperationResult resultString = objectMethod(
_pointerId,
'RouteBase',
'getClosestSegment',
args: coord,
);
return resultString['result'];
}