I have approximate GPS positions (pushpins) that I need to "snap" to rail lines.  Can anyone suggest how I might accomplish this?

 

Thanks.