如何限制谷歌地图API找到特定国家和城市的地方呢? [英] how to restrict google map api to find places within a specific country and city both?
本文介绍了如何限制谷歌地图API找到特定国家和城市的地方呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
但它有局限性。你可以一次只限制一个国家(你不能限制多个国家,但你可以通过其他方式触发它)
演示。演示是自我解释。在演示中,您只能在文本框中找到 INDIA
中的地点(您无法找到世界其他地方)。
I have search lot many sites but didn't find anything related to the same . I'll be great thankful if someone helps me.
解决方案
Use component filters. That will do your task.
But it has limitation. you could restrict only one country at a time( you cant restrict with multiple country, But you can trigger it out in some other ways)
Demo . The demo is self explanatory. In the demo, You can only find the places in INDIA
at the text box (You cant find other places in the world).
这篇关于如何限制谷歌地图API找到特定国家和城市的地方呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文