SphericalDistance[pt1,pt2]
gives the distance between points pt1 and pt2 on Earth using a spherical model of the planet.
SphericalDistance
SphericalDistance[pt1,pt2]
gives the distance between points pt1 and pt2 on Earth using a spherical model of the planet.
更多信息和选项
- To use SphericalDistance, you first need to load the Geodesy Package using Needs["Geodesy`"].
- A point pti is expressed as a pair of numbers {latitude,longitude}.
- Each coordinate latitude and longitude can be given in degrees, or as {degrees,minutes}, or {degrees,minutes,seconds}.
- A negative value for a coordinate indicates that the coordinate is South latitude or West longitude.
- Distances are returned in kilometers.
- The spherical model is based on an exact formula.
- The following option can be given:
-
Radius 6371007/1000 specify the radius of the sphere - With the setting Radius ->r the radius of the spherical model is assumed to be r kilometers.
技术笔记
相关指南
文本
Wolfram Research (2008),SphericalDistance,Wolfram 语言函数,https://reference.wolfram.com/language/Geodesy/ref/SphericalDistance.html.
CMS
Wolfram 语言. 2008. "SphericalDistance." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/Geodesy/ref/SphericalDistance.html.
APA
Wolfram 语言. (2008). SphericalDistance. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/Geodesy/ref/SphericalDistance.html 年
BibTeX
@misc{reference.wolfram_2026_sphericaldistance, author="Wolfram Research", title="{SphericalDistance}", year="2008", howpublished="\url{https://reference.wolfram.com/language/Geodesy/ref/SphericalDistance.html}", note=[Accessed: 11-April-2026]}
BibLaTeX
@online{reference.wolfram_2026_sphericaldistance, organization={Wolfram Research}, title={SphericalDistance}, year={2008}, url={https://reference.wolfram.com/language/Geodesy/ref/SphericalDistance.html}, note=[Accessed: 11-April-2026]}