In NYC you get permits from the Mayor's Office of Film, Theater & Broadcast (MOFTB) in order to shoot on city streets and sidewalks. Even with a permit, at least in Manhattan, you do not get to close sidewalks to the general public. You have what's known as Intermittent Traffic Control (ITC).