Skip to content

Latest commit

 

History

History
56 lines (34 loc) · 1.2 KB

README.md

File metadata and controls

56 lines (34 loc) · 1.2 KB

GiveAnInch

A Laravel package that provides geographic distance calculations between points.

Installation

You can install the package via composer:

composer require ricorocks-digital-agency/giveaninch

Usage

Using the package is simple via the GiveAnInch facade.

Get the distance in KM between two points

GiveAnInch::from(0, 0)->to(0, 0)->getDistance();

Check if two coordinates are within a given radius of each other

GiveAnInch::from(0, 0)->to(0, 0)->isWithin(10);

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.