如何使用 iPod Touch(第 4 代)获取 GPS 位置

发布于 2024-10-02 07:19:07 字数 277 浏览 1 评论 0原文

我想答案已经发布了,但我是个懒惰的男孩: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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

笑饮青盏花 2024-10-09 07:19:07

您的意思是获取当前位置吗?正如您所说,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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文