geo_sort 0.2.0
geo_sort: ^0.2.0 copied to clipboard
A Dart package for sorting a list of geographic locations based on their distance from a reference location.
0.2.0 #
- Added
latlong2as dependency, replacing the internal Haversine implementation. - Added
GeoDistanceAlgorithmenum to choose the distance formula per call. - Added support for Vincenty algorithm (accurate to ~0.5 mm on WGS-84 ellipsoid) via
GeoDistanceAlgorithm.vincenty. - Haversine remains the default (
GeoDistanceAlgorithm.haversine), powered bylatlong2.
- Updated minimum Flutter version to
>=3.27.0. - Updated
flutter_lintsto^6.0.0. - Updated
cupertino_iconsto^1.0.8in example. - Updated README with algorithm selection docs and parameter table.
- Removed internal
utils.dartand custom Haversine formula (replaced bylatlong2). - Removed
GeoSort.getDoublePropertyValue—sortByLatLongnow accessesHasLocationproperties directly.
- Fixed deprecated
ThemeData.primarySwatchin example (now usesColorScheme.fromSeed). - Fixed potential
FormatExceptioncrash in example when coordinate fields contain invalid input (double.tryParsewith fallback).
0.1.0 #
- Added support for sorting locations by distance from a reference location.
- Added
GeoSortutility class. - Added
sortByLatLongmethod toGeoSortclass. - Added
TestLocationclass implementingHasLocationinterface for testing purposes. - Added tests for
GeoSortclass.
-
Updated documentation to include instructions on how to use the
GeoSortutility class. -
Updated documentation with explanations of parameters and usage examples.
-
Updated
GeoSort.sortByLatLongmethod to accept generic type that extendsHasLocation. -
Fixed a bug in the calculation of distances in
GeoSort.sortByLatLongmethod.
0.0.3 #
- Add Example files.
0.0.2 #
- First Release.
0.0.1 #
- TODO: Describe initial release.