Skip to content
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

Places not found, can't use reverse geocoding API #110

Closed
UntitleDude opened this issue Apr 6, 2020 · 3 comments
Closed

Places not found, can't use reverse geocoding API #110

UntitleDude opened this issue Apr 6, 2020 · 3 comments

Comments

@UntitleDude
Copy link
Contributor

Hi !

I've tried to setup my own Nominatim reverse geocoding server and I've come into some issues. I've resolved some of them myself but I'm stuck at the API fetching in reverse geocoding. Apparently, the database is incomplete because it throws me an error at my root access (localhost/) and reverse geocoding isn't working as it's throwing that the place couldn't be found.

I've poked around the databse and places hasn't been found in the tables. Here is the logs :

root@ns39147:/home/nominatim-docker# curl "http://localhost:7070/"
<!DOCTYPE html> <html lang="en"> <head> <style> em { font-weight: bold; font-family: monospace; color: #e00404; background-color: #ffeaea; } </style> </head> <body>

Internal Server Error
    <p>Nominatim has encountered an internal error while accessing the database.
       This may happen because the database is broken or because of a bug in
       the software.</p>



<h3>Details</h3>

Database query failed

<p>
    If you feel this error is incorrect feel file an issue on
    <a href="https://github.com/openstreetmap/Nominatim/issues">Github</a>.

    Please include the error message above and the URL you used.
</p>
</body> </html>

In the docker :

postgres=# \c nominatim
You are now connected to database "nominatim" as user "postgres".
nominatim=# \dt
               List of relations
 Schema |       Name        | Type  |   Owner
--------+-------------------+-------+-----------
 public | country_name      | table | nominatim
 public | country_osm_grid  | table | nominatim
 public | gb_postcode       | table | nominatim
 public | place_boundingbox | table | nominatim
 public | spatial_ref_sys   | table | nominatim
 public | us_postcode       | table | nominatim
(6 rows)

For info I'm using nominatim-docker 3.4 which uses postgres 11 and postgis 2.5. The OSM files I've used are from geofabrik : Nord-pas-de-calais (a region of France), Monaco, and Finland. All don't work. The only modifications I've done can be found there :
#108
#109

My question is : what am I missing to get the reverse geocoding API to work ?

Thanks for your help :)

@UntitleDude
Copy link
Contributor Author

UntitleDude commented Apr 9, 2020

EDIT : It works without the rm -rf apparently, so the fault is mine. I'm closing it

@mtmail
Copy link
Contributor

mtmail commented Apr 9, 2020

@UntitleDude Also have a look at the new #103 script if you're unsure the import and table setup finished.

@UntitleDude
Copy link
Contributor Author

@mtmail Thanks a lot, I'll check this out :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants