如何使用 iPod Touch(第 4 代)获取 GPS 位置
我想答案已经发布了,但我是个懒惰的男孩:p。
说真的,我正在开发一个 iPhone 应用程序,它必须传输地图 并使用当前用户的 GPS 位置在地图上定位用户。
问题是 iPhone (v1) 和所有 iPod 版本都没有 GPS 设备, 那么是否有可能获取用户当前的 GPS 位置(使用谷歌地图 api,通过互联网......或其他方式)? 我想知道没有用户 GPS 设备的当前 GPS 用户位置,因为 iPhone v1 和 iPod Touch 中没有此类设备:-)。
非常感谢您的建议。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的意思是获取当前位置吗?正如您所说,iPod touch 没有 GPS,因此您无法获取 GPS 位置。
如果您只是指“位置”,那么是的,Core Location 可以满足您的需求(通过使用 Wi-Fi 三角测量)。查看 CLLocationManager 的文档。
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.