NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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


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?

permanent link

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
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×689

question asked: 18 Jan '17, 13:42

question was seen: 1,636 times

last updated: 18 Jan '17, 15:00

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum