Or maybe just use a positive and negative rail instead.
I can’t see any possible way that could end badly.
(except for Tesla owners trying to charge their cars on the tracks maybe)
It’d have to be a third rail, and that’s usually only on access protected rights of way - or overhead lines. On just two rails the wheels/axle would short it out.