TravelDistance

TravelDistance[{loc1,loc2,}]

给出从 loc1loc2 的估计旅行距离.

更多信息和选项

范例

打开所有单元关闭所有单元

基本范例  (1)

估计旅行总距离:

范围  (4)

两个地理位置间的旅行距离:

GeoPosition 对象定义位置:

计算穿行几个地点的旅行总距离:

用地址指定位置:

选项  (2)

TravelMethod  (1)

TravelDistance"Driving" 作为默认的出行方式:

改用 "Walking"

UnitSystem  (1)

$UnitSystem 指定缺省单位系统,一般情况下由你所在的位置决定,此处为 "Imperial"

指定输出结果中使用的单位系统:

属性和关系  (2)

计算两个地理位置间估计的旅行距离:

也可以用 TravelDirections 来计算:

或是作为 TravelDirectionsData 对象的属性:

计算位置的连续对间的距离:

它们也可以通过结合 PartitionTravelDistance 获取,但这样效率更低:

Wolfram Research (2015),TravelDistance,Wolfram 语言函数,https://reference.wolfram.com/language/ref/TravelDistance.html.

文本

Wolfram Research (2015),TravelDistance,Wolfram 语言函数,https://reference.wolfram.com/language/ref/TravelDistance.html.

CMS

Wolfram 语言. 2015. "TravelDistance." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/TravelDistance.html.

APA

Wolfram 语言. (2015). TravelDistance. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/TravelDistance.html 年

BibTeX

@misc{reference.wolfram_2024_traveldistance, author="Wolfram Research", title="{TravelDistance}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/TravelDistance.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_traveldistance, organization={Wolfram Research}, title={TravelDistance}, year={2015}, url={https://reference.wolfram.com/language/ref/TravelDistance.html}, note=[Accessed: 21-November-2024 ]}