I would like to share with you an application that i made with the help of these sources:
// Fleaflet OSM
// Polyline Json http-Parsing (google-map …)
The app draw routes into two markers into O.S.M with the API O.R.S.
If you have any questions i will response as soon as i can.