Search code examples
fluttergeolocation

Flutter: How to get precise speed and traveled distance as the user moves?


I'm trying to build a sort of fitness app. I want to know the user speed and also I want to display the distance traveled by the user. I already know how to get it using the Geolocator package but the data isn't enough precise, in fact, I receive location updates even when the user doesn't move (and the traveled distance is incremented). I want to know if there are better solutions. How other fitness apps can be so precise?


Solution

  • Huawei Location Kit may help with your issue.

    Location Kit combines the Global Navigation Satellite System (GNSS), Wi-Fi, and base station location functionalities into your app to build up global positioning capabilities, allowing you to provide flexible location-based services for global users. Currently, it provides three main capabilities: fused location, activity identification, and geofence. You can call one or more of these capabilities as needed.

    For Detail,pls kindly refer Docs.

    Huawei also has provided some HMS Core kit plugins for Flutter:

    Reference documents

    Location Kit plugins for Flutter