Replies: 3 comments 3 replies
-
Can you post the output of the following database query? (indexed_status=0 means it got indexed). select postcode, ST_AsText(geometry), indexed_date, indexed_status from location_postcode where country_code='gb' and postcode like 'S65 1Q%'; |
Beta Was this translation helpful? Give feedback.
-
Here is the output of : select postcode, ST_AsText(geometry), indexed_date, indexed_status from location_postcode where country_code='gb' and postcode like 'S65 1Q%'; postcode | st_astext | indexed_date | indexed_status Output of check-database : 2024-10-30 16:05:11: Using project directory: /srv/nominatim/nominatim-project |
Beta Was this translation helpful? Give feedback.
-
I've added some technical details to the #3572. Here I just want to add that I would consider both postcodes perfectly good answers in this situation. Reverse doesn't compute the nearest postcode for you, it returns the closest OSM object. What you see in the response is the postcode of "Selwyn Street". Given the small radius of UK postcodes, there are usually multiple postcodes that belong to one street. Nominatim will just give you one of them. |
Beta Was this translation helpful? Give feedback.
-
We are getting different UK postcode for many Lat,Long pair as compared to nominatim.opentreetmap in a server with fresh installation of nominatim full planet. Updated Database and GB postcode.
Followed all steps as mentioned @
https://nominatim.org/release-docs/latest/admin/Install-on-Ubuntu-22/
https://nominatim.org/release-docs/latest/admin/Import/
Got the following two before start of import to project directory :
wget https://www.nominatim.org/data/gb_postcode_data.sql.gz
wget https://www.nominatim.org/data/us_postcode_data.sql.gz
Software Environment :
• Nominatim version: v4.5.0
• Postgresql version: 14
• Postgis version: 3.2.0
• OS: Ubuntu Ubuntu 22.04.4 LTS
Hardware Configuration :
• RAM: 128GB
• number of CPUs: 16
• type and size of disks: 1.5TB SSD
Nominatim Configuration:
NOMINATIM_FLATNODE_FILE=/mnt/geo_lon1_04/flatfile/flatnode.file
Here is an example :
Lat : 53.4367566
Long -1.3470283
In nominatim.openstreetmap
https://nominatim.openstreetmap.org/ui/reverse.html?lat=53.4367566&lon=-1.3470283&zoom=18
Selwyn Street, Eastwood, Rawmarsh, Rotherham, South Yorkshire, England,
S65 1QN,
United Kingdom
In Self hosted :
Selwyn Street, Eastwood, Rawmarsh, Rotherham, South Yorkshire, England,
S65 1QW,
United Kingdom
The post code expected : S65 1QN
I am new to Nominatim.
Did I miss any step ? How to debug and/or resolve this ?
Beta Was this translation helpful? Give feedback.
All reactions