I've downloaded an extent of OSM data with QGIS's OpenStreetMap downloader, and want to use this data for with pgRouting. I can load it without problems as:
osm2pgrouting --f data.osm --conf mapconfig.xml --dbname db --username user --schema osm --clean
However, as you can see in the picture, the many of the dead-ends get connected to some seemingly random vertices. These dead-ends were created by cutting the OSM data with the extent polygon.
I'm using osm2pgrouting 2.3.2
Any tips on how to import OSM data cleanly?