Skip to content

Tag: google-places-api

Google Places Autocomplete API – Abbreviate Cardinal Direction on input

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

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.