In the most general form, the range of such a function may lie in an arbitrary topological space, but in my testing project, the range will lie in the 3-dimensional space (space curve).
This tool is coded in Python in Cinema 4D.
The tool is developed in Houdini,
and automatically creates city based on real-map.
Using both Houdini & Unity Engine with OpenCV, Google map API.