MapKit是否提供高程数据? [英] Does MapKit provide elevation data?
问题描述
我正在使用Apple的 MapKit a>,我需要获得从 A点升级到 B点的高程变化。我知道< a href =https://developer.apple.com/library/mac/documentation/CoreLocation/Reference/CLLocation_Class/index.html#//apple_ref/occ/instp/CLLocation/altitude =nofollow> CLLocation 有一个高度
属性,但它只会给你一个基于你当前位置的高度,而我需要从一个位置到下一个位置获得一系列高度点位置。
与使用Google地图+ Google Elevation API的此网络应用类似:
$ b < a href =http://gmaps-samples-v3.googlecode.com/svn/trunk/elevation/elevation-profile.html =nofollow> http://gmaps-samples-v3.googlecode.com/ SVN /主干/仰角/ elevation-profile.ht ml
MapKit不会给你这个,但你可以使用免费的MapQuest API 。
I am working on the iOS app that uses Apple's MapKit and I need to obtain elevation change from Point A to Point B.
I do know that CLLocation has an altitude
property but it will only give you an altitude based on your current location, whereas I need to get a range of altitude points from one location to the next location.
Similar to this web app that uses Google Maps + Google Elevation API:
http://gmaps-samples-v3.googlecode.com/svn/trunk/elevation/elevation-profile.html
MapKit won't give you this, but you could use the free MapQuest API.
这篇关于MapKit是否提供高程数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!