You are here

function getlocations_earth_arclength in Get Locations 7

Same name and namespace in other branches
  1. 7.2 getlocations.module \getlocations_earth_arclength()

File

./getlocations.module, line 6725
getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Code

function getlocations_earth_arclength($angle, $latitude = 37.9) {

  // Convert a given angle to earth-surface distance.
  return deg2rad($angle) * getlocations_earth_radius($latitude);
}