google_map_polyline_new

Last updated:

0 purchases

google_map_polyline_new Image
google_map_polyline_new Images
Add to Cart

Description:

google map polyline new

Gives polyline coordinates to set polylines in Google Map.

google_map_polyline_new #
Flutter plugin to retrieve coordinates (in latitude and longitude) to draw the polylines (Route) in google_maps_flutter package.
This package made with the inspiration of flutter_polyline_points.
This package is a continuation of the discontinued google_map_polyline
Getting Started #
To use this plugin, add google_map_polyline as a dependency in your pubspec.yaml file.
Example #

First you need to create object using your Google Maps API key.



Get an API key at https://cloud.google.com/maps-platform/.
(This plugin only requires Directions API.)
GoogleMapPolyline googleMapPolyline =
new GoogleMapPolyline(apiKey: "YOUR KEY HERE");
copied to clipboard



Now you may able retrieve coordinates for the Polyline route.



Get the Polyline coordinates using location coordinates (latitude and longitude)
await googleMapPolyline.getCoordinatesWithLocation(
origin: LatLng(40.677939, -73.941755),
destination: LatLng(40.698432, -73.924038),
mode: RouteMode.driving);
copied to clipboard


Get the Polyline coordinates using address of the location
await googleMapPolyline.getPolylineCoordinatesWithAddress(
origin: '55 Kingston Ave, Brooklyn, NY 11213, USA',
destination: '8007 Cypress Ave, Glendale, NY 11385, USA',
mode: RouteMode.driving);
copied to clipboard


Overview #

✅ Coordinates with Location Coordinates (Latitude and Longitude)
✅ Coordinates with Location Address
✅ Route Modes
- [x] Driving
- [x] Walking
- [x] Bicycling
❌ Coordinates with Location Coordinates and Address (example: Origin as address and Destination as coordinates)
❌ Alternative routes

Feature Requests and Issues #
Please file feature requests and bugs at the issue tracker.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.