diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-11-08 19:56:21 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-11-08 19:56:21 +0100 |
| commit | 8c4abd2b2705589fe668be52614979a12ff04869 (patch) | |
| tree | 384d17ea2659cf03d01b1503f485286981d9eb56 /lib/RoutingExample.dart | |
| parent | eed27fa5568e507c255a524185356786c877b2b8 (diff) | |
work
Diffstat (limited to 'lib/RoutingExample.dart')
| -rw-r--r-- | lib/RoutingExample.dart | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/RoutingExample.dart b/lib/RoutingExample.dart index 00e0e9d..10332ee 100644 --- a/lib/RoutingExample.dart +++ b/lib/RoutingExample.dart @@ -210,6 +210,13 @@ class RoutingExample { bool isFirst = true; for (final item in route.tasks!) { + debugPrint(item.deliverySequenceNumber.toString()); + + if (item.addressLatitude == null || item.addressLongitude == null) { + // Skip adressen die fout zijn ingegeven. + continue; + } + var destinationGeoCoordinates = GeoCoordinates( double.parse(item.addressLatitude!), double.parse(item.addressLongitude!)); |
