Download the PHP package jackpopp/geodistance without Composer
On this page you can find all versions of the php package jackpopp/geodistance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
All versions of geodistance with dependencies
Informations about the package geodistance
GeoDistance allows you to search for locations within a radius using latitude and longitude values with your eloquent models.
Add geodistance to your composer file.
Add the geodistance trait to your eloquent model and lat/lng columns to your table.
You can now search for locations within a distance, using miles or kilometers:
You can also search for locations outside a certain distance:
Miles (miles/m) Kilometers (kilometers/km) Nautical Miles (nautical_miles) Feet (feet)
If you wish to add addtional measurements, please create a new issue.
Credit to movable-type.co.uk for information on selecting points withing a bounding circle - http://www.movable-type.co.uk/scripts/latlong-db.html