Originally posted by aslyfox not sure what they are but they were on the railroad right of way
I think the hooked piece fits under a rail latched onto the bottom flange, The flat piece is probably part of a metal plate placed between the rail and a wooden tie.
Original image then a very deep crop to show the inside of the far rail and here you can see what I think are the same type of "J" irons hooking onto the lower flange of the rail. On the near rail in the cropped image you can see the flat plates that typically have four holes for spikes, but most active RR tracks I've seen have only one spike driven on each side of the rail through the metal plate, with the spike head tight down on that lower flange of the rail