title: using OSRM Routing in Openlayers 3 to draw polyines on the map along the direction of the map
body: <p>I'd like to implement routing on my map using OSRM and Openlayers 3 but there don't seem to be any examples or tutorials anywhere.All the sample are to confusing</p>
  
  <p>Sources refereed 1:<a href="http://workshop.pgrouting.org/chapters/ol3_client.html" rel="nofollow">http://workshop.pgrouting.org/chapters/ol3_client.html</a> (in this sample i don't know from where to get the data to plot the polyline i will be getting the data as a json which contains array of object with latitude and longitude)</p>
  
  <p>2:<a href="http://wiki.openstreetmap.org/wiki/Routing/online_routers" rel="nofollow">http://wiki.openstreetmap.org/wiki/Routing/online_routers</a> don't know where to start with to accomplish it</p>
  
  <p>3:OSRM Routing in Openlayers 3</p>
  
  <p>i am able to draw a straight line but i wanted to draw different color lines along the direction of the map , i came to know for this i have to use a direction service can any body please point to some sample code or post any help will be thankful please say a way to accomplish it</p>