You are here

public function IpGeoLocAPI::earthRadiusSemimajor in IP Geolocation Views & Maps 8

Get semimajor radius.

1 call to IpGeoLocAPI::earthRadiusSemimajor()
IpGeoLocAPI::earthRadius in src/Services/IpGeoLocAPI.php
Get radius of the Earth at a given latitude.

File

src/Services/IpGeoLocAPI.php, line 777

Class

IpGeoLocAPI
Class IpGeoAPI to interact with other modules.

Namespace

Drupal\ip_geoloc\Services

Code

public function earthRadiusSemimajor() {
  return 6378137.0;
}