waaseyaa / geo
Geospatial utilities for Waaseyaa: distance calculations, coordinate helpers
v0.1.0-alpha.249
2026-06-25 00:50 UTC
Requires
- php: >=8.5
- waaseyaa/foundation: ^0.1.0-alpha.249
Requires (Dev)
- phpunit/phpunit: ^10.5
This package is auto-updated.
Last update: 2026-06-25 00:57:08 UTC
README
Layer 0 — Foundation
Geospatial utilities for Waaseyaa: great-circle distance calculation.
GeoDistance::haversine($lat1, $lon1, $lat2, $lon2) returns the great-circle distance between two lat/lon points in kilometres, using the Haversine formula. That is currently the package's only utility — there is no equirectangular variant, no metres option, and no coordinate parsers (despite earlier docs). Pure utility — no storage, no service, no global state.
Key classes: GeoDistance, GeoServiceProvider.