I’m using Google Places Autocomplete for looking up addresses, and I want users to be able to type abbreviations for the cardinal directions in their street addresses. For example, my users have to type “north” out completely (eg 123 “north” willow lane), instead of just “n” (eg 123 “n” willow lane). Users try to type “n” “s” “e” “w” most
Tag: google-places-api
Google Maps Marker doesn’t remain draggable after setting a Custom Place using Autocomplete
So I’m trying to make a Custom Google Map where the user can either use the input (with autocomplete suggestions for places) to select the position in the map or drag the marker to select the position. When I create a map without the autocomplete feature, the marker on the map remains draggable. But once I add the autocomplete listener,
Google Autocomplete API – format output result
I’m trying to implement Google Places API, so here is my code: Google Autocomplete works fine, however I have one of requirements – only show street name & number instead of full address suggested by Google. So I can get all information by running autocomplete.getPlace() at “place_changed” event – there are no problems with that. The problem is that I
Google Places Autocomplete Force Selection
I am using the JavaScript Google places autocomplete API v3. It works fine but I was wondering if there was a way to force the selection from the autocomplete, that is input that will not accept any free form text. I looked at the docs and didn’t see such an option but figured I would ask just to be safe.