Import OpenStreetMap data into pgRouting-enabled PostgreSQL databases
Import OSM data into pgRouting database
osm2pgrouting$ osm2pgrouting -f map.osm -d routing_db -u postgres -p 5432$ osm2pgrouting -f map.osm -d routing_db -c mapconfig.xml -u postgres$ osm2pgrouting -f map.pbf -d new_routing_db -U postgres -W password --create