location_distance_calculator

Last updated:

0 purchases

location_distance_calculator Image
location_distance_calculator Images
Add to Cart

Description:

location distance calculator

location_distance_calculator #
A Flutter package which provides the distance between two locations

See the example folder

Installation #

Add this to your package's pubspec.yaml file:

dependencies:
location_distance_calculator:
copied to clipboard

You can install packages from the command line:
with Flutter:

$ flutter packages get
copied to clipboard

Import it now in your Dart code:

import 'package:location_distance_calculator/location_distance_calculator.dart';
copied to clipboard
Usage #

Code

double distance;
// Platform messages may fail, so we use a try/catch PlatformException.
try {
distance = await LocationDistanceCalculator().distanceBetween(48.8438543, -3.5232399, 48.8589507, 2.2770204);
} on PlatformException {
distance = -1.0;
}
copied to clipboard

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.