Skip to contents

Calculates the length of a degree of latitude or longitude in kilometers, assuming an spherical earth.

Usage

length_of_degree(degree, type = c("lat", "long"))

Arguments

degree

The degree to calculate the length for

type

Whether to return the length of a degree for latitude or longitude

Value

Length of the degree in kilometers