Skip to content
Snippets Groups Projects
Commit 5c2816dc authored by Jean-Marie Favreau's avatar Jean-Marie Favreau
Browse files

If no name is defined, we check for "ref" tag

parent 431ae784
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,8 @@ class Util:
for nb in G.neighbors(node):
if "name" in G[node][nb][0]:
streetnames.add(G[node][nb][0]["name"])
elif "ref" in G[node][nb][0]:
streetnames.add(G[node][nb][0]["ref"])
else:
streetnames.add(None)
return list(streetnames)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment