haversine:计算地球上2点之间的距离

时间:2021-05-14 12:45:08
【文件属性】:
文件名称:haversine:计算地球上2点之间的距离
文件大小:12KB
文件格式:ZIP
更新时间:2021-05-14 12:45:08
python distance earth haversine Python Haversine 使用纬度和经度计算地球上两个点之间的距离(以各种单位表示)。 安装 $ pip install haversine 用法 计算里昂到巴黎的距离 from haversine import haversine , Unit lyon = ( 45.7597 , 4.8422 ) # (lat, lon) paris = ( 48.8567 , 2.3508 ) haversine ( lyon , paris ) >> 392.2172595594006 # in kilometers haversine ( lyon , paris , unit = Unit . MILES ) >> 243.71201856934454 # in miles # you can also use the string abbreviation for units: haver
【文件预览】:
haversine-master
----.travis.yml(536B)
----haversine()
--------__init__.py(57B)
--------haversine.py(5KB)
----Pipfile(144B)
----tests()
--------test_haversine.py(2KB)
--------__init__.py(0B)
--------test_haversine_vector.py(1KB)
----LICENSE(1KB)
----Pipfile.lock(5KB)
----setup.cfg(28B)
----setup.py(1KB)
----.gitignore(42B)
----CHANGELOG.md(3KB)
----Makefile(190B)
----README.md(3KB)
----.bumpversion.cfg(83B)

网友评论