This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Empty response for US postalcodes

0

Hi, Received empty responses for some postalcodes. Example: https://nominatim.openstreetmap.org/search?format=json&limit=1&country=united states&postalcode=98138

asked 19 Jul '18, 11:52

Rajavelu_M's gravatar image

Rajavelu_M
253454858
accept rate: 33%

edited 20 Jul '18, 08:04

3

Do you have reason to believe the post code you are looking for is indeed mapped in OSM? If not, then that would be the most logical explanation.

(19 Jul '18, 12:19) Frederik Ramm ♦

There are 0 occurrences of both postal_code=98138 and addr:postcode=98138 in the United States in the OSM database (though there are a few addr:postcode in Sweden and one in Singapore.

(19 Jul '18, 16:57) alester

@Frederik Ramm @alester: Thanks for your responses. I hope its valid postal code in 'Tukwila,Washington,US' & 'Seattle,Washington,US'. So i have added the same in OSM. Is it right way?

(20 Jul '18, 11:00) Rajavelu_M
1

Well, there are now two disconnected nodes with this addr:postcode, but neither has a full address, they seem to be in fairly random spots, and it seems unlikely that separate cities like downtown Seattle and Tukwila would have the same ZIP code. What's your source for this information?

(20 Jul '18, 16:47) alester
1

For reference: 5772838029 and 5772394662

(20 Jul '18, 16:48) alester
1

At least that first source does not have a compatible license, so it should not be used as a source for any OSM data. The latter two give different results for the same ZIP code, so their validity seems questionable and you'd have to do more research to decide which is more accurate.

(20 Jul '18, 17:30) alester
showing 5 of 7 show 2 more comments

Source code available on GitHub .