我正在使用 Spring 在 Java 中创建一个 Web 应用程序,在选择国家/地区时,我必须在下拉列表中填充所有州/地区/城市。是否有任何 api、web 服务或 javascript 可以实现相同的目的。
最佳答案
如Yanick this question 中指定;
Take a look at GeoNames. You can download (just about) everything they have and create your own local databases, or you can use their REST Webservice API. As an added bonus, they even have already made client libraries.
您也可以看看this .
关于java - 传递国家/地区名称时获取所有州/地区/城市,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28495929/