function earth_arclength in Location 5
Same name and namespace in other branches
- 5.3 earth.inc \earth_arclength()
- 6.3 earth.inc \earth_arclength()
- 7.5 earth.inc \earth_arclength()
- 7.3 earth.inc \earth_arclength()
- 7.4 earth.inc \earth_arclength()
File
- ./
earth.inc, line 71
Code
function earth_arclength($angle, $latitude = 37.9) {
// Convert a given angle to earth-surface distance.
return deg2rad($angle) * earth_radius($latitude);
}