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.
We removed the
Hash() function from the
Constraint interface. Thus, custom constraints no longer need to implement this function.
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.