Turistforeningen/leaflet-routing — pull request #9 by nrenner (2014-01-24 14:34:42+00:00)
Title: add getWaypoints and toPolyline methods

Adds the following new methods to L.Routing to obtain route data:
* getWaypoints: get all waypoints, use case is to generate download links, another might be a route permalink
* toPolyline: get calculated route as single polyline, use case is to calculate stats (length) and an elevation diagram
* _eachSegment: private helper to iterate over all segments