Get a railing path coordinates X, Y, and Z coordinate line and Arc Railing. Z should not be the same if we have a slope railing.
What have you tried so far? There are a few API limitations around railing data, so how your model is built will impact things quite a bit.