Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What is actually happening behind the code and how should be the code? when we search for a specifc word, will it look in the database (here it is postGIS) and lists the similar words.

share|improve this question
The process you are referring to is commonly known as 'autocomplete' – Taylor H. Feb 10 '13 at 23:21
Possible answer depending on what you're trying to do: Find n Nearest Neighbors for given Point using PostGIS? – blah238 Feb 10 '13 at 23:30
up vote 3 down vote accepted

What you are talking about is called 'autocomplete'. Google Maps API has the 'Places Library' which provides some of the functionality you are asking about. Read more about that here. However if you are planning on implementing your own using your own database then it is a much more extensive process. A good place for you to start is this guide and also there is always stackexchange questions tagged with autocomplete.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.