A new function QgsGeometry::lineLocatePoint() has been added for retrieving the distance along a linestring to the nearest position on the linestring to a given point.
QgsGeometry::lineLocatePoint()
This feature was funded by North Road
This feature was developed by Nyall Dawson (North Road)
This application was created by Kartoza (Pty) Ltd. Available on GitHub! Version: 2.3.1