latlong2 0.10.0 copy "latlong2: ^0.10.0" to clipboard
latlong2: ^0.10.0 copied to clipboard

Lightweight library for common latitude and longitude calculation

0.10.0 #

  • Improved LatLng.hashCode to use XOR (^) instead of addition, reducing collisions.
  • Safer LatLng.fromJson parsing: coordinates are now cast via num before converting to double.
  • Documentation cleanup: removed new keyword from all examples, updated return types.
  • Add LatLng.isValid getter for explicit bounds checking (latitude ∈ [-90, 90], longitude ∈ [-180, 180]).
  • Fix Range tests to reflect that latitude/longitude boundary assertions were removed in 0.9.1.

0.9.1 #

  • Remove debug assertions on latitude and longitude boundaries.

0.9.0 #

  • Change to const constructor for LatLng.
  • remove setLatitude() and setLongitude().
  • Bump minimum dart version to 3.0.

0.8.2 #

  • Sexagesimal fixes and utils
  • Upgrade dependencies

0.8.1 #

  • Add GeoJSON compliant toJson() and fromJson().

0.8.0 #

  • Use pedantic.
  • camelCase constants.
  • Add example.
  • Other lint fixes.

0.7.0 #

For previous releases, see https://pub.dev/packages/latlong/changelog.

394
likes
130
points
561k
downloads

Documentation

API reference

Publisher

verified publisherfemtopedia.de

Weekly Downloads

Lightweight library for common latitude and longitude calculation

License

unknown (license)

Dependencies

intl

More

Packages that depend on latlong2