google-maps - Google Places API 是否可以通过 maps.google.cn 域使用?
问题描述
Google Places API 是否可以通过 maps.google.cn 域使用?这适用于中国。
curl "https://maps.google.cn/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA"
但这会导致 404
The requested URL /maps/api/place/textsearch/json?query=SOME_QUERY&types=locality was not found on this server. That’s all we know.
尝试使用 http:// 但没有运气。
谢谢!
(键已从上面的示例中删除)
解决方案
不,它不可用,如果您在中国,请注意这是一个禁止领土,根据https://cloud.google.com/maps-platform/terms/maps-prohibited-territories/
推荐阅读
- javascript - 如何使用 JavaScript 数组通过 for 循环一次性检索 JSON 对象的值
- reactjs - useState 保留范围
- java - 为什么 CLASSPATH 对 Python 失败但对 RazorSQL 有效?
- java - “AFTER”不支持使用 ucannacess ALTER TABLE?
- bing-maps - Bing Maps API v8 mutipolyline(多段线)支持?
- java - 在 Java 中,我如何在自己的类中引用整个对象?
- html - 尝试添加 cookie 同意,我不断被重定向到另一个网站
- sql-server - Azure SQL - 创建没有架构的表?
- node.js - Lambda 函数完成,但对 RDS 的查询不完整
- python - 如何在 Python 中从 Azure Functions 连接到 Azure 托管 MySQL 数据库?