-
-
Notifications
You must be signed in to change notification settings - Fork 718
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
UK postcodes missing #980
Comments
Using the normal search |
Its the local install i am having issues with. |
@stevewolfe555 Can you check if it's an issue with spaces in the query? #927 Nominatim 3.1 has a more generic postcode handling than 3.0 and some special logic for GB postcodes was removed. Nominatim queries two sources: one is OpenStreetMap, tough of course only a fraction of addresses/businesses have a full postcode attached, the second is Ordnance Survey (postcode file on http://nominatim.org/). @JensHumrich What you see is results from the latter. We get the location from the postcode file but there's no OSM object and instead of returning a nearby it ends up un-clickable on I'll check where the GB postcode logic got lost. |
@mtmail are you also saying it will only work for business postcodes? Or will it work for residential |
The Ordnance Survey contains all GB postcodes, 1.7 million. The issue is that Nominatim doesn't handle the space correctly. So Do you see that pattern in the postcodes you tried? |
GB postcodes are optional during the http://nominatim.org/release-docs/latest/admin/Import-and-Update/ Check if they got imported into the
If not then it should be possible to import them now:
|
I'll run the update again and see what I get. |
Okay re did the install and got this. Summary of warnings:
I downloaded the files was I meant to tell it I had? |
Do you remember where you downloaded them to? The
and My instructions above (#980 (comment)) should still work to add the GB postcode data manually after an existing install. It uses temporary tables so you can run that even during production. Adding wikipedia ranking data after an install isn't possible I'm afraid. That would need a full reimport of the data. http://nominatim.org/release-docs/latest/admin/Import-and-Update/#wikipedia-rankings |
That file was there, this is what i dont understand. All the files where in the correct DIR. Could you give more detail as to this. import into the gb_postcode table, e.g. cat | psql nominatim |
Assuming you have Nominatim installed on
|
Ah that's the issue it installed into Nomination 3.1
So the scrips would not have found it.
…On Thu, 22 Mar 2018, 22:39 mtmail, ***@***.***> wrote:
Assuming you have Nominatim installed on /srv/nominatim/Nominatim and the
build directory in /srv/nominatim/build/ (that's the default in the
Ubuntu16 instructions, but you might have those in another's user home
directory which is fine).
1. login as the user who installed Nominatim. For example sudo -u
nominatim
2. This imports the *.sql file into the database zcat
/srv/nominatim/Nominatim/data/gb_postcode_data.sql.gz | psql nominatim
3. uses data from the gb_postcode table and rewrites the
location_postcode table cd /srv/nominatim/build/; utils/setup.php
--calculate-postcodes
4. login to postgresql psql nominatim
5. run the SQL query select count(*) from location_postcode where
country_code='gb';. It should say 1.7 million
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#980 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGqW9IqAiR3gp5JvO3LnSa1JDggW-wflks5thCgXgaJpZM4Svzci>
.
|
Hi I have been running utils/setup.php --calculate-postcodes for 20 + hours now and its still not completing. is there any logs i can tail to see whats going on? The server is a 8cpu 32gb ssd |
That's a surprising long time. It runs https://github.com/openstreetmap/Nominatim/blob/master/sql/update-postcodes.sql so you could check for the size of the temporary tables. |
I dropped the DB and am rebuilding it after making sure all data files where there. See how it goes this time. |
Seems too be all working now thanks guys. |
Hello,
This might be lack of understanding but should Nominatim be able to find any UK postcode via a search of it?
When I search "en10 6ad" after running the British isles install I get no results.
search.php?q=en10+6ad&polygon_geojson=1&viewbox=
But when I search other postcodes I get results, its seems to have about a 50% hit rate..
The text was updated successfully, but these errors were encountered: