update for travelmode change bug fixes
This commit is contained in:
@ -67,8 +67,12 @@ class DestinationService{
|
||||
|
||||
static Future<List<PointLatLng>>? getDestinationLine(List<Destination> destinations) async{
|
||||
PolylinePoints polylinePoints = PolylinePoints();
|
||||
|
||||
if(destinations.length <= 0){
|
||||
return [];
|
||||
}
|
||||
|
||||
print("##### @@@@@ ${destinations[0].lat}");
|
||||
//print("##### @@@@@ ${destinations[0].lat}");
|
||||
PointLatLng origin = PointLatLng(destinations[0].lat!, destinations[0].lon!);
|
||||
PointLatLng dest = PointLatLng(destinations[destinations.length -1].lat!, destinations[destinations.length -1].lon!);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user