android 中的 GPS、AGPS、LBS 是什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11760962/
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
What is GPS,AGPS,LBS in android?
提问by SIVAKUMAR.J
I'm working in android (developing application for mobile and tablets). I am using android version is 2.2.
我在 android 工作(为手机和平板电脑开发应用程序)。我使用的android 版本是 2.2。
In my application, I want to capture the longtitude,latitude. My suprevisor is said to me capture the locations using GPS,AGPS,LBS
在我的应用程序中,我想捕获经度、纬度。据说我的上司使用GPS、AGPS、LBS捕捉位置
I'm new to android .I does not know GPS,AGPS,LBS.
我是 android 新手。我不知道 GPS、AGPS、LBS。
Please send me the details, what are the difference,advantages,disadvantages of these 3?
请给我发送详细信息,这三个有什么区别,优点,缺点?
回答by abbas.aniefa
Don't compare LBS with GPS and AGPS. LBS stands for Location based services . It's a service done with the help of GPS/AGPS . For example 'Requesting the nearest business or service, such as an ATM or restaurant' is a service required by a user. There are many applications available for to provide above service. Those application will use either GPS/AGPS to find the location and service to user based on the location fetched.
不要将 LBS 与 GPS 和 AGPS 进行比较。LBS 代表基于位置的服务。这是在 GPS/AGPS 的帮助下完成的服务。例如,“请求最近的企业或服务,例如 ATM 或餐厅”是用户所需的服务。有许多应用程序可用于提供上述服务。这些应用程序将使用 GPS/AGPS 根据获取的位置为用户查找位置和服务。
So simply any application which use location to serve users are considered as LBS.
因此,任何使用位置为用户提供服务的应用程序都被视为 LBS。
Following is the difference between GPS and AGPS
以下是GPS和AGPS的区别
The difference between GPS and A-GPS is actually pretty straightforward. A GPS phone comes with a built-in GPS chip. GPS, short for Global Positioning System, is typically used to determine the location, speed, direction and time of the device. So, for example, in the case of the Mobile, when GPS is activated on the unit, the system would be able to triangulate the position of the receiver when three or more satellites are connected. And since it is able to calculate speed and direction, GPS is also commonly used as a navigation device while driving.
GPS 和 A-GPS 之间的区别实际上非常简单。GPS 手机带有内置 GPS 芯片。GPS 是全球定位系统的缩写,通常用于确定设备的位置、速度、方向和时间。因此,例如,在移动设备的情况下,当设备上的 GPS 被激活时,系统将能够在连接三颗或更多卫星时对接收器的位置进行三角测量。由于可以计算速度和方向,GPS 也常被用作驾驶时的导航设备。
A-GPS (Assisted-GPS), on the other hand, was developed to enhance the performance of GPS. This is especially useful in environments where the GPS chip may have difficulty in getting a satellite signal, such as an urban canyon, or places where there is too much overhead obstruction. What A-GPS does is it leverages on an intermediary called an Assistant Server which provides information on cell ID or other data to help the device identify the right satellites to connect to. This shortens the time needed for a location lock although certain A-GPS solutions require an active connection to a cell phone network.
另一方面,A-GPS(辅助GPS)的开发是为了提高GPS 的性能。这在 GPS 芯片可能难以获得卫星信号的环境中特别有用,例如城市峡谷,或有太多头顶障碍物的地方。A-GPS 的作用是利用称为辅助服务器的中介,该中介提供有关小区 ID 或其他数据的信息,以帮助设备识别要连接的正确卫星。这缩短了位置锁定所需的时间,尽管某些 A-GPS 解决方案需要与手机网络的主动连接。
Pros and Cons of GPS and AGPS:
GPS 和 AGPS 的优缺点:
The realiability and Accuracy is high in the GPS and it is low in AGPS.
GPS的可靠性和准确性较高,AGPS较低。
The location captured by AGPS is not as accurate as GPS.
AGPS 捕获的位置不如 GPS 准确。
The location capturing via GPS is time consuming and power (Battery) consuming, etc.
GPS定位耗时耗电(电池)等。
Hope it helps. For more details on A-GPS
希望能帮助到你。有关A-GPS 的更多详细信息
回答by Tomislav Novoselec
- GPS - Global positioning system -> get your location via satellites
- AGPS - Assisted GPS -> get your location via satellites and network providers
- LBS - Location Based Services -> doesn't have much to do with getting your location.
- GPS - 全球定位系统 -> 通过卫星获取您的位置
- AGPS - 辅助 GPS -> 通过卫星和网络提供商获取您的位置
- LBS - 基于位置的服务 -> 与获取您的位置没有太大关系。
Basically, in Android you can get your location using following providers:
基本上,在 Android 中,您可以使用以下提供商获取您的位置:
Network: get your location based on your wifi connection. fairly fast, but not so accurate GPS: get your location based on GPS receiver. fairly slow, but quite accurate
网络:根据您的 wifi 连接获取您的位置。相当快,但不是那么准确 GPS:根据 GPS 接收器获取您的位置。相当慢,但相当准确
so you have a trade-off: either to use Network provider and get your results fast, or to use GPS provider and get more accurate data.
所以你有一个权衡:要么使用网络提供商并快速获得结果,要么使用 GPS 提供商并获得更准确的数据。
Read more here:
在此处阅读更多信息:
http://developer.android.com/guide/topics/location/strategies.html
http://developer.android.com/guide/topics/location/strategies.html
回答by Dhasneem
LBS- Location Based Services
LBS- 基于位置的服务
GPS- Global Positioning System
GPS- 全球定位系统
AGPS- Assisted Global Positioning System
AGPS- 辅助全球定位系统
LBS
LBS
As abbas.aniefa said, We can't say differences of LBS over GPS and AGPS. It is the service which uses GPS/AGPS to find location. Android provides a number of building blocks for location based services.
正如 abbas.aniefa 所说,我们不能说 LBS 与 GPS 和 AGPS 的区别。它是使用 GPS/AGPS 查找位置的服务。Android 为基于位置的服务提供了许多构建块。
GPS
全球定位系统
GPS, the Global Positioning System run by the United States Military. This provider determines location using satellites. Depending on conditions, this provider may take a while to return a location fix.
GPS,美国军方运行的全球定位系统。该提供商使用卫星确定位置。根据条件,此提供程序可能需要一段时间才能返回位置修复。
Advantages
好处
It will give our location accurately,
It will work fine in out-door locations.
它会准确地给出我们的位置,
它将在户外场所正常工作。
Disadvantages
缺点
It may be very very slow in in-door locations,
It will quickly drain battery.
It will be slower than network provider.
在室内位置可能会非常慢,
它会很快耗尽电池电量。
它会比网络提供商慢。
A-GPS
全球定位系统
A-GPS - Assited GPS. Normal GPS can take a long time to get a position fix. For this reason most cell phone companies have the GPS in the phone turned off except for emergency calls and for services they sell you (such as directions).
A-GPS - 辅助 GPS。普通 GPS 可能需要很长时间才能获得定位。出于这个原因,除了紧急呼叫和他们向您出售的服务(例如路线)外,大多数手机公司都关闭了手机中的 GPS。
A-GPS will come under network location provider category because it uses GPS chip on device, as well as assistance from the network (cellular network) to provide a fast initial fix.
A-GPS 将归入网络位置提供商类别,因为它使用设备上的 GPS 芯片,以及来自网络(蜂窝网络)的协助以提供快速初始定位。
Advantages
好处
It will give our location very accurately in-door location itself,
Drainage of battery will be saved,
It will be faster than GPS Provider.
它会给我们的位置非常准确的室内位置本身,
电池的排水将被保存,
它将比 GPS 提供商更快。
Disadvantage
坏处
- We can not use it with GPS alone. It will depend on network connection.
- 我们不能单独使用 GPS。这将取决于网络连接。
Over all Differences of GPS and A-GPS
GPS 和 A-GPS 的所有差异
GPS
全球定位系统
Uses GPS chip on the device,
Line of sight to the satellites,
Need about 7 to get a fix,
Takes a long time to get a fix,
Doesn't work around tall buildings.
在设备上使用 GPS 芯片,
卫星的视线,
需要大约 7 次才能修复,
需要很长时间才能修复
不适用于高层建筑。
A-GPS
全球定位系统
Uses GPS chip on device, as well as assistance from the network (cellular network) to provide a fast initial fix,
Very low power consumption,
Very accurate,
Works without any line of sight to the sky,
Depends on carrier and phone supporting this (even if phone supports it, and network does not then this does not work).
在设备上使用 GPS 芯片,以及来自网络(蜂窝网络)的帮助以提供快速的初始定位,
极低的功耗,
非常精准,
在没有任何视线对天空的情况下工作,
取决于支持此功能的运营商和电话(即使电话支持它,而网络不支持,则这不起作用)。
回答by SIVAKUMAR.J
I think GPS is done/processed via satellite communication without any network service provider.
The AGPS is done/processed via the network (which is provided by service provider such as Airtel,Vodafone,etc).We should pay for service provider for usage of network.
The LBS is processed through the AGPS.
我认为 GPS 是通过卫星通信完成/处理的,无需任何网络服务提供商。
AGPS 是通过网络完成/处理的(由 Airtel、Vodafone 等服务提供商提供)。我们应该向服务提供商支付网络使用费。
LBS 通过 AGPS 进行处理。
I dont know whether my points are correct or not.Im heard from others and put it.
All are welcome to give their suggestions,ideas,etc.
我不知道我的观点是否正确。我是听别人说的,然后把它说出来。
欢迎大家提出他们的建议,想法等。