rogue780/geo-helpers

一系列辅助函数的集合

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

This package is not auto-updated.

Last update: 2024-09-28 17:33:18 UTC


README

#GEO-HELPERS

这是一个基本的函数集合,用于在米、千米、英尺、英里和海里之间进行转换。它还可以测量十进制度数经纬度格式下两点之间的距离,并提供米、千米、英尺、英里和海里的距离。

单位转换的约定为 units_to_other_units($distance_in_units);,例如:miles_to_kilometers(1000); 应返回 1609.34

距离测量的约定为 distance_in_units($lat1, $lat2, $long1, $long2)