Closed AlysonTrizotto closed 2 years ago
I will check and i will told you what is the problem
It's ok
Do you have any news about the problem?
you're putting the same starting point, If you want to get back to the start point just make roundTrip true and destination:DestinationGeoPointOption.any and change the last point to another point
Right, I had put this issue aside and focused on solving other things, when I decided to go back to work I found the problem lol... It worked
I'm getting the coordinates passed by 'manager.getTrip(...)' and collecting the return of the following parameter 'List result = decodePolyline(road.polylineEncoded.toString());' However, the return only gives me 3 coordinates. And my goal is to create a route with polylines, can you tell me why I'm trying to return the same coordinates?
//Here's an example of how I'm collecting the coordinates. ` Future routeHelper() async {
late List ponto = [];
double latPoint = 0.0;
double longPoint = 0.0;
}`
//Debugger output follows
I/flutter (31741): [LatLng(latitude:-25.51185, longitude:-49.16439), LatLng(latitude:-25.51185, longitude:-49.16439)] I/flutter (31741): WAYPOINTS I/flutter (31741): [-49.1645689,-25.5120383, -49.1645689,-25.5120383] I/flutter (31741): [[-25.51185, -49.16439], [-25.51185, -49.16439], [-25.51185, -49.16439]] I/flutter (31741): [-25.51185, -49.16439] I/chatty (31741): uid=10289(alysontrizotto.github.io.localiza_favoritos) 1.ui identical 1 line I/flutter (31741): [-25.51185, -49.16439] I/flutter (31741): points I/flutter (31741): [LatLng(latitude:-25.51185, longitude:-49.16439), LatLng(latitude:-25.51185, longitude:-49.16439), LatLng(latitude:-25.51185, longitude:-49.16439)]