Skip to content

A package that simplifies calculations around distance and metrics.

License

Notifications You must be signed in to change notification settings

Ricorocks-Digital-Agency/giveaninch

Repository files navigation

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 lukeraymonddowning@gmail.com 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.

About

A package that simplifies calculations around distance and metrics.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages