New answers tagged osm2pgrouting
In 2012 a "time dependent shortest path" algorithm (TDSP) was implemented as a Google Summer of Code project: https://github.com/pgRouting/pgrouting/wiki/Time-dependent---Dynamic-Shortest-Path This algorithm might be what you are looking for, but it was not added to pgRouting 2.0, so it would require some effort or funding to integrate it.
Should be here: /usr/share/bin/osm2pgrouting See also: https://github.com/pgRouting/osm2pgrouting/blob/master/CMakeLists.txt But particularly if you are dealing with large data (e.g. europe.osm) you might want to try osm2po instead of osm2pgrouting.
I guess this answer is useless 2 years later, but you may want to try OSRM. Not based in pgRouting, but is an Open Source routing engine with a Leaflet based API
As already mentioned you have to look at the highway key. The colors you are talking about are defined by the rendering stylesheet and represent the following tags: blue: highway=motorway, highway=motorway_link green: highway=trunk, highway=trunk_link red: highway=primary, highway=primary_link orange: highway=secondary, highway=secondary_link yellow: ...
It's true, what is in special interest in this case are all objects with highway=* tagged. BUT usually all the processing is already done by OSM2pgrouting and you don't need to struggle around with tagging schemas etc. If you then want to tweak the routing itself, you might consult the pgrouting manual. So you download an OSM planet extract, (optional ...
Use the OpenStreetMap (OSM) Key for Highways: http://wiki.openstreetmap.org/wiki/Key:highway
Top 50 recent answers are included