开发者

Iphone MapKit displaying route

开发者 https://www.devze.com 2023-01-22 21:17 出处:网络
I would like to show the route between 2 locations, from the users current location to a certain point on the map. I have seen this done in a couple of applications like layar.

I would like to show the route between 2 locations, from the users current location to a certain point on the map. I have seen this done in a couple of applications like layar. http://itunes.apple.com/us/app/laya开发者_StackOverflow中文版r-reality-browser/id334404207

Can someone give me pointers on how to achieve this on iphone sdk 4

Thanks


Try using kishikawakatsumi's code on github.

Looks like he provides a wrapper around the Google Maps routing API which will give you the route, and then some custom MKAnnotations to handle drawing those routes in MapKit.

0

精彩评论

暂无评论...
验证码 换一张
取 消