This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const EARTH_RADIUS = 6371000; | |
/** | |
* Calculates the great-circle distance between two points, with | |
* the Haversine formula. | |
* | |
* @param float $latitudeFrom Latitude of start point in [deg decimal] | |
* @param float $longitudeFrom Longitude of start point in [deg decimal] | |
* @param float $latitudeTo Latitude of target point in [deg decimal] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"contact": { | |
"type": "user", | |
"id": 189742717, | |
"full_name": "Antonin Tyralik", | |
"name": "Antonin Tyralik", | |
"email": "kminekmatej@boost.space", | |
"user_id": "Subject022", | |
"phone_number": null, | |
"phone": null, |