summaryrefslogtreecommitdiff
path: root/lib/RoutingExample.dart
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@amftech.nl>2022-11-08 19:56:21 +0100
committerAldrik Ramaekers <aldrik@amftech.nl>2022-11-08 19:56:21 +0100
commit8c4abd2b2705589fe668be52614979a12ff04869 (patch)
tree384d17ea2659cf03d01b1503f485286981d9eb56 /lib/RoutingExample.dart
parenteed27fa5568e507c255a524185356786c877b2b8 (diff)
work
Diffstat (limited to 'lib/RoutingExample.dart')
-rw-r--r--lib/RoutingExample.dart7
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!));