Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 467 Bytes

README.Geo.md

File metadata and controls

20 lines (13 loc) · 467 Bytes

DrMVC\Helpers\Geo

Simple methods for geolocation.

How to use

// Generate 10 random coordinates
$random = Geo::randomCoordinates(10, 1);

// Converts the number in degrees to the radian equivalent
$radian = Geo::radians($degree);

// Return array of coordinates within some radius
$result = Geo::getCoordinatesWithinRadius($ref_coordinates, $desired_coordinates, 100);

More examples

Some other examples of usage you can find here.