The SE_Midpoint() function
The SE_Midpoint() function determines the midpoint of a linestring. The midpoint is defined as that point which is equidistant from both endpoints of a linestring, measuring distance along the linestring.
If the input linestring has Z values or measures, the Z value or measure of the midpoint are computed by linear interpolation between the adjacent vertices.
Syntax
SE_Midpoint (ln1 ST_LineString)
Return type
ST_Point