Unexpected Results - Google Autocomplete vs. Yorkshire

I get unexpected results against Yorkshire using the Google Maps AutoComplete API. I filtered the results to display only the UK regions. Please help me

The following are the results that I get while searching for Yorkshire:

  • Yorkshire du Nord, Royum ​​Uni
  • Yorkshire East, Reynaud Unido
  • Yorkshire del Sur, Reynaud-Unido

Below is the code:

<script src="http://maps.google.com/maps?file=api&v=2&key=MYGooGleAPiKey" type="text/javascript"></script><script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&libraries=places&language=en"></script><script>
$(function() {

    var options = {
        types: ['(regions)'],
        componentRestrictions: {country: 'uk'},
        region: ['(GB)']
    };

    var autocomplete = new google.maps.places.Autocomplete($("#txt_search")[0], options);

    google.maps.event.addListener(autocomplete, 'place_changed', function() {
        var place = autocomplete.getPlace();
        //console.log(place.address_components);
    });
});</script> 
+5
source share
2 answers

There seems to be a bug in the API, see https://code.google.com/p/gmaps-api-issues/issues/detail?id=8619 and star if you want them to fix it.

+1
source

All Articles