---
name: "GIS::Distance::Constants"
section: "3pm"
platform: "linux"
package: "libgis-distance-perl"
version: "0.20-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/GIS::Distance::Constants"
---

# GIS::Distance::Constants(3pm)

Constants used by formula classes.

## NAME

GIS::Distance::Constants - Constants used by formula classes.

## CONSTANTS

### $KILOMETER\_RHO

Number of kilometers around the equator of the earth.

`6371.64`

### $DEG\_RATIO

Number of units in a single decimal degree (lat or lon) at the equator.

`0.0174532925199433`

This value is derived from:

```
    $gis = GIS::Distance->new( 'Haversine' );
    $DEG_RATIO = $gis->distance( 10,0 => 11,0 )->km() / $KILOMETER_RHO;
```

## SUPPORT

See "SUPPORT" in GIS::Distance.

## AUTHORS

See "AUTHORS" in GIS::Distance.

## LICENSE

See "LICENSE" in GIS::Distance.
