I haven't found a proper function in PostGIS or a tool in Python to do so. Does anyone have any hints for how I can accomplish this? Remember the points have no timestamps or another way to be ordered, and we do not have a way to follow, just the points and from those we want to generate the polyline.
We have about 500,000 points in the country to work with, and we want to trace some new ways where there are not still in OSM.
The first task we want to address is to interpolate the ways.
Preferably we would work with PostGIS or libs in python. The hard thing is to "isolate" in some way the points that could conform a way.