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

Own Nominatim install, no map shown

0

I just created a Nominatim server. Everything seemed to have gone OK, and I can lookup addresses. The result is the details of the address, but no map of the address gets shown. Also when you click the reverse lookup link, all you get is an empty page. Note though that reverse lookup using an xml query works!)

Any ideas what is wrong?

The main Nominatim page can be found at: http://54.200.226.228/nominatim/. Sample reverse xml lookup: http://54.200.226.228/nominatim/reverse.php?format=xml&lat=41.8905556&lon=12.4883333&zoom=18&addressdetails=1

asked 18 Jan '17, 13:42

Hayo%20Baan's gravatar image

Hayo Baan
16112
accept rate: 0%

edited 18 Jan '17, 13:43


One Answer:

2

I think that gets caused by the line json_encode($aNominatimMapInit, JSON_PRETTY_PRINT) in lib/template/search-html.php. It returns an empty string, at least I don't seen any output in the HTML in my browser.

The option JSON_PRETTY_PRINT got added in PHP version 5.4.0. Are you running a PHP version older than that?

Do you see any error message in the webserver (nginx) error log?

answered 18 Jan '17, 13:57

mtmail's gravatar image

mtmail
4.8k1574
accept rate: 27%

1

Awesome!!! That was it! The system is was on 5.3.29 as that was the version that I got with installing php-pgsql. However, I'm now using php56-pgsql and all is working fine (after some effort in getting it configured right).

THANKS!

(18 Jan '17, 15:00) Hayo Baan

Source code available on GitHub .