I'm trying to split a string into an array by doing this:
s[]@turnlanes = split(s@turn_lanes,"|");
But it's not taking into account the fields that are left empty with just ||, "left||" is split into just "left", where i would like it to insert "through" after each | and have it be split into "left,through,through".
How do I go about making this with vex?
Included file with OSM file, you might have to hook it up in the OSM Import.
Now I'm trying to figure out how to replace the empty strings, the last one in the if statement is easy of cource but I don't know how to change both of them. I tried with re_findall and re_replace but I can't seem to get the syntax to work.