I've answered similar question [here][1]. I think this could be what you're looking for.


  [1]: https://gis.stackexchange.com/questions/109660/how-to-create-more-networking-osm/109677#109677