determineNumPoints method

int determineNumPoints(
  1. double distance
)

Property that defines the tour determineNumPoints according to its current properties. Returns the number of points to interpolate between two given points.

Implementation

int determineNumPoints(double distance) {
 print('distance:');
 if (distance > 10000000) {
   return 10;
 } else if (distance > 5000000) {
   return 5;
 } else {
   return 2;
 }
  }