如何限制谷歌地图API找到特定国家和城市的地方呢? [英] how to restrict google map api to find places within a specific country and city both?

查看:292
本文介绍了如何限制谷歌地图API找到特定国家和城市的地方呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有许多网站搜索很多,但没有发现任何相关的东西。如果有人帮助我,我将非常感激。 使用 cs#ComponentFilteringrel =nofollow>组件过滤器。这将完成你的任务。

但它有局限性。你可以一次只限制一个国家(你不能限制多个国家,但你可以通过其他方式触发它)



演示。演示是自我解释。在演示中,您只能在文本框中找到 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆