PostGIS  2.2.7dev-r@@SVN_REVISION@@
PG_FUNCTION_INFO_V1 ( LWGEOM_endpoint_linestring  )

EndPoint(GEOMETRY) – find the first linestring in GEOMETRY,.

Returns
the last point. Return NULL if there is no LINESTRING(..) in GEOMETRY