Is it possible to use Core Location / GPS without any internet connection / disabled cellular network?(是否可以在没有任何互联网连接/禁用蜂窝网络的情况下使用核心位置/GPS?)
问题描述
我需要在没有互联网的地区(例如帆船或撒哈拉沙漠)捕获 GPS 坐标(没有反向地理编码、名称等),这样您就可以得到您所在位置的经纬度.
I need to capture the GPS coordinates (no reverse geocoding, names, etc) in regions where there is no internet such as on a sailing boat or in the Sahara desert, so that you just get the latitude and longitude of where you are.
Core Location 是否支持这一点并回退到仅使用 GPS(无小区三角测量或 WiFi 位置映射)?
Does Core Location support that and falls back to GPS-only (no cell triangulation or WiFi location mapping)?
我认为确实如此,但只是想确定一下.
I think it does, but just want to be sure.
推荐答案
一些 iOS 设备有一个真正的 GPS 芯片,即使没有互联网连接,您也可以获取位置数据.我相信最后几部 iPhone 都有 GPS.一些 iPad 型号有 GPS.我不相信任何 iPod touch 型号都有 GPS.
Some iOS devices have a real GPS chip allowing you to get location data even with no Internet connection. I believe the last few iPhones all have GPS. Some of the iPad models have GPS. I don't believe any of the iPod touch models have GPS.
显然,如果没有互联网,您将无法显示任何地图数据,除非它是应用程序的一部分,但该应用程序将能够记录真实的位置数据.
Obviously without Internet you can't show any map data unless it is part of the app, but the app will be able to record real location data.
此外,如果没有互联网,GPS 可能需要更长的时间才能获得初始位置.带有 GPS 的设备具有所谓的辅助 GPS".这意味着蜂窝和/或 WiFi 三角测量用于帮助更快地获得初始位置修复.
Also, without Internet, the GPS may take longer to get an initial position. The devices with GPS have what is called "assisted GPS". This means Cellular and/or WiFi triangulation is used to help get an initial position fix quicker that without.
没有 GPS 的设备使用蜂窝和/或 WiFi 三角测量来获取估计的位置数据,这远不如有 GPS 的设备准确.
Devices without GPS use cellular and/or WiFi triangulation to get estimated location data which is far less accurate than devices with GPS.
这篇关于是否可以在没有任何互联网连接/禁用蜂窝网络的情况下使用核心位置/GPS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:是否可以在没有任何互联网连接/禁用蜂窝网络的情况下使用核心位置/GPS?


- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 想使用ViewPager,无法识别android.support.*? 2022-01-01