No postcode after adding a second region #2421
Replies: 3 comments 11 replies
-
Can you check if there's an entry for the postcode in the SELECT * FROM location_postcode WHERE country_code='za' AND postcode='0054';
place_id | 282817465
parent_place_id | 280470792
rank_search | 21
rank_address | 11
indexed_status | 0
indexed_date | 2021-08-03 17:25:43.131053
country_code | za
postcode | 0054
geometry | 0101000020E6100000C6DF440D4A5F3C40EA57B364EBC239C0 SELECT count(*) FROM location_postcode WHERE country_code='za';
773 The It might be necessary to reindex the places, too. Try one place first, for example "City of Tshwane Metropolitan Municipality" https://www.openstreetmap.org/relation/594484
|
Beta Was this translation helpful? Give feedback.
-
That's tricky. The artificial postcodes need to be updated before indexing. So when adding a file, the order of execution should be:
We should update the documentation accordingly. |
Beta Was this translation helpful? Give feedback.
-
I tried the following now using Nominatim 4.1.0:
After this is done, I have Liechtenstein data with postcodes:
|
Beta Was this translation helpful? Give feedback.
-
Hi all,
I am currently running the street map locally where I initially added UK and Ireland maps. Everything works as expected and I can reverse geocode lat/longs with no issues.
I added a second regions, South Africa to do the same reverse geocoding. I followed the steps provided in my previous discussion from here: https://www.nominatim.org/release-docs/3.6.0/admin/Advanced-Installations/#importing-multiple-regions
I managed to import South Africa map and run the update. However, running a query like this: reverse.php?format=jsonv2&lat=-25.769930&lon=28.382810&addressdetails=1&extratags=1&zoom=17
returns no post code in the address detail.
Copying and paste the very same address above to Nominatim website https://nominatim.openstreetmap.org/reverse.php?format=jsonv2&lat=-25.769930&lon=28.382810&addressdetails=1&extratags=1&zoom=17
return the correct post code in the address detail.
Did I perhaps missed a step during import?
I have also done compute postcodes but it doesn't make any difference.
Any help appreciated.
Cheers
Vini
Beta Was this translation helpful? Give feedback.
All reactions