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

How to geocode using nominatim with no webserver integration ?

0

Is there help available in internet on how to geocode using nominatim php scripts ? I don't wanna install webserver and query(geocode) using http protocol.

asked 09 Feb '17, 16:33

3yK's gravatar image

3yK
11448
accept rate: 0%

edited 09 Feb '17, 16:33

1

Please don't cross-post on several forums. (https://github.com/twain47/Nominatim/issues/627 )

(09 Feb '17, 22:48) mtmail

One Answer:

2

This is not really a Nominatim specific question; if you have a little experience with PHP you can come up with generic answers to your question. For example, if you have a working Nominatim installation with the database loaded and all, you could run this from Nominatim's website directory:

php -r '$_GET["q"]="karlsruhe"; $_GET["format"]="jsonv2"; include("search.php");'

to call the standard search script and feed it with the search term "karlsruhe" and request a JSON response. Of course that's just a quick hack, and you would probably take search.php and modify it slightly so that it takes its search string from a file or directly from stdin.

From your other questions it appears that you might hope for a nicely documented, no-programming-required solution that will give you instant satisfaction. I am afraid such a solution does not exist; you will have to at least spend a little time reading up on PHP basics if you want to succeed.

answered 09 Feb '17, 17:40

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Source code available on GitHub .