I'm building an app where I need very good accuracy. The app is calculating trip in the car for the companies I work with.
I came to the point where it counts just like a odometer in a car, but my problem is tunnels. I was thinking that in each city I will create zone on start of the tunnels and end of the tunnels where it will ignore location and just after leaving the tunnel it will adds up the kilometres from database depending on how long the tunnel is. Because sometimes when entering the tunnel in very few cases the location goes back and forward and it adds 800meters+ and this is problem. Image
But my solution to this problem seems very complicated. Is there easier solution for getting locations in tunnel and prevent that what happened on the image?