GeoUtils class

Pure-Dart geospatial utility functions.

Contains algorithms that were previously duplicated in native Kotlin and Swift code. By living in shared Dart, they automatically work on every platform — Android, iOS, web, macOS, Linux, Windows.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

haversine(double lat1, double lon1, double lat2, double lon2) double
Haversine distance between two lat/lng points, in meters.
isPointInPolygon({required double lat, required double lng, required List<List<double>> vertices}) bool
Ray-casting point-in-polygon algorithm.