Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
1  
The process you are referring to is commonly known as 'autocomplete' –  Taylor H. Feb 10 '13 at 23:21
1  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.