OpenLayers: How to draw a route from OSRM on the right road?

المشرف العام

Administrator
طاقم الإدارة
Asking to OSRM for a route, OSRM is returning the geometry:

"route_geometry":"ity_rArqlxIvTv|AoCrY"After decode them, I'm getting 3 GPS coordinates:

43.529557, -5.65943443.529208999999994, -5.66093443.529281, -5.66136But with just 3 points, I'm getting this route :(



My questions is: How can I draw a right route on the road with openlayers? Like this:



Thanks in advance!



أكثر...
 
أعلى