For now the mod algorithm check what the rail under the rail-layer, what rails could be possibly build from there and if there is a ghost at this position.
This is quite the same for signals as on that rail it check every position where you can put signals and check if there is ghosts of signals at these position.
Thoses agorithms uses factorio internal api to get thoses positions so it's quite efficient.
For power poles it would need another algorithm that would find if there is power poles in a certain radius, this is not hard, but we need to take in account:
- at which radius
- do we limit some type of power pole
- do we limit to power poles that connect to the last visited
- if not limiting to type and connection whith large radius, will not it feel cheaty
For me those are problems that make on the same level as elevated rails,
so I can make a quick implementation disabled by default, but a fine-grained solution will come after rock and tree cleanup