Hi Jordan,<div><br></div><div>Thank you very much!</div><div>One of the reasons to move to Git was actually to make it easier for you (and others) to apply changes like you sent me this summer already.</div><div><br></div>

<div>osm2pgrouting was originally written by Daniel Wendt and we offered him to host the source code together with pgRouting.</div><div>But it doesn&#39;t belong to the library itself, that&#39;s why I made an extra repository now on GitHub.</div>

<div><br></div><div>I think a lot of users would appreciate if osm2pgrouting would get some improvements. Anton an I don&#39;t have much time to work on it, so we&#39;re happy if anyone is willing to help.</div><div>You&#39;re welcome to take the lead with osm2pgrouting. Let me know your GitHub account name. Then I can add you the list of committers.</div>

<div><br></div><div>I think it would be easiest if you could create a branch and apply you changes to the repository yourself. I wouldn&#39;t have the time at the moment to do this.</div><div><br></div><div>Daniel</div><div>

<br></div><div><br></div><div><br></div><div><br><div class="gmail_quote">2010/11/15 Jordan Anderson <span dir="ltr">&lt;<a href="mailto:jordandrsn@gmail.com">jordandrsn@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi all,<br>
<br>
Since you are in the process of migrating to git, I thought I would<br>
share with you my modification of osm2pgrouting that I use for<br>
<a href="http://www.ridethecity.com" target="_blank">www.ridethecity.com</a>.<br>
<br>
It adds the following features:<br>
1. Creates and populates a way_tag table, maintaining the 1:N<br>
relationship between ways and tags. The use case for Ride the City is<br>
that sometimes we have to adjust the cost of a way based on the<br>
presence of two or more tags e.g. surface=* and cycleway=*, or<br>
highway=footway and bicycle=yes. This permits more sophisticated cost<br>
calculations.<br>
<br>
2. Creates and populates a relations table and a relation_ways table.<br>
Ride the City also needs to be aware of relations for cost<br>
calculations -- mostly as they relate to local, regional and national<br>
bike routes. In the future, we would also want to incorporate turn<br>
restrictions from OSM relations. (Note that the way_id in the<br>
relation_ways table is actually the osm_id of the way -- not the id<br>
that was assigned by osm2pgrouting to the splitted ways.)<br>
<br>
3. Adds a new command line parameter called -skipnodes. If this is<br>
set, the program will not load the nodes into the nodes table. This<br>
can be a time-consuming step and is really not crucial for routing<br>
(for us anyway). By default, the nodes table will still be filled as<br>
usual.<br>
<br>
Here is a link to the gzipped source code:<br>
<a href="http://www.ridethecity.com/osm2pgrouting-relations.tar.gz" target="_blank">http://www.ridethecity.com/osm2pgrouting-relations.tar.gz</a><br>
<br>
Please let me know what you think.<br>
<br>
Thanks,<br>
Jordan<br>
_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
</blockquote></div><br></div>