ST_LineLocatePoint
Linear Referencing
ST_LineLocatePoint (Python)
Returns a double between 0 and 1 representing the location of the closest point on a LineString to the given Point, as a fraction of 2d line length.
Returns a double between 0 and 1 representing the location of the closest point on a LineString to the given Point, as a fraction of 2d line length.
SQL reference:

