Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify addresses with street on node or associatedStreets relation #14

Open
Phyks opened this issue Sep 22, 2019 · 0 comments
Open

Unify addresses with street on node or associatedStreets relation #14

Phyks opened this issue Sep 22, 2019 · 0 comments

Comments

@Phyks
Copy link
Collaborator

Phyks commented Sep 22, 2019

[out:json];
nwr({{bbox}})["addr:housenumber"]["addr:street"];
convert x
  "addr:housenumber"=::,"addr:street"=::,
  type=type(),
  ::geom=center(geom());
out geom;
rel({{bbox}})[type="associatedStreet"]->.assoc;
foreach.assoc->.rel(
  node(r.rel);
  convert x
    "addr:housenumber"=t["addr:housenumber"],
    "addr:street"=rel.u(t["name"]),
    type="rel_node",
    ::geom=center(geom());
  out geom;
);

provided by Roland from Overpass API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant