utils/geo_utils library

Constants

mPerDegLat → const double

Functions

calculateCentroid(Map<String, dynamic> geometry) LatLng
Calculates a basic centroid for a polygon (average of all vertices).
lngLatToLocalMeter(double lng, double lat, LatLng center) Map<String, double>
Converts lng, lat geographic coordinates into local meters (x, y) relative to a center.
localMeterToLngLat(double x, double y, LatLng center) LatLng
Converts local meters (x, y) relative to a geographic center into lng, lat.