 Some location shooting took place in New York City . The Alexander Hamilton U.S. Custom House served as the exterior for NYPD headquarters , and an apartment house at 15 West 81st Street , on Manhattan 's Upper West Side , was used as the exterior for the home of Gwen Stacy and her family . A row of houses on Fuller Place in the Brooklyn neighborhood of Windsor Terrace stood in for the Forest Hills , Queens neighborhood of Ben and May Parker . A web @-@ swinging stunt sequence takes place along the Riverside Drive Viaduct in Harlem . 
