google_polyline_points

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

google polyline points

A flutter package that decodes geo-coordinates into google polyline for showing route on maps.
Features #

Get route between two locations.

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 google_polyline_points as a dependency in your pubspec.yaml file
Import the package #
import 'package:google_polyline_points/google_polyline_points.dart';
copied to clipboard
First Method #
Get the list of points from geo-coordinates, 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);import 'package:google_polyline_points/google_polyline_points.dart';
copied to clipboard

License

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

Files:

Customer Reviews

There are no reviews.