• Resolved technicalx

    (@technicalx)


    It’s annoying to get results from countries on the other side of the world prioritised over nearby locations. If there’s an easier way to solve this I’d like to know.

    change gf-google-address-autocomplete/js/map_data.js
    line 36
    add an option near API key to let us input a country code. Or maybe let us input free text to add to the options.

            var autocomplete = new google.maps.places.Autocomplete(
                document.getElementById(inputFull),
                {
                    types: ["geocode"],
    		componentRestrictions: {country: 'AU'},
                }
            );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘please add country bias or restriction’ is closed to new replies.