We are developing an application to show live tracking of a user using the Google Maps API. While we can draw the polyline based on the user’s GPS location, we’re facing an issue where many points are either off the road or inaccurately positioned, especially when the user makes turns on curves. Please see the screenshot attached
We tried the following:
We have integrated the ‘Snap to Roads’ API to fix the off-route issue, which sends our geo coordinates to the roads API and draws the path based on the response points. Although the result is improving, we still get off the road fists.
https://developers.google.com/maps/documentation/roads/snap
What are the best practices for fixing this problem? Are there any other methods to fix this problem? Are there any alternatives to Snap to Road API for this to reduce API usage? Your help is much appreciated.
Thank you.