Exact-distance ties resolve to the lower storeyId, NOT to iteration order.
That determinism is the point of this being one shared function: the parser
and the server-loaded path insert storeys into their maps in different
orders, so an order-dependent tie-break would let the same building still
answer differently across entry paths — the exact drift #1841 is about.
Resolve the storey whose elevation is nearest
z, ornullwhen none is within STOREY_ELEVATION_MATCH_TOLERANCE_M.Exact-distance ties resolve to the lower
storeyId, NOT to iteration order. That determinism is the point of this being one shared function: the parser and the server-loaded path insert storeys into their maps in different orders, so an order-dependent tie-break would let the same building still answer differently across entry paths — the exact drift #1841 is about.