google 的距离矩阵 api 是否也考虑了 "Elevation"?

Does google's Distance matrix api consider "Elevation" too?

google 的距离矩阵 api 在显示两个经纬度点之间的距离时是否考虑 "elevation"?

假设第一个人在机场的上层,第二个人站在同一个机场的下层,在同一条直线上,google的距离矩阵api显示的距离是否为考虑到两人之间的垂直距离?

不,但听起来您正在考虑将此 API 用于并非其构建目的的东西。

Google Distance Matrix API will return route distances, be it driving, walking, bicycling or public transportation. The distance (and duration) in each element in a response Distance Matrix API would be that of the route found by the Google Directions API.

它不计算直线(或测地线)距离。您可以使用 Haversine formula.

虽然路线 API 确实可以找到步行路线的室内路线,但这仅适用于路线 to/from Google 地图 地点,那些有 Place ID。 Place ID 无法表示任意建筑层级的任意位置。

与 Google 地图(和 APIs)的距离确实考虑了海拔,例如this route 是 2.1 公里,尽管它看起来只有 1.5 公里。在地图上。

除此之外,与它们之间的行车距离相比,建筑物内的高程差异很小。如果您正在寻找建筑物内人与人之间的距离,最好使用考虑了平均楼层高程(3-5 米)的直线距离进行修正。