DEV Community

Devhan Hansaja
Devhan Hansaja

Posted on

Google maps polyline issue in flutter

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,
);
in this code part, it shows errors under the words getRouteBetweenCoordinates, travelMode and GOOGLE_MAPS_API_KEY. If someone can help me wwith this, would be grateful

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →