如何使用iPod Touch获取GPS位置(第4代) [英] How to get gps Location with an iPod Touch (4th gen)

查看:228
本文介绍了如何使用iPod Touch获取GPS位置(第4代)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我猜这个答案已经发布了,但我是一个lazzy boy:p。我认真地研究了一个iPhone应用程序,它必须让一张地图
并使用当前用户的gps位置在地图上找到用户。



问题是,对于iPhone(v1)以及所有iPod版本,没有GPS设备,
所以有可能得到用户的当前GPS位置(使用谷歌地图API,与互联网...或其他)?
我想知道目前的GPS用户位置,没有用户的GPS设备,因为iPhone v1和iPod Touch中没有这样的设备:-)

谢谢很多为您的建议。

解决方案

您的意思是获取当前位置?正如你所说,iPod touch没有GPS,所以你将无法获得GPS位置。



如果你的意思只是位置,那么是的,核心位置做你想要的(通过使用Wi-Fi三角测量)。查看 CLLocationManager 的文档。


I guess the answer has already been posted, but I am a lazzy boy :p .

Seriously I am working on an iPhone Application which have to blit a map and use the current user gps location to locate the user on the map.

The problem is that with iPhone (v1), and all iPod version there is no gps device, so is it possible to get the current gps location of the user (using google map api, with internet ... or something else) ? I would like to know the current gps user location without user gps device since there is no such device in iPhone v1 and iPod Touch :-) .

Thanks a lot for your advices.

解决方案

Do you mean to get the current location? As you said, the iPod touch has no GPS, so you won't be able to get a GPS location.

If you mean just "location", then yes, Core Location does what you want (by using Wi-Fi triangulation). Check out the documentation of CLLocationManager.

这篇关于如何使用iPod Touch获取GPS位置(第4代)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆