I'm trying to get the addresses that do not have a postal code but have the address information the code still selects ways/relations that have the postal code set already, but I want to select those that don't exist/aren't set.
asked 18 Jul '15, 12:20 LogicalVioli... |
As you're using the wizard in overpass turbo already, simply copy the following expression to the wizard popup:
overpass turbo link: http://overpass-turbo.eu/s/auT answered 19 Jul '15, 08:50 mmd |
Maybe this example can be helpful: has-kv k="addr:city" has-kv k="addr:postcode" modv="not" regv="." This is looking for elements with addr_city=xxx and without addr:postcode. answered 18 Jul '15, 19:48 stephan75 |
A bit off topic, but please do not add the postal code information to individual addresses in e.g. Flanders, Belgium. We have a complete set of postal code boundaries and that information has to be used to get a complete address. I think the same holds e.g. for Germany.
That may be well for europe, but in Canada, canada post wants to copyright postal codes and has sued geocder.ca for building a database against it. The lawsuit was eventually dropped, but what I wanted to get at is untill we have a full data population for a street I cannot trace said polygon as it can change midway through the street