A package that simplifies calculations around distance and metrics.

1.1.0 2021-02-01 13:41 UTC

This package is auto-updated.

Last update: 2024-11-29 06:22:20 UTC


README

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.