How to save a marker on the road? Google maps android

I am developing an application that tracks the user's GPS position and shows it with a marker on the map. Updates every 2 seconds.

The problem is that the position I get is not as accurate as in other applications such as WAZE, Maps, etc. The user always drives like this on the road, but the marker is sometimes located a few meters to the left or right.

Using other applications, this does not happen, as if they know that you are on the road, and fix the position, ignoring a small gps error.

So how can I achieve this? I really need it!

Thank you very much in advance =)

Still nothing with this? Please, help!

+4
source share
1 answer

GPS error for roads can be fixed by overlaying raw data on roadmaps. To achieve this on a small scale, you can use the roadmap API, available through map providers such as Google Maps and OSM.

If you're looking for an end-to-end solution that visualizes location data on the road, you can also try the HyperTrack SDK for Android or iOS. Location data from car drives is automatically tied to roads. (Disclaimer: I work at HyperTrack.)

0
source

Source: https://habr.com/ru/post/1542964/


All Articles