// cd to current folder, then input the following line in the terminal:

osmosis --rb file=new-york-latest.osm.pbf --tf accept-ways highway=motorway,motorway_link,trunk,trunk_link,primary,primary_link,secondary,secondary_link,tertiary,tertiary_link,residential,unclassified,living_street,service --bounding-box top=40.9089 left=-74.0468 bottom=40.6543 right=-73.8929 completeWays=yes --used-node --wb file=new-york-network.osm.pbf

// CRS for network: EPSG:2263 (NAD83)