# latlong2

> Latitude and longitude calculations for Dart and Flutter: distance, offset and path smoothing

Source: https://talira.ai/catalog/latlong2-66bx8f6w
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [location / spatial analysis](https://talira.ai/categories/location/spatial-analysis), [languages / dart](https://talira.ai/categories/languages/dart)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Nico Mexis](https://talira.ai/orgs/nico-mexis.md)

latlong2 is a lightweight Dart library for common latitude and longitude calculations. It measures distances with the faster Haversine or the more accurate Vincenty algorithm, computes an offset point from a distance and bearing, prints coordinates in sexagesimal form, and smooths a path with the Catmull-Rom algorithm. It's a maintained fork of Michael Mitterer's dart-latlong, kept up to date with Dart language changes.

## Links

- GitHub: https://github.com/ThexXTURBOXx/dart-latlong

## Problems it solves

- calculate the distance between two GPS coordinates in Dart
- find a coordinate a set distance and bearing from another point in Flutter
- smooth a recorded GPS path in a Flutter app

## Features

- distance with the Haversine or Vincenty algorithm
- offset point from a distance and bearing
- sexagesimal coordinate output
- path smoothing with Catmull-Rom splines

## Trust

Overall: 0.38 out of 1.
Signals: maintenance 0.61, adoption 0.34, momentum 0.07, community 0.43, backing 0.30, extensibility 0.00.

- last commit 22 days ago
- 1 commits in the last 90 days
- 49 GitHub stars
- 11 contributors
- accepts sponsorship (Github)
- backed by Nico Mexis

## Sources

[^1]: https://github.com/ThexXTURBOXx/dart-latlong#readme (checked 28 Nov 2026)
[^2]: https://github.com/ThexXTURBOXx/dart-latlong/blob/master/LICENSE (checked 28 Nov 2026)
