[英]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®ion=it https://maps.googleapis.com/maps/api/geocode/json?address=tokyo®ion=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.