Hi everyone,
I'm facing an issue that might seem trivial, but I've been struggling with it for several days now and can't seem to find a solution. The problem arises when trying to create a hierarchical structure of places during the import of objects. I'm importing objects by extracting metadata from a file, and one of the key pieces of metadata is the address. However, my objects can be associated with multiple addresses, and this is where things get complicated.
To simplify, let's say I have a tag value like: "Long#18;Wide#8;Wide#21".
I have a defined list of place types: Street -> House Number. What I want is for the import process to create two places of the Street type (Long and Wide) and three places of the House Number type (18, 8, 21), with the correct hierarchical relationships between them.
It would be straightforward if the tag only contained something like "Long#18", because then I could map the street to one variable and the house number to another. I would achieve this using the placeSplitter like this:
PlaceType=House Number, parents: [{name=street_variable, type=Street}]
However, the challenge arises when multiple addresses are in a single attribute, as in my example. I'm not sure if it's even possible to achieve this hierarchical tree structure in this case.
I would really appreciate any guidance or suggestions on how to tackle this issue. It's very important to me.