Skip to content

A Haversine Distance Swift Package. The Haversine distance formula determines the great-circle distanec between two points on a sphere given their longitudes and latitudes.

License

Notifications You must be signed in to change notification settings

tmn/HaversineDistance

Repository files navigation

Haversine Distance

The Haversine distance formula determines the great-circle distance between two points on a sphere given their longitudes and latitudes.

Usage

Add a package to your Xcode project by select File > Swift Packages > Add Package Dependency and enter https://github.com/tmn/HaversineDistance.

import haversineFormula

let haversine = Haversine.distance(
    firstLocation: (63.421798, 10.394786),
    secondLocation: (63.416191, 10.431693)
)

About

A Haversine Distance Swift Package. The Haversine distance formula determines the great-circle distanec between two points on a sphere given their longitudes and latitudes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published