getElevationSamplesByCount method
- int countSamples
Sample elevation values for the entire route using countSamples.
Parameters
countSamples: Number of samples to collect across the whole route.
Returns
- Tuple
(List<double>, double)representing the list of samples and the sample resolution.
Implementation
(List<double>, double) getElevationSamplesByCount(final int countSamples) {
final OperationResult resultString = objectMethod(
pointerId,
'RouteTerrainProfile',
'getElevationSamples',
args: countSamples,
);
final List<dynamic> listDynamic = resultString['result']['floatlist'];
final List<double> listFloat = listDynamic.cast<double>();
final double sample = resultString['result']['sample'];
return (listFloat, sample);
}