<div dir="ltr">Hello Daniel, Manikandra.<div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>osm2pgrouting ignores OSM tags, which are not specified in the configuration file: <a href="https://github.com/pgRouting/osm2pgrouting/blob/master/mapconfig.xml" target="_blank">https://github.com/pgRouting/osm2pgrouting/blob/master/mapconfig.xml</a></div>


<div><br></div><div>Not sure this is the problem though, but might be.</div><span class=""><font color="#888888"><div><br></div></font></span></div></div></div></blockquote><div><br></div><div>I'm quite sure that's not the problem, because I had to complete your configuration file (mapconfig.xml) to not only catch all the highway and road types (for car, walking, bike), but I also added the train and subway tags, all corresponding to OSM WAYS.</div>
<div><br></div><div>I tried several routing engines, and most of them do some kind of pre-processing of the OSM nodes and ways, in order to cut off groups of nodes, for instance, because they form a straight line, and there is no need to have a way with so many nodes. This node cleansing also aids in terms of performance.</div>
<div><br></div><div>Do you perform any kind of node cleansing in your algorithms? I think not, but I wanted to make sure :)</div><div><br></div><div>I noticed that, when running osm2pgrouting, the algorithm divides OSM ways that have more than one OSM node into several arcs, or individual ways, with only two nodes, so probably it is not cutting the nodes.</div>
<div><br></div><div>Maybe the way I used to check the route was not the greatest ever :) I did a query to get all y1,x1 coordinates of the edges resulting from a Dijkstra's route. Then, I copied the coordinates in GPX format into <a href="http://openrouteservice.org/">http://openrouteservice.org/</a> and checked the result. </div>
<div><br></div><div>When inside cities, the route is always on the road, but when the route continues to highways and motorways between urban agglomerates, the route off the road issue starts to be more frequent.</div><div>
<br></div><div>Do you have any ideas on this? Is it my fault :) ?</div><div><br></div><div>Thanks in advance. Cheers,</div><div><br></div></div>-- <br><p style="color:rgb(80,0,80)"><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">Paulo Figueiras <</span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><a href="mailto:%3Crddc@uninova.pt" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:10pt;font-family:Arial,sans-serif">paf@uninova.pt</span></a></span><span style="font-size:10pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">></span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p>
<table border="0" cellspacing="1" cellpadding="0" style="color:rgb(80,0,80)"><tbody><tr><td style="padding:0.75pt"><p style="line-height:14px"><a href="http://www.uninova.pt/" style="color:rgb(17,85,204)" target="_blank"><span style="font-size:11pt;line-height:17px;font-family:Calibri,sans-serif"><img border="0" width="145" height="45" src="cid:image001.jpg@01CDCD9C.3AFFFE60" alt="cid:image002.jpg@01C8AEC7.2F6E45A0"></span></a><span lang="EN-GB" style="color:rgb(31,73,125)"><u></u><u></u></span></p>
<p style="line-height:14px"><span lang="EN-GB" style="font-size:10pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p></td><td style="padding:0.75pt"><p style="line-height:14px"><span style="font-size:7.5pt;line-height:11px;font-family:Arial,sans-serif;color:rgb(31,73,125)">UNINOVA, Centre of Technology and Systems<br>
Campus da Caparica, Quinta da Torre<br>2829-516 Monte Caparica, PORTUGAL</span><span style="font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u><u></u></span></p></td></tr></tbody></table><p style="color:rgb(80,0,80)">
<span lang="EN-US" style="font-size:7.5pt;font-family:Arial,sans-serif;color:rgb(31,73,125)">Phone: <a value="+351212948312" style="color:rgb(17,85,204)">(+351) 212948312</a> | Fax: <a value="+351212957786" style="color:rgb(17,85,204)">(+351) 212957786</a> | Website: </span><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><a href="http://www.uninova.pt/" style="color:rgb(17,85,204)" target="_blank"><span lang="EN-US" style="font-size:7.5pt;font-family:Arial,sans-serif">http://www.uninova.pt/</span></a></span></p>

</div></div>