Similar principle without the moving parts in suburban Philadelphia:
https://www.youtube.com/watch?v=_1clIZUppBY
The trolley flanges ride on top of the railroad rail and there'e a slight bump as they cross the flangeway of the train track. Avoids a diamond with the associated pounding on the frogs for the much heavier freight traffic on CSX.