简体   繁体   English

如何过滤 api 地理编码谷歌地图?

[英]How do I filter api geocode google maps?

How can I filter the result of geocode API with region or bounds parameters?如何使用区域或边界参数过滤地理编码 API 的结果?

Example with filter region:过滤区域示例:

https://maps.googleapis.com/maps/api/geocode/json?address=tokyo&region=it https://maps.googleapis.com/maps/api/geocode/json?address=tokyo&region=it

Why return "Tokyo Japan" if I have filtered with parameter "region=it" (Italy)?如果我使用参数“region=it”(意大利)进行过滤,为什么要返回“Tokyo Japan”?

Example with filter bounds with the coordinates of Italy (I think):带有意大利坐标的过滤器边界示例(我认为):

https://maps.googleapis.com/maps/api/geocode/json?address=tokyo&bounds=47.092,18.7975999%7C35.4897,6.6267201 https://maps.googleapis.com/maps/api/geocode/json?address=tokyo&bounds=47.092,18.7975999%7C35.4897,6.6267201

Why return "Tokyo Japan"??为什么要返回“东京日本”?

Please Help me!请帮我!

Thanks谢谢

Chiara基亚拉

The region parameter and bounds parameter is only a bias, not a restriction. region参数和bounds参数只是一个偏置,不是限制。 Please check the Geocoding API documentation:请查看地理编码 API 文档:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 google maps api 反向地理编码? - How can I reverse geocode with google maps api? 如何在客户端上存储Google地图地理编码信息? - How do I store google maps geocode info on client? 如何将图钉添加到谷歌地图地理编码 api - How to add pins to the google maps geocode api 如何通过谷歌地图iOS API对地址进行地理编码? - How to geocode address by google maps iOS API? 如何从Google Maps API地理编码结果中过滤出虚构的位置(例如“在岩石下”,“隐藏”)? - How can I filter out fictional locations (ex. “under a rock”, “hiding”) from Google Maps API geocode results? Google Maps API地理编码同步 - Google Maps API Geocode Synchronously 如何为google.maps.Geocoder()。geocode()传递Google API密钥 - how can I pass the Google API Key for google.maps.Geocoder().geocode() 如何在信息窗口中显示地址的地址? 谷歌地图API - How can I display the address of my geocode in an info window? Google maps API 如何在Google Maps Javascript API v3中使用components参数对地址进行地理编码? - How can I geocode using the components parameter with the Google Maps Javascript API v3? 如何从Google Maps Geocode API获取JSON请求 - How to get JSON request from Google Maps Geocode API
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM