Closed ismetatakli closed 3 years ago
Change
List
in network_util to this and it will work.
List
wayPoints.forEach((point) => wayPointsArray.add(point.location)).ToList();
received this same issue when adding the waypoints.
` code
PolylineResult result = await polylinePoints.getRouteBetweenCoordinates(
googleAPIKey,
PointLatLng(31.4805, 74.3239),
PointLatLng(31.4697, 74.2728),
travelMode: TravelMode.driving,
wayPoints: [PolylineWayPoint(location: "Sabo, Yaba Lagos Nigeria")]
);`
yes when i update this above line that you have provided this error goes out but now it added the waypoints in the API as
BUT it should pass it as &waypoints=via:faisalabad even i pass the bool value as false
wayPoints: [PolylineWayPoint(location: "faisalabad", stopOver: false)],
I had the same error and I fixed with @kawaldeep2507 solution, thanks man!
The next release in couple of hours will resolve this
when i try to add waypoints i get an error.
_TypeError (type 'MappedListIterable<PolylineWayPoint, String>' is not a subtype of type 'List<String>')
Can you show me an example of adding coordinates at waypoints. the examples you have given do not work correctly