Google geocoding API - search in just one country

情到浓时终转凉″ 提交于 2019-12-03 16:27:30
jmm

You can add component filters in the url to constraint results. In this case you can use:

http://maps.googleapis.com/maps/api/geocode/json?address=london%c2+UK**&components=country:UK**&sensor=false

For more information about how to use component filtering see:

https://developers.google.com/maps/documentation/geocoding/intro#ComponentFiltering

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