All Projects → orafaelfragoso → php-haversine-formula

orafaelfragoso / php-haversine-formula

Licence: MIT license
Calculates de distance between two geocode points 📌🗺

Programming Languages

PHP
23972 projects - #3 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to php-haversine-formula

Seeker
Accurately Locate Smartphones using Social Engineering
Stars: ✭ 2,772 (+6200%)
Mutual labels:  latitude, longitude
Open Location Code
Open Location Code is a library to generate short codes, called "plus codes", that can be used as digital addresses where street addresses don't exist.
Stars: ✭ 3,567 (+8006.82%)
Mutual labels:  latitude, longitude
Solar-Calculator
Calculates the sunrise and sunset for a given date and location (using GEO coordinates). This library uses the method outlined NOAA Solar Calculations Day spreadsheet found at http://www.esrl.noaa.gov/gmd/grad/solcalc/calcdetails.html.
Stars: ✭ 36 (-18.18%)
Mutual labels:  latitude, longitude
Vincenty-Excel
Thaddeus Vincenty's Direct and Inverse formulae for geodesic calculations in Excel (distance, azimuth, latitude, longitude).
Stars: ✭ 29 (-34.09%)
Mutual labels:  latitude, longitude
geolocation-php-api
This Geolocation PHP class connects to Google Maps API to find latitude/longitude or the address.
Stars: ✭ 71 (+61.36%)
Mutual labels:  latitude, longitude
laravel-geoly
Perform fast and efficient radius searches on your Laravel Eloquent models.
Stars: ✭ 25 (-43.18%)
Mutual labels:  latitude, longitude
PHPCoord
PHPCoord is a PHP library to aid in handling coordinates. It can convert coordinates for a point from one system to another and also calculate distance between points
Stars: ✭ 78 (+77.27%)
Mutual labels:  latitude, longitude
react-cartographer
Generic component for displaying Yahoo / Google / Bing maps.
Stars: ✭ 82 (+86.36%)
Mutual labels:  latitude, longitude
Positional
An elegant and colorful location information app for Android with Compass, Clock, Level, Sun, Moon, Trail Marker and many other features.
Stars: ✭ 72 (+63.64%)
Mutual labels:  latitude, longitude
haversine-js
JavaScript implementation of the Haversine formula
Stars: ✭ 12 (-72.73%)
Mutual labels:  latitude, longitude
Trilateration
Trilateration system using 3 latitude and longitude points, and 3 radius distances in PHP, C#, Java and Javascript
Stars: ✭ 22 (-50%)
Mutual labels:  latitude, longitude
llttz
The easy way to get java TimeZone from latitude/longitude
Stars: ✭ 27 (-38.64%)
Mutual labels:  latitude, longitude
beihu-geo
地理位置解析服务,可供爬虫使用!供参考学习!
Stars: ✭ 16 (-63.64%)
Mutual labels:  latitude, longitude
geodesy-php
Geodesy PHP - Port of some known geodesic/math functions for getting distance from a known point A to a known point B given their coordinates. It also supports conversion between units of length, Polar position to Cartesian coordinates, and different Reference Datums.
Stars: ✭ 26 (-40.91%)
Mutual labels:  latitude, longitude
pikaz-location
定位插件(限中国)
Stars: ✭ 78 (+77.27%)
Mutual labels:  latitude, longitude
ctt
ctt postal codes into MySQL with latitude and longitude from google
Stars: ✭ 33 (-25%)
Mutual labels:  latitude, longitude
jqIpLocation
jqIpLocation – jQuery Plugin that returns the location of an IP address in JSON format
Stars: ✭ 18 (-59.09%)
Mutual labels:  latitude
orange3-geo
🍊 🌍 Orange add-on for dealing with geography and geo-location
Stars: ✭ 22 (-50%)
Mutual labels:  latitude
go-satellite
Calculate orbital information of satellites in GoLang.
Stars: ✭ 55 (+25%)
Mutual labels:  longitude

php-haversini-formula Build Status

Calculates de distance between two geocode points 📌🗺

How to use it:

Install the library via Composer or clone the repo:

composer install rafaelfragoso/haversini-formula

After the installation is complete, you can load the class and start using it.

<?php

use Haversini\Haversini;

/*
 * Calculate distance from Rio de Janeiro to São Paulo
 * Rio: -22.906847, -43.172896
 * São Paulo: -23.550520, -46.633309
 */
Haversini::calculate(
    -22.906847,
    -43.172896,
    -23.550520,
    -46.633309,
    'mi' // Output length unit
);

Running tests

make test or make test-coverage

XDebug is required for test coverage!

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].