I'm not sure how this might work considering the fact that trucks are taking stuff to and from Manhattan businesses and homes almost 24/7. Barcelona might be a city, but it's scale and density is nowhere near that of New York.
Perhaps I can see this being tested in another borough in an area with lower density.