【发布时间】:2015-02-05 19:46:11
【问题描述】:
我正在开发使用 Apple 的 MapKit 的 iOS 应用程序,我需要获取从 A 点 到 B 点 的海拔变化。
我知道CLLocation 有一个altitude 属性,但它只会根据您当前的位置为您提供一个高度,而我需要从一个位置到下一个位置获取一系列高度点。
类似于这个使用 Google Maps + Google Elevation API 的网络应用:
http://gmaps-samples-v3.googlecode.com/svn/trunk/elevation/elevation-profile.html
【问题讨论】:
-
海拔数据现在是 API 的一部分,请参阅 this answer
标签: ios google-maps mapkit