{"id":7084,"date":"2014-05-19T04:13:04","date_gmt":"2014-05-19T04:13:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/19\/google-places-autocomplete-returning-non-english-results-collection-of-common-programming-errors\/"},"modified":"2014-05-19T04:13:04","modified_gmt":"2014-05-19T04:13:04","slug":"google-places-autocomplete-returning-non-english-results-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/19\/google-places-autocomplete-returning-non-english-results-collection-of-common-programming-errors\/","title":{"rendered":"Google Places Autocomplete returning non-English results-Collection of common programming errors"},"content":{"rendered":"<p>I am using the Google Places Autocomplete API to return location matches on a drop down search box.<\/p>\n<p>We noticed recently that whilst searching for &#8216;Yorkshire&#8217;, the API is returning non-English results:<\/p>\n<ul>\n<li>Yorkshire du Nord<\/li>\n<li>Yorkshire De L&#8217;Ouest<\/li>\n<li>Yorkshire Del Sur<\/li>\n<\/ul>\n<p>A quick search reveals this Stack thread, which strangely also concerns Yorkshire &#8211; Unexpected results &#8211; Google Autocomplete against yorkshire<\/p>\n<p>However, I have tried everything in that thread, and the API is still returning these results. I am pretty sure language is not the problem in this case, as despite the region name being in French\/Spanish, &#8216;United Kingdom&#8217; is still returned in English. Our original API call did not specify any language=, but adding it with en or en-GB doesn&#8217;t seem to make any difference.<\/p>\n<p>Our current query is here.<\/p>\n<p>It almost seems as if the result being returned is just plain incorrect, but I find that hard to believe. Any ideas?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am using the Google Places Autocomplete API to return location matches on a drop down search box. We noticed recently that whilst searching for &#8216;Yorkshire&#8217;, the API is returning non-English results: Yorkshire du Nord Yorkshire De L&#8217;Ouest Yorkshire Del Sur A quick search reveals this Stack thread, which strangely also concerns Yorkshire &#8211; Unexpected [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7084","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7084"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7084\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}