Is it OK to use the maps.google.cn API outside of China?

匿名 (未验证) 提交于 2019-12-03 01:09:02

问题:

Google Maps is available in China per their documentation:

The Google Maps APIs are served within China from the domain maps.google.cn. This domain does not support https. When making requests to the Google Maps APIs from China, please replace https://maps.googleapis.com with http://maps.google.cn.

I have tested this outside China without any issues, however I can't find any documentation that prohibit developers from using http://maps.google.cn outside of china. Does anyone knows about any restrictions?

回答1:

The answer is already stated in that description. The "https://maps.googleapis.com" or simply "https" is not supported in the China. That is why you need to use "http" and not "https". There is no problem with that outside of China because we can still access that http://maps.google.cn. The only issue is http is not a secured and the data is not encrypted, and it can be intercepted by third parties to gather data being passed between the two systems.

So if you are not in China, it is better to use the https://maps.googleapis.com. The http://maps.google.cn is only for the people who wants to use Google Map that is live in China.

Hope this information helps you.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!