dev-master
9999999-devA lightweight set of tools for working with geodata in PHP.
MIT
The Requires
- php >=5.4.0
The Development Requires
php geo geotools
Wallogit.com
2017 © Pedro Peláez
A lightweight set of tools for working with geodata in PHP.
A library that provides some simple tools for working with location data., (*2)
$startPoint = new \WeeJames\Geotools\Geopoint(
55.8580,
4.2590
);
$targetPoint = new \WeeJames\Geotools\Geopoint(
40.7127,
74.0059
);
$distanceToTarget = $startPoint
->distance()
->to($targetPoint)
->using(\WeeJames\Geotools\Tools::ALGORITHM_HAVERSINE)
->is();
Haversine \WeeJames\Geotools\Tools::ALGORITHM_HAVERSINE (Most accurate), (*3)
Flat (default) \WeeJames\Geotools\Tools::ALGORITHM_FLAT (Faster, but loses accuracy over long distances), (*4)
Kilometers \WeeJames\Geotools\Tools::GEO_UNIT_KM, (*5)
Miles \WeeJames\Geotools\Tools::GEO_UNIT_MILES, (*6)
A lightweight set of tools for working with geodata in PHP.
MIT
php geo geotools