diff options
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!)); |
