flutter_google_map_polyline_point

Last updated:

0 purchases

flutter_google_map_polyline_point Image
flutter_google_map_polyline_point Images
Add to Cart

Description:

flutter google map polyline point

flutter_googleMap_polyline_point #
A flutter plugin that decodes encoded google polyline string into list of geo-coordinates suitable for showing route/polyline on maps
This package is extension of flutter_polyline_points .






Getting Started #
This package contains functions to decode google encoded polyline string which returns a list of co-ordinates
indicating route between two geographical position
Usage #
To use this package, add flutter_googleMap_polyline_point as a dependency in your pubspec.yaml file.
Import the package #
import 'package:flutter_polyline_point/flutter_polyline_point.dart';
copied to clipboard
First method #
Get the list of points by Geo-coordinate, this return an instance of PolylineResult, which
contains the status of the api, the errorMessage, and the list of decoded points.
PolylinePoints polylinePoints = PolylinePoints();
PolylineResult result = await polylinePoints.getRouteBetweenCoordinates(googleAPiKey,
_originLatitude, _originLongitude, _destLatitude, _destLongitude);
print(result.points);
copied to clipboard
Second method #
Decode an encoded google polyline string e.g _p~iF~ps|U_ulLnnqC_mqNvxq`@
List<PointLatLng> result = polylinePoints.decodePolyline("_p~iF~ps|U_ulLnnqC_mqNvxq`@");
print(result);
copied to clipboard
See the example directory for a complete sample app
Hint #
kindly ensure you use a valid google api key,
If you need help generating api key for your project click this link

License:

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

Files In This Product:

Customer Reviews

There are no reviews.