简体   繁体   English

使用Google API的国家/地区州选择列表

[英]Country State select list using google api

I have a list of countries generating dynamically from my database. 我有一个从数据库动态生成的国家/地区列表。 On change event for the select list, when I select a country, I want to generate another select list for selecting states. 在选择列表的更改事件中,当我选择一个国家时,我想生成另一个选择列表以选择州。

I am trying to achieve this using Google Maps API. 我正在尝试使用Google Maps API实现这一目标。

Can anyone tell me how to achieve this. 谁能告诉我如何实现这一目标。 Struggling from 5 hours on this. 从5个小时开始奋斗。

Thanks Phaniraj N 感谢Phaniraj N

I just tried a quick googled around and found that google seems like don't provide such service. 我只是尝试了一下快速的Google搜索,发现Google似乎不提供这种服务。

But you may use other services like: http://www.dyngeometry.com/web/WorldRegion.aspx 但是您可以使用其他服务,例如: http : //www.dyngeometry.com/web/WorldRegion.aspx

Another finding: Google places API - How to get regions of a country? 另一个发现: Google Places API-如何获得一个国家的地区?

hope it helps 希望能帮助到你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM