Certainly, being next to R/R tracks, or a busy street, or next to a highway are negatives.
During upswings in the market, everything seems to sell, but these properties may not appreciate at the same rate, but there is no set "formula" to calculate this.
Here's the big question, "Do you want to live there? Can you find something not by the tracks for the same price?" This is your decision, and YES, it will take longer to sell a property near tracks or a busy street in any market.
As far as the structure, you should always hire a professional inspector prior to buying any property.
Good Luck on your purchase!!