In this release we made changes to the Constraint
interface. Furthermore, the OSRM client can now retrieve polylines from the OSRM
server. Learn more in the upgrade guide.
Features
Hash() function removed
We removed the Hash()
function from the Constraint
interface. Thus, custom constraints no longer need to implement this function.
OSRM Polylines
The OSRM client can now retrieve polylines for a set of stops by calling osrm.Polyline(client, points)
from the OSRM server. The function returns a polyline from first to last point as well as a slice of polylines, one for each leg of the given points. All polylines are encoded in Google's polyline format.