Static class containing geographical functions.
GNU GPL v2+
- Author
- Jeroen De Dauw < jeroe.nosp@m.nded.nosp@m.auw@g.nosp@m.mail.nosp@m..com >
-
Pnelnik
-
Matěj Grabovský
◆ calculateDistance()
static Maps\GeoFunctions::calculateDistance |
( |
LatLongValue |
$start, |
|
|
LatLongValue |
$end |
|
) |
| |
|
static |
◆ findDestination()
static Maps\GeoFunctions::findDestination |
( |
LatLongValue |
$startingCoordinates, |
|
|
|
$bearing, |
|
|
|
$distance |
|
) |
| |
|
static |
Finds a destination given a starting location, bearing and distance.
- Since
- 2.0
- Parameters
-
LatLongValue | $startingCoordinates | |
float | $bearing | The initial bearing in degrees. |
float | $distance | The distance to travel in km. |
- Returns
- array The destination coordinates, as non-directional floats in an array with lat and lon keys.
The documentation for this class was generated from the following file: