Android - Locations got from LocationClient doesn't support speed

后端 未结 1 1133
萌比男神i
萌比男神i 2021-01-21 16:22

I\'m using the new Google LocationClient to retrieve geo locations. And I need to get speed for each point (location).
What I\'m doing now is:

if (mLocat         


        
1条回答
  •  耶瑟儿~
    2021-01-21 16:45

    Is there a way to force LocationClient to use GPS provider?

    No, because the point of LocationClient is for it to blend data from multiple sources (GPS, WiFi, cell towers, sensors, etc.).

    If you need speed, use LocationManager and work with the GPS_PROVIDER, or anything else the Criteria says supports speed (e.g., Galileo, someday, maybe).

    0 讨论(0)
提交回复
热议问题