PolylinePoints polylinePoints = PolylinePoints();
PolylineResult result = await polylinePoints.getRouteBetweenCoordinates( GOOGLE_MAPS_API_KEY, PointLatLng(_pGooglePlex.latitude, _pGooglePlex.longitude), PointLatLng(_pApplePark.latitude, _pApplePark.longitude), travelMode: TravelMode.driving, );
when run it appears errors with the words, getRouteBetweenCoordinates, travelMode and GOOGLE_MAPS_API_KEY
I’m sure I have coded correctly and attached the location package correctly and google api correctly. if someone can help with this, would be grateful
New contributor
Devhan Hansaja is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1