|
Google Maps Platform API calls from google.cn domain will fail
- Hello Google Maps Platform Customer,
- We are writing to let you know that due to low usage, Google Maps Platform APIs will no longer be hosted on the google.cn domain starting February 3, 2020. An application you own has recently called a Google Maps Platform API from the google.cn domain.
- What do I need to know?
- Starting February 3, 2020, Google Maps Platform APIs will no longer be hosted from the google.cn domain. All requests to load Google Maps Platform APIs from the google.cn domain will return an error.
- What do I need to do?
- In order to avoid errors, you will need to update your project(s) that call a Google Maps Platform API from the google.cn domain to use the googleapis.com domain instead.
- You can search your code for google.cn/maps to identify where the update needs to be made. If you would like to add Chinese localization to your requests, you can use the region and language parameters.
- The following example updates a request from google.cn to googleapis.com:
- Invalid request to google.cn domain
- http://maps.google.cn/maps/api/js?key=YOUR_API_KEY
- Valid request to googleapis.com domain with region and language
- https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY®ion=CN&language=zh-CN
- Your project(s) listed below have made requests to the google.cn domain in the past week and may be affected by this change:
复制代码
好几个项目要用他,域名被墙了怎么办。 |
|