ios 定位服务是否使用数据?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/23225295/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Does location services use data?
提问by Milo
Now I understand this question may belong on Ask Different but I think it is appropriate for here because it pertains specifically to application development. I'm downloading some GPS locations from a server which I know uses data but then I turn on location services and am notified when the location changes based on a threshold. I then check the previous locations GPS coordinates against a region I have set according to another set of coordinates. Does any of the above location services use data? Does getting the users location and/or receiving location updates use data? If it does, does the threshold change the data usage?
现在我明白这个问题可能属于 Ask Different ,但我认为它适合这里,因为它专门与应用程序开发有关。我正在从我知道使用数据的服务器下载一些 GPS 位置,但随后我打开了位置服务,并在位置根据阈值发生变化时收到通知。然后,我根据另一组坐标设置的区域检查以前的位置 GPS 坐标。上述任何位置服务是否使用数据?获取用户位置和/或接收位置更新是否使用数据?如果是,阈值是否会改变数据使用?
采纳答案by rmaddy
Location data comes from 3 possible sources:
位置数据来自 3 个可能的来源:
- actual GPS chip (not all iOS devices have one)
- known position data of the WiFi node you may be connected to
- known position data of the cell tower(s) you are connected to.
- 实际的 GPS 芯片(并非所有 iOS 设备都有)
- 您可能连接到的 WiFi 节点的已知位置数据
- 您所连接的蜂窝塔的已知位置数据。
So the question now becomes "do any of those location data sources use cellular data"?
所以现在的问题变成了“这些位置数据源中的任何一个都使用蜂窝数据吗”?
- Unlikely since the data comes from the GPS chip and satellite data.
- Possibly since if WiFi is enabled on the device, but you are not connected via WiFi, cellular data may be used to obtain the estimated position of those WiFi nodes (if not known already by your iOS device).
- Maybe. Does the cell signal include the position data of the tower? If so, no data from a data plan should be used for this data. If not, then a small amount of the data plan may be used to obtain the data.
- 不太可能,因为数据来自 GPS 芯片和卫星数据。
- 可能是因为如果设备上启用了 WiFi,但您没有通过 WiFi 连接,则可能会使用蜂窝数据来获取这些 WiFi 节点的估计位置(如果您的 iOS 设备尚不知道)。
- 也许。小区信号是否包括塔的位置数据?如果是这样,则不应将数据计划中的任何数据用于此数据。如果不是,则可以使用少量的数据计划来获取数据。
回答by Lionel Sanders
It uses data if you don't have wifi access at your location. Sharing your location will use data because your location will be tracked by the closest cellular tower to you.
如果您所在的位置没有 wifi 接入,它会使用数据。共享您的位置将使用数据,因为离您最近的蜂窝塔会跟踪您的位置。