Android GPS location accuracy issue

前端 未结 3 1031
青春惊慌失措
青春惊慌失措 2021-01-30 09:16

I am working on gps tracking apps in android. Here is my code architecture:

  1. BackgroundSyncService : A service class that is used for getting locat
3条回答
  •  说谎
    说谎 (楼主)
    2021-01-30 09:31

    1. How can i make accuracy level near 99%. Is there any problem on my code architecture?

    This is real life scenario. You cannot ensure that all the location providers will work as expected. You should ask for best available position.

    1. a) Does GPS accuracy depends on device configuration?

    YES. Some devices may have older GPS chipsets which can only track GPS signals (USA) since there are other positioning systems like Galileo (Europe), GLONASS (Russia), QZSS (Japan) and Beidou (China). The more the chipset support for these types the more chance you get to track more satellite hereby position fix. Also TTFF (time to first fix) depends on how many channels do the gps receiver has.

    b) If YES then what can i do for low configuration device?

    Since this is a hardware issue, you cannot do anything here. But other location sources can compensate the lack of GPS data such as AGPS (aided gps), wifi and cellular positioning. Also there are some paid options which provides a database to locate your device using wifi access points and cellids (they claim that they provide best solution on wifi but i m not sure as I dont use it. you can check it out http://combain.com). Wifi and cellid also depends on how many wifi access point and cell tower available around and how far they are (signal strength). If you need 50m accuracy, cellular positioning has nothing to do but wifi has a chance to get closer to this value.

    Some study results from 2009 [3]

    • 3G iPhone w/ A-GPS ~ 8 meters
    • 3G iPhone w/ wifi ~ 74 meters
    • 3G iPhone w/ Cellular positioning ~ 600 meters
    1. How Uber, Go-JEK etc. ride sharing apps works for all device? Is they have extra coding for GPS only?

    They may have specific Location strategies but it will based on using other sources during GPS outage.

    1. My application is for Bangladesh. Here internet is slow. Is it has negative impact on GPS accuracy?

    Other answers claims that internet is not related to GPS. Yes it is true it is not related to GPS but location. AGPS uses internet to fetch 3 types of data (Satellite signals, almanac and ephemeris) which assist GPS to provide position fix faster. If ephemeris and almanac are outdated or the device moved several hundred km from the previous position fix then it is called cold start and takes around 12-15min without AGPS.

    Fused location provider already knows how to provide best solution with these configurations, so you should bless it.

    References:

    • [1] http://gpssystems.net/agps/
    • [2] http://gpsinformation.net/main/almanac.txt
    • [3] https://communityhealthmaps.nlm.nih.gov/2014/07/07/how-accurate-is-the-gps-on-my-smart-phone-part-2/

提交回复
热议问题