getPath method
Build a Path covering the route between start and end distances.
Creates a Path object representing the portion of the route between the two distances (in meters) measured
from the route start. Returns null if the requested interval cannot be represented.
Parameters
start: Start distance from route start in meters.end: End distance from route start in meters.
Returns
- A Path for the requested interval, or
nullif unavailable.
Implementation
Path? getPath(final int start, final int end) {
final OperationResult resultString = objectMethod(
pointerId,
'RouteBase',
'getPath',
args: <String, int>{'start': start, 'end': end},
);
if (resultString['result'] == -1) {
return null;
}
return Path.init(resultString['result']);
}