[GIS] How to implement place auto-complete using nominatim

nominatimopenstreetmap

I want to auto complete like Google Place but I don't want to use Google Place API. I got nominatim auto-complete example but it's not working in Windows 8 because it's implemented in node.js

Can anyone help me?

Best Answer

Using Nominatim for for Autocompletion might be not the best idea. If you using the osm.org nominatim Server the usage policy forbid using Nominatim for Autocompletion:

Auto-complete search: This is not yet supported by Nominatim and you must not implement such a service on the client side using the API.

Also it is not really useful to use Nominatim for autocompletion, because if you type "Ber" you would expect something like "Berlin" but Nominatim searches for places exactly known as "Ber" and suggests "Ber, Tombouctou, Timbuktu, Mali".

But there are some OpenStreetMap based geocoders with autocompletion support like Photon and Pelias (Demo). There are usage examples on the project sites.