To do autocomplete in China, I referenced the Chinese Google Maps Api, as suggested in the documentation .
When he called to get the autocomplete results, I see that he is making the requests correctly: http://maps.google.cn/maps/api/js/AuthenticationService.Authenticate ? ...
... but then it goes to: https://maps.googleapis.com/maps/api/js/AutocompletionService.GetPredictions ? ...
... which cannot be completed when the website is used in China, because this domain is blocked in China.
See the plunker demo (press F12, open the Network tab, and view the prompts as you type). Apparently SO questions with plunkr links require code, so here is the script link I use:
<script type="text/javascript" src="http://maps.google.cn/maps/api/js?libraries=places&sensor=false"></script>
Here is a screenshot that shows the problem:
Here's the bug report submitted by Google, which seems to look good to them all.
Am I doing something wrong? Can someone please confirm that they see the same behavior as me?
No one has answered this question yet.
See related questions:
Source: https://habr.com/ru/post/982999/More articles:Building a seat map with wings for an airplane - jquery`operator in OCaml - ocamlList of voice commands that run heart rate check - androidWhat is the cleanest way to implement CRUD workflow in R Shiny? - rHow to set exit code when an exception occurs - powershellAndroid Studio creates debug apk but does not deploy / run on device - androidHow to remove broken links in Sitecore - sitecoreWhy does starting my globally related npm package just open the bin file? - node.jsiOS8 Swift UISearchController hides navigation bar - headerUnable to connect to a Rails server running on EC2 from the public IP address - ruby-on-railsAll Articles