The fire started around 5:20 p.m. on Wednesday near Palisade Avenue and West 232nd Street.
Firefighters were able to put the fire out around 7:30 p.m.
Two of the four tracks that run through the area where the fire was burning are open.
Trains are passing through the area, with delays of up to 40 minutes.