google_polyline_points 0.0.3 copy "google_polyline_points: ^0.0.3" to clipboard
google_polyline_points: ^0.0.3 copied to clipboard

A new Flutter package to get 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';

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';
0
likes
150
pub points
57%
popularity

Publisher

unverified uploader

A new Flutter package to get polyline points.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, http

More

Packages that depend on google_polyline_points