i want monorails (and other things of this nature)

so i'm trying to make a lego set, some curved / straight rails, little stations etc... running into a problem though, is it going to be possible to have something like this...

because it seems to me that wherever i place the parts, they're going to be dependant of the height of the map underneath... impossible to line up tile-based rail parts when the ground is uneven :/
i assume i'm either missing something obvious, or trying to do something incredibly complicated and not worth doing (and yeah.. i could do the whole thing as one big feature... but bleah thats not as much fun)