Download the PHP package jeroendesloovere/distance without Composer
On this page you can find all versions of the php package jeroendesloovere/distance. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeroendesloovere/distance
More information about jeroendesloovere/distance
Files in jeroendesloovere/distance
Package distance
Short Description Get distance between two locations using PHP.
License MIT
Homepage https://github.com/jeroendesloovere/distance
Informations about the package distance
Distance class
Get distance between two locations using PHP. The distance is getting calculated based on latitude and logitude variables and without using any other external class.
Usage
Installing using Composer
When using Composer you can always load in the latest version.
Check in Packagist.
Example
Setting our example data
Get distance between two locations
Get closest distance from location 1 to one of the two locations (2 and 3)
Documentation
The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc.
Contributing
It would be great if you could help us improve this class. GitHub does a great job in managing collaboration by providing different tools, the only thing you need is a GitHub login.
- Use Pull requests to add or update code
- Issues for bug reporting or code discussions
- Or regarding documentation and how-to's, check out Wiki More info on how to work with GitHub on help.github.com.
License
The module is licensed under MIT. In short, this license allows you to do everything as long as the copyright statement stays present.