TravelDistanceList

TravelDistanceList[{loc1,loc2,,locn}]

返回列表 {TravelDistance[loc1,loc2],,TravelDistance[locn-1,locn]}.

更多信息和选项

  • TravelDistanceList[{loc1,,locn}] 中的地点 loci 可以按照以度数为单位的数对 {lat,lon}GeoPosition 对象、地理图形 Entity 对象或者地点的任何其他指定给出.
  • 结果按照具有长度单位的 QuantityArray 对象返回.
  • 如果地点的输入列表长度为 n,距离的所得列表长度为 n-1.

范例

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

基本范例  (1)

城市之间的连续驾驶距离列表:

QuantityArray 对象转化为规范格式:

范围  (2)

输入可以按照 GeoPosition 对象列表给出:

可以混合不同地点指定:

选项  (2)

TravelMethod  (1)

返回的距离对应于某种运输方法的最优路线. TravelDistanceList 使用 "Driving" 作为默认值:

UnitSystem  (1)

结果的默认单位由 $UnitSystem 的数值决定:

改为不同系统:

属性和关系  (3)

TravelDistanceList 基本上等价于(虽然更快)SubsequencesTravelDistance:

TravelDistanceList 返回的距离之和等价于由 TravelDistance 返回的总距离:

TravelDistanceList 根据道路报告距离. GeoDistanceList 报告测地距离:

TravelDistanceList[{loc}] 返回空列表:

TravelDistanceList[{}] 未定义:

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

文本

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_traveldistancelist, organization={Wolfram Research}, title={TravelDistanceList}, year={2016}, url={https://reference.wolfram.com/language/ref/TravelDistanceList.html}, note=[Accessed: 22-November-2024 ]}