GPS是否需要上网?GPS

2023-09-12 07:06:01 作者:夏末╄→雨纷飞

有必要把两者网​​络 GPS 之前,我可以读我的当前位置(国家,城市它,地点等),在我的应用程序?如果是这样,那么任何其他的方式来获得仅从GPS的位置?因为互联网的可用性是一个问题。

Is it necessary to turn both Internet and GPS on before I can read my current location(country, city, locality etc) in my app? If they are, then any alternative way to get the location only from GPS? since the internet availability is an issue.

推荐答案

正如其他人所说,你不需要互联网的GPS。

As others have said, you do not need internet for GPS.

GPS 基本上是被设计来计算基于时序的多颗卫星的GPS星座接收到的信息的地理坐标基于卫星定位系统。全球定位系统具有相对慢的首次定位时间(TTFF),并从冷启动(意味着没有最后的位置)时,它可能需要最多15分钟,以下载从卫星需要计算的位置上的数据。 A-GPS 使用蜂窝网络利用蜂窝网络提供卫星数据到手机缩短这个时间。

GPS is basically a satellite based positioning system that is designed to calculate geographic coordinates based on timing information received from multiple satellites in the GPS constellation. GPS has a relatively slow time to first fix (TTFF), and from a cold start (meaning without a last known position), it can take up to 15 minutes to download the data it needs from the satellites to calculate a position. A-GPS used by cellular networks shortens this time by using the cellular network to deliver the satellite data to the phone.

但不管是否是A-GPS或GPS位置,所有推导是地理坐标(纬度/经度)。这是不可能的,从全球定位系统获得更仅

But regardless of whether it is an A-GPS or GPS location, all that is derived is Geographic Coordinates (latitude/longitude). It is impossible to obtain more from GPS only.

要能够回到什么比坐标(如地址)等,你需要一些机制来执行反向地理编码。典型地,这通过查询一个服务器或网络服务进行(如使用谷歌地图或冰,但也有其他人)。一些服务将允许您在本地缓存的数据,但它仍然需要的时间下载周边地区的地图信息期间的互联网连接。

To be able to return anything other than coordinates (such as an address), you need some mechanism to do the Reverse Geocoding. Typically this is done by querying a server or a web service (like using Google Maps or Bing, but there are others). Some of the services will allow you to cache data locally, but it would still require an internet connection for periods of time to download the map information in the surrounding area.

虽然它需要一个显著量的努力,您可以编写自己的工具进行反向地理编码,但你仍然需要能够在某处房子的数据,要做到这一点所需的数据量远,你就可以存储在手机上,这意味着你仍然需要通过互联网连接到做到这一点。如果你觉得像Garmin的GPS导航装置的工具,他们在本地存储数据,所以它是可能的,但需要优化它的最大存储,很可能需要超过通常是在现有的电话。

While it requires a significant amount of effort, you can write your own tool to do the reverse geocoding, but you still need to be able to house the data somewhere as the amount of data required to do this is far more you can store on a phone, which means you still need an internet connection to do it. If you think of tools like Garmin GPS Navigation units, they do store the data locally, so it is possible, but you will need to optimize it for maximum storage and would probably need more than is generally available in a phone.

所以我想简短的回答你的问题是,不,你不需要激活的Internet连接来获取坐标,但除非你正在建设一个专门的设备或有无限的存储,则需要通过互联网连接到将这些坐标到任何东西。

So I guess the short answer to your question is, no you do not need an active internet connection to get Coordinates, but unless you are building a specialized device or have unlimited storage, you will need an internet connection to turn those coordinates into anything else.

 
精彩推荐