flutter_latlong

Last updated:

0 purchases

flutter_latlong Image
flutter_latlong Images
Add to Cart

Description:

flutter latlong

Flutter LatLong #
A Flutter package for getting location and location distance and more using latitude and longitude.

Installation #
flutter pub add flutter_latlong
or
dependencies:
flutter_latlong: ^1.0.3
copied to clipboard
Usage #
Distance #

import 'package:flutter_latlong/flutter_latlong.dart';
final Distance distance = new Distance();

final num? km = distance.as(LengthUnit.Kilometer, LatLng(24.012856, 89.259056), LatLng(23.810331, 90.412521));

final num? meter = distance(
LatLng(24.012856, 89.259056),
LatLng(23.810331, 90.412521)
);

copied to clipboard
Path #
import 'package:flutter_latlong/flutter_latlong.dart';
// zigzag is a list of coordinates
final Path path = new Path.from(zigzag);

// Result is below
final Path steps = path.equalize(8,smoothPath: true);
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.