我正在使用Apple的MapKit的iOS应用程序,我需要从获得海拔变化点A到B点。MapKit是否提供高程数据?
我知道CLLocation有一个altitude
属性,但它只会给你根据你的当前位置的海拔高度,而我需要从一个位置获得一定范围内的高度点到下一个位置。
到使用谷歌地图+谷歌海拔API此Web应用程序类似:
http://gmaps-samples-v3.googlecode.com/svn/trunk/elevation/elevation-profile.html
我正在使用Apple的MapKit的iOS应用程序,我需要从获得海拔变化点A到B点。MapKit是否提供高程数据?
我知道CLLocation有一个altitude
属性,但它只会给你根据你的当前位置的海拔高度,而我需要从一个位置获得一定范围内的高度点到下一个位置。
到使用谷歌地图+谷歌海拔API此Web应用程序类似:
http://gmaps-samples-v3.googlecode.com/svn/trunk/elevation/elevation-profile.html
MapKit不会给你,但你可以使用free MapQuest API。
MapKit不提供给定点的高度信息。如果您想创建自己的api,请参阅Global Elevation Datasets。
Elevation data is now part of the API,see [this answer](http://stackoverflow.com/a/39102624/386738) – Daniel 2016-08-23 13:47:19
[Detecting location in air](http://stackoverflow.com) /问题/ 39102169 /检出-位置 - 空气) – Daniel 2016-08-23 13:57:39