rogue780/geo-helpers

A collection of helper functions

Installs: 2 936

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/rogue780/geo-helpers

v0.0.3 2015-06-29 17:43 UTC

This package is not auto-updated.

Last update: 2026-02-01 01:01:59 UTC


README

#GEO-HELPERS

This is a set of basic functions that converts between meters, kilometers, feet, miles, and nautical miles. It can also measure distance between two coordinates in decimal lat/long format and provide the distance in meters, kilometers, feet, miles, and nautical miles.

The convention for unit conversions is units_to_other_units($distance_in_units); e.g: miles_to_kilometers(1000); should return 1609.34.

The convention for distance measuring is distance_in_units($lat1, $lat2, $long1, $long2);