【问题标题】:How to restrict google places to restrict to only one country如何限制谷歌地方仅限于一个国家
【发布时间】:2015-10-15 11:02:44
【问题描述】:

我正在研究谷歌地图并使用“Google Places API”来搜索这些地方...... 我需要的是将地点限制在一个国家或一个特定地区。 如何限制谷歌地方仅限于一个国家?

谢谢你...任何答案都应该感激!

【问题讨论】:

    标签: angularjs google-places-api


    【解决方案1】:

    使用选项中的componentRestrictions 设置国家/地区限制。

    for example:
     {
       componentRestrictions: { country: 'IN' }
     }
    

    【讨论】:

      猜你喜欢
      • 2012-11-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-01-07
      • 1970-01-01
      相关资源
      最近更新 更多