From 8c4abd2b2705589fe668be52614979a12ff04869 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Tue, 8 Nov 2022 19:56:21 +0100 Subject: work --- lib/RoutingExample.dart | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/RoutingExample.dart') 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!)); -- cgit v1.2.3-70-g09d2