Search by city / autocomplete address in javascript

I am currently working on a web project where we should be able to get the exact addresses for the actions that users create. Thus, my idea was to implement autocomplete of the city and the address field of the search without using a map (the same as with one facebook when creating arrangements). As the type of user, he receives offers ... This will then be used to allow the user to find actions based on distance from a location specified in the same way. (This probably means I need the coordinates for addresses / cities)

I'm just wondering if there are any free frameworks that will allow me to do this.

+4
source share
3 answers

Since you want to use this information, you actually get distances (and not just autocomplete), what you are probably looking for is the Geocoding API. This is what takes addresses and turns them into coordinates. Probably the most famous of these is Google Maps. There is detailed JavaScript version information here: http://code.google.com/apis/maps/documentation/javascript/v2/services.html

There is a jquery component here that connects to this API, which will probably make things even easier for you (disclaimer: I have not actually used this library, I just found it). You can get it from here: http://code.google.com/p/geo-autocomplete/

+4
source

If Google maps aren’t right for you, check out Addrexx’s AutoFill service at http://www.addrexx.com . It will autocomplete addresses from most countries of the world and in some cases is inexpensive or free. There are direct web services or a complete solution. It will even autocomplete apartments and apartments.

I believe that it will provide you with the necessary functionality. I know this service very well since I am working on Addrexx.

+1
source

What country are you targeting?

If you are interested in finding New Zealand postal addresses with backup geocoding requests, you can use the Address Finder API for address autocompletion suggestions.

When you have a unique address identifier or latitude and longitude coordinates (X and Y), you can use the geocoding address API to find nearby addresses with crow-like distances in kilometers.

You can also narrow the places near me based on the area of ​​the limited frame / polygon using the Bound Box Address API .

You can use Googles Simple Markers to display information on a map using JavaScript.

0
source

All Articles