I have sensor data with location longitude and latitude. I have the following data points:
And I would like to aggregate points within a certain distance from each other to one point along the route, like this:
Each new point will be in the centre of the circle and will include the average of all sensor reading for the given area. I have tried removing precision from the longitude and latitude, but the results I get are bad and the route loses its shape.