当前位置:   article > 正文

SpringBoot 获取省市县(阿里云里面相关接口)

SpringBoot 获取省市县(阿里云里面相关接口)
  1. <dependency>
  2. <groupId>org.projectlombok</groupId>
  3. <artifactId>lombok</artifactId>
  4. </dependency>
  5. <dependency>
  6. <groupId>io.swagger</groupId>
  7. <artifactId>swagger-annotations</artifactId>
  8. <version>1.5.13</version>
  9. </dependency>
  10. <dependency>
  11. <groupId>com.alibaba</groupId>
  12. <artifactId>fastjson</artifactId>
  13. <version>1.2.79</version>
  14. </dependency>
  15. <dependency>
  16. <groupId>org.apache.commons</groupId>
  17. <artifactId>commons-lang3</artifactId>
  18. <version>3.9</version>
  19. </dependency>
  20. <dependency>
  21. <groupId>org.apache.httpcomponents</groupId>
  22. <artifactId>httpclient</artifactId>
  23. <version>4.5.13</version>
  24. </dependency>

 

  1. package com.example.demo.controller;
  2. import com.alibaba.fastjson.JSONObject;
  3. import com.example.demo.util.HttpUtils;
  4. import io.swagger.annotations.ApiOperation;
  5. import org.apache.http.HttpResponse;
  6. import org.apache.http.util.EntityUtils;
  7. import org.springframework.beans.factory.annotation.Value;
  8. import org.springframework.web.bind.annotation.GetMapping;
  9. import org.springframework.web.bind.annotation.RequestMapping;
  10. import org.springframework.web.bind.annotation.RequestParam;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import java.util.HashMap;
  13. import java.util.Map;
  14. @RestController
  15. @RequestMapping("/test")
  16. public class AddressController {
  17. @Value("${administrativeRegion.code}")
  18. private String Code;
  19. @GetMapping("/searchArea")
  20. @ApiOperation("用户获取收货地址省市县")
  21. public JSONObject searchArea(
  22. @RequestParam(name = "provinceId", required = false, defaultValue = "") String provinceId,
  23. @RequestParam(name = "cityId", required = false, defaultValue = "") String cityId,
  24. @RequestParam(name = "countyId", required = false, defaultValue = "") String countyId,
  25. @RequestParam(name = "townId", required = false, defaultValue = "") String townId,
  26. @RequestParam(name = "villageId", required = false, defaultValue = "") String villageId) {
  27. String host = "https://areasel.market.alicloudapi.com";
  28. String path = "/v1/area/search";
  29. String method = "GET";
  30. String appcode = Code;
  31. Map<String, String> headers = new HashMap<>();
  32. headers.put("Authorization", "APPCODE " + appcode);
  33. Map<String, String> querys = new HashMap<>();
  34. querys.put("provinceId", provinceId);
  35. querys.put("cityId", cityId);
  36. querys.put("countyId", countyId);
  37. querys.put("townId", townId);
  38. querys.put("villageId", villageId);
  39. JSONObject parse = null;
  40. try {
  41. HttpResponse response = HttpUtils.doGet(host, path, method, headers, querys);
  42. // 如果需要获取response的body,可以使用下面这行代码
  43. String string = EntityUtils.toString(response.getEntity());
  44. parse = JSONObject.parseObject(string);
  45. } catch (Exception e) {
  46. e.printStackTrace();
  47. }
  48. return parse;
  49. }
  50. }
  1. package com.example.demo.util;
  2. import org.apache.commons.lang3.StringUtils;
  3. import org.apache.http.HttpResponse;
  4. import org.apache.http.NameValuePair;
  5. import org.apache.http.client.HttpClient;
  6. import org.apache.http.client.entity.UrlEncodedFormEntity;
  7. import org.apache.http.client.methods.HttpDelete;
  8. import org.apache.http.client.methods.HttpGet;
  9. import org.apache.http.client.methods.HttpPost;
  10. import org.apache.http.client.methods.HttpPut;
  11. import org.apache.http.conn.ClientConnectionManager;
  12. import org.apache.http.conn.scheme.Scheme;
  13. import org.apache.http.conn.scheme.SchemeRegistry;
  14. import org.apache.http.conn.ssl.SSLSocketFactory;
  15. import org.apache.http.entity.ByteArrayEntity;
  16. import org.apache.http.entity.StringEntity;
  17. import org.apache.http.impl.client.DefaultHttpClient;
  18. import org.apache.http.message.BasicNameValuePair;
  19. import javax.net.ssl.SSLContext;
  20. import javax.net.ssl.TrustManager;
  21. import javax.net.ssl.X509TrustManager;
  22. import java.io.UnsupportedEncodingException;
  23. import java.net.URLEncoder;
  24. import java.security.KeyManagementException;
  25. import java.security.NoSuchAlgorithmException;
  26. import java.security.cert.X509Certificate;
  27. import java.util.ArrayList;
  28. import java.util.List;
  29. import java.util.Map;
  30. public class HttpUtils {
  31. /**
  32. * get
  33. *
  34. * @param host
  35. * @param path
  36. * @param method
  37. * @param headers
  38. * @param querys
  39. * @return
  40. * @throws Exception
  41. */
  42. public static HttpResponse doGet(String host, String path, String method,
  43. Map<String, String> headers,
  44. Map<String, String> querys)
  45. throws Exception {
  46. HttpClient httpClient = wrapClient(host);
  47. HttpGet request = new HttpGet(buildUrl(host, path, querys));
  48. for (Map.Entry<String, String> e : headers.entrySet()) {
  49. request.addHeader(e.getKey(), e.getValue());
  50. }
  51. return httpClient.execute(request);
  52. }
  53. /**
  54. * post form
  55. *
  56. * @param host
  57. * @param path
  58. * @param method
  59. * @param headers
  60. * @param querys
  61. * @param bodys
  62. * @return
  63. * @throws Exception
  64. */
  65. public static HttpResponse doPost(String host, String path, String method,
  66. Map<String, String> headers,
  67. Map<String, String> querys,
  68. Map<String, String> bodys)
  69. throws Exception {
  70. HttpClient httpClient = wrapClient(host);
  71. HttpPost request = new HttpPost(buildUrl(host, path, querys));
  72. for (Map.Entry<String, String> e : headers.entrySet()) {
  73. request.addHeader(e.getKey(), e.getValue());
  74. }
  75. if (bodys != null) {
  76. List<NameValuePair> nameValuePairList = new ArrayList<NameValuePair>();
  77. for (String key : bodys.keySet()) {
  78. nameValuePairList.add(new BasicNameValuePair(key, bodys.get(key)));
  79. }
  80. UrlEncodedFormEntity formEntity = new UrlEncodedFormEntity(nameValuePairList, "utf-8");
  81. formEntity.setContentType("application/x-www-form-urlencoded; charset=UTF-8");
  82. request.setEntity(formEntity);
  83. }
  84. return httpClient.execute(request);
  85. }
  86. /**
  87. * Post String
  88. *
  89. * @param host
  90. * @param path
  91. * @param method
  92. * @param headers
  93. * @param querys
  94. * @param body
  95. * @return
  96. * @throws Exception
  97. */
  98. public static HttpResponse doPost(String host, String path, String method,
  99. Map<String, String> headers,
  100. Map<String, String> querys,
  101. String body)
  102. throws Exception {
  103. HttpClient httpClient = wrapClient(host);
  104. HttpPost request = new HttpPost(buildUrl(host, path, querys));
  105. for (Map.Entry<String, String> e : headers.entrySet()) {
  106. request.addHeader(e.getKey(), e.getValue());
  107. }
  108. if (StringUtils.isNotBlank(body)) {
  109. request.setEntity(new StringEntity(body, "utf-8"));
  110. }
  111. return httpClient.execute(request);
  112. }
  113. /**
  114. * Post stream
  115. *
  116. * @param host
  117. * @param path
  118. * @param method
  119. * @param headers
  120. * @param querys
  121. * @param body
  122. * @return
  123. * @throws Exception
  124. */
  125. public static HttpResponse doPost(String host, String path, String method,
  126. Map<String, String> headers,
  127. Map<String, String> querys,
  128. byte[] body)
  129. throws Exception {
  130. HttpClient httpClient = wrapClient(host);
  131. HttpPost request = new HttpPost(buildUrl(host, path, querys));
  132. for (Map.Entry<String, String> e : headers.entrySet()) {
  133. request.addHeader(e.getKey(), e.getValue());
  134. }
  135. if (body != null) {
  136. request.setEntity(new ByteArrayEntity(body));
  137. }
  138. return httpClient.execute(request);
  139. }
  140. /**
  141. * Put String
  142. * @param host
  143. * @param path
  144. * @param method
  145. * @param headers
  146. * @param querys
  147. * @param body
  148. * @return
  149. * @throws Exception
  150. */
  151. public static HttpResponse doPut(String host, String path, String method,
  152. Map<String, String> headers,
  153. Map<String, String> querys,
  154. String body)
  155. throws Exception {
  156. HttpClient httpClient = wrapClient(host);
  157. HttpPut request = new HttpPut(buildUrl(host, path, querys));
  158. for (Map.Entry<String, String> e : headers.entrySet()) {
  159. request.addHeader(e.getKey(), e.getValue());
  160. }
  161. if (StringUtils.isNotBlank(body)) {
  162. request.setEntity(new StringEntity(body, "utf-8"));
  163. }
  164. return httpClient.execute(request);
  165. }
  166. /**
  167. * Put stream
  168. * @param host
  169. * @param path
  170. * @param method
  171. * @param headers
  172. * @param querys
  173. * @param body
  174. * @return
  175. * @throws Exception
  176. */
  177. public static HttpResponse doPut(String host, String path, String method,
  178. Map<String, String> headers,
  179. Map<String, String> querys,
  180. byte[] body)
  181. throws Exception {
  182. HttpClient httpClient = wrapClient(host);
  183. HttpPut request = new HttpPut(buildUrl(host, path, querys));
  184. for (Map.Entry<String, String> e : headers.entrySet()) {
  185. request.addHeader(e.getKey(), e.getValue());
  186. }
  187. if (body != null) {
  188. request.setEntity(new ByteArrayEntity(body));
  189. }
  190. return httpClient.execute(request);
  191. }
  192. /**
  193. * Delete
  194. *
  195. * @param host
  196. * @param path
  197. * @param method
  198. * @param headers
  199. * @param querys
  200. * @return
  201. * @throws Exception
  202. */
  203. public static HttpResponse doDelete(String host, String path, String method,
  204. Map<String, String> headers,
  205. Map<String, String> querys)
  206. throws Exception {
  207. HttpClient httpClient = wrapClient(host);
  208. HttpDelete request = new HttpDelete(buildUrl(host, path, querys));
  209. for (Map.Entry<String, String> e : headers.entrySet()) {
  210. request.addHeader(e.getKey(), e.getValue());
  211. }
  212. return httpClient.execute(request);
  213. }
  214. private static String buildUrl(String host, String path, Map<String, String> querys) throws UnsupportedEncodingException {
  215. StringBuilder sbUrl = new StringBuilder();
  216. sbUrl.append(host);
  217. if (!StringUtils.isBlank(path)) {
  218. sbUrl.append(path);
  219. }
  220. if (null != querys) {
  221. StringBuilder sbQuery = new StringBuilder();
  222. for (Map.Entry<String, String> query : querys.entrySet()) {
  223. if (0 < sbQuery.length()) {
  224. sbQuery.append("&");
  225. }
  226. if (StringUtils.isBlank(query.getKey()) && !StringUtils.isBlank(query.getValue())) {
  227. sbQuery.append(query.getValue());
  228. }
  229. if (!StringUtils.isBlank(query.getKey())) {
  230. sbQuery.append(query.getKey());
  231. if (!StringUtils.isBlank(query.getValue())) {
  232. sbQuery.append("=");
  233. sbQuery.append(URLEncoder.encode(query.getValue(), "utf-8"));
  234. }
  235. }
  236. }
  237. if (0 < sbQuery.length()) {
  238. sbUrl.append("?").append(sbQuery);
  239. }
  240. }
  241. return sbUrl.toString();
  242. }
  243. private static HttpClient wrapClient(String host) {
  244. HttpClient httpClient = new DefaultHttpClient();
  245. if (host.startsWith("https://")) {
  246. sslClient(httpClient);
  247. }
  248. return httpClient;
  249. }
  250. private static void sslClient(HttpClient httpClient) {
  251. try {
  252. SSLContext ctx = SSLContext.getInstance("TLS");
  253. X509TrustManager tm = new X509TrustManager() {
  254. public X509Certificate[] getAcceptedIssuers() {
  255. return null;
  256. }
  257. public void checkClientTrusted(X509Certificate[] xcs, String str) {
  258. }
  259. public void checkServerTrusted(X509Certificate[] xcs, String str) {
  260. }
  261. };
  262. ctx.init(null, new TrustManager[] { tm }, null);
  263. SSLSocketFactory ssf = new SSLSocketFactory(ctx);
  264. ssf.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
  265. ClientConnectionManager ccm = httpClient.getConnectionManager();
  266. SchemeRegistry registry = ccm.getSchemeRegistry();
  267. registry.register(new Scheme("https", 443, ssf));
  268. } catch (KeyManagementException ex) {
  269. throw new RuntimeException(ex);
  270. } catch (NoSuchAlgorithmException ex) {
  271. throw new RuntimeException(ex);
  272. }
  273. }
  274. }

 

  1. {
  2. "msg": "成功",
  3. "code": 200,
  4. "data": {
  5. "list": [
  6. {
  7. "townname": "东华门街道办事处",
  8. "provincename": "北京市",
  9. "countyid": "110101000000",
  10. "cityname": "市辖区",
  11. "id": 1,
  12. "cityid": "110100000000",
  13. "townid": "110101001000",
  14. "provinceid": "110000",
  15. "countyname": "东城区",
  16. "villageid": "110101001001",
  17. "villagename": "多福巷社区"
  18. },
  19. {
  20. "townname": "劝业场街道",
  21. "provincename": "天津市",
  22. "countyid": "120101000000",
  23. "cityname": "市辖区",
  24. "id": 2,
  25. "cityid": "120100000000",
  26. "townid": "120101001000",
  27. "provinceid": "120000",
  28. "countyname": "和平区",
  29. "villageid": "120101001001",
  30. "villagename": "花园路社区"
  31. },
  32. {
  33. "townname": "建北街道办事处",
  34. "provincename": "河北省",
  35. "countyid": "130102000000",
  36. "cityname": "石家庄市",
  37. "id": 3,
  38. "cityid": "130100000000",
  39. "townid": "130102001000",
  40. "provinceid": "130000",
  41. "countyname": "长安区",
  42. "villageid": "130102001001",
  43. "villagename": "棉一社区"
  44. },
  45. {
  46. "townname": "坞城街道办事处",
  47. "provincename": "山西省",
  48. "countyid": "140105000000",
  49. "cityname": "太原市",
  50. "id": 4,
  51. "cityid": "140100000000",
  52. "townid": "140105001000",
  53. "provinceid": "140000",
  54. "countyname": "小店区",
  55. "villageid": "140105001001",
  56. "villagename": "师范街社区"
  57. },
  58. {
  59. "townname": "海拉尔东路街道办事处",
  60. "provincename": "内蒙古自治区",
  61. "countyid": "150102000000",
  62. "cityname": "呼和浩特市",
  63. "id": 5,
  64. "cityid": "150100000000",
  65. "townid": "150102001000",
  66. "provinceid": "150000",
  67. "countyname": "新城区",
  68. "villageid": "150102001001",
  69. "villagename": "公主府社区"
  70. },
  71. {
  72. "townname": "浑河湾街道",
  73. "provincename": "辽宁省",
  74. "countyid": "210102000000",
  75. "cityname": "沈阳市",
  76. "id": 6,
  77. "cityid": "210100000000",
  78. "townid": "210102001000",
  79. "provinceid": "210000",
  80. "countyname": "和平区",
  81. "villageid": "210102001002",
  82. "villagename": "水源地社区"
  83. },
  84. {
  85. "townname": "南岭街道办事处",
  86. "provincename": "吉林省",
  87. "countyid": "220102000000",
  88. "cityname": "长春市",
  89. "id": 7,
  90. "cityid": "220100000000",
  91. "townid": "220102001000",
  92. "provinceid": "220000",
  93. "countyname": "南关区",
  94. "villageid": "220102001001",
  95. "villagename": "华阳社区"
  96. },
  97. {
  98. "townname": "兆麟街道办事处",
  99. "provincename": "黑龙江省",
  100. "countyid": "230102000000",
  101. "cityname": "哈尔滨市",
  102. "id": 8,
  103. "cityid": "230100000000",
  104. "townid": "230102001000",
  105. "provinceid": "230000",
  106. "countyname": "道里区",
  107. "villageid": "230102001001",
  108. "villagename": "省报社社区"
  109. },
  110. {
  111. "townname": "南京东路街道",
  112. "provincename": "上海市",
  113. "countyid": "310101000000",
  114. "cityname": "市辖区",
  115. "id": 9,
  116. "cityid": "310100000000",
  117. "townid": "310101002000",
  118. "provinceid": "310000",
  119. "countyname": "黄浦区",
  120. "villageid": "310101002001",
  121. "villagename": "云南中路"
  122. },
  123. {
  124. "townname": "梅园新村街道",
  125. "provincename": "江苏省",
  126. "countyid": "320102000000",
  127. "cityname": "南京市",
  128. "id": 10,
  129. "cityid": "320100000000",
  130. "townid": "320102002000",
  131. "provinceid": "320000",
  132. "countyname": "玄武区",
  133. "villageid": "320102002001",
  134. "villagename": "梅园新村社区"
  135. },
  136. {
  137. "townname": "清波街道",
  138. "provincename": "浙江省",
  139. "countyid": "330102000000",
  140. "cityname": "杭州市",
  141. "id": 11,
  142. "cityid": "330100000000",
  143. "townid": "330102001000",
  144. "provinceid": "330000",
  145. "countyname": "上城区",
  146. "villageid": "330102001051",
  147. "villagename": "清波门社区"
  148. },
  149. {
  150. "townname": "明光路街道",
  151. "provincename": "安徽省",
  152. "countyid": "340102000000",
  153. "cityname": "合肥市",
  154. "id": 12,
  155. "cityid": "340100000000",
  156. "townid": "340102001000",
  157. "provinceid": "340000",
  158. "countyname": "瑶海区",
  159. "villageid": "340102001001",
  160. "villagename": "填海巷社区"
  161. },
  162. {
  163. "townname": "鼓东街道",
  164. "provincename": "福建省",
  165. "countyid": "350102000000",
  166. "cityname": "福州市",
  167. "id": 13,
  168. "cityid": "350100000000",
  169. "townid": "350102001000",
  170. "provinceid": "350000",
  171. "countyname": "鼓楼区",
  172. "villageid": "350102001001",
  173. "villagename": "中山社区"
  174. },
  175. {
  176. "townname": "公园街道办事处",
  177. "provincename": "江西省",
  178. "countyid": "360102000000",
  179. "cityname": "南昌市",
  180. "id": 14,
  181. "cityid": "360100000000",
  182. "townid": "360102001000",
  183. "provinceid": "360000",
  184. "countyname": "东湖区",
  185. "villageid": "360102001001",
  186. "villagename": "上营坊社区"
  187. },
  188. {
  189. "townname": "解放路街道办事处",
  190. "provincename": "山东省",
  191. "countyid": "370102000000",
  192. "cityname": "济南市",
  193. "id": 15,
  194. "cityid": "370100000000",
  195. "townid": "370102001000",
  196. "provinceid": "370000",
  197. "countyname": "历下区",
  198. "villageid": "370102001002",
  199. "villagename": "解放桥社区"
  200. },
  201. {
  202. "townname": "林山寨街道办事处",
  203. "provincename": "河南省",
  204. "countyid": "410102000000",
  205. "cityname": "郑州市",
  206. "id": 16,
  207. "cityid": "410100000000",
  208. "townid": "410102001000",
  209. "provinceid": "410000",
  210. "countyname": "中原区",
  211. "villageid": "410102001001",
  212. "villagename": "邮电院社区"
  213. },
  214. {
  215. "townname": "大智街办事处",
  216. "provincename": "湖北省",
  217. "countyid": "420102000000",
  218. "cityname": "武汉市",
  219. "id": 17,
  220. "cityid": "420100000000",
  221. "townid": "420102002000",
  222. "provinceid": "420000",
  223. "countyname": "江岸区",
  224. "villageid": "420102002003",
  225. "villagename": "保成社区"
  226. },
  227. {
  228. "townname": "文艺路街道",
  229. "provincename": "湖南省",
  230. "countyid": "430102000000",
  231. "cityname": "长沙市",
  232. "id": 18,
  233. "cityid": "430100000000",
  234. "townid": "430102001000",
  235. "provinceid": "430000",
  236. "countyname": "芙蓉区",
  237. "villageid": "430102001001",
  238. "villagename": "识字里社区"
  239. },
  240. {
  241. "townname": "沙面街道",
  242. "provincename": "广东省",
  243. "countyid": "440103000000",
  244. "cityname": "广州市",
  245. "id": 19,
  246. "cityid": "440100000000",
  247. "townid": "440103001000",
  248. "provinceid": "440000",
  249. "countyname": "荔湾区",
  250. "villageid": "440103001101",
  251. "villagename": "翠洲社区"
  252. },
  253. {
  254. "townname": "民生街道办事处",
  255. "provincename": "广西壮族自治区",
  256. "countyid": "450102000000",
  257. "cityname": "南宁市",
  258. "id": 20,
  259. "cityid": "450100000000",
  260. "townid": "450102001000",
  261. "provinceid": "450000",
  262. "countyname": "兴宁区",
  263. "villageid": "450102001003",
  264. "villagename": "兴宁社区"
  265. },
  266. {
  267. "townname": "秀英街道办事处",
  268. "provincename": "海南省",
  269. "countyid": "460105000000",
  270. "cityname": "海口市",
  271. "id": 21,
  272. "cityid": "460100000000",
  273. "townid": "460105001000",
  274. "provinceid": "460000",
  275. "countyname": "秀英区",
  276. "villageid": "460105001001",
  277. "villagename": "秀华社区"
  278. },
  279. {
  280. "townname": "高笋塘街道办事处",
  281. "provincename": "重庆市",
  282. "countyid": "500101000000",
  283. "cityname": "市辖区",
  284. "id": 22,
  285. "cityid": "500100000000",
  286. "townid": "500101001000",
  287. "provinceid": "500000",
  288. "countyname": "万州区",
  289. "villageid": "500101001001",
  290. "villagename": "东方广场社区"
  291. },
  292. {
  293. "townname": "督院街街道办事处",
  294. "provincename": "四川省",
  295. "countyid": "510104000000",
  296. "cityname": "成都市",
  297. "id": 23,
  298. "cityid": "510100000000",
  299. "townid": "510104020000",
  300. "provinceid": "510000",
  301. "countyname": "锦江区",
  302. "villageid": "510104020007",
  303. "villagename": "青石桥社区"
  304. },
  305. {
  306. "townname": "后巢乡",
  307. "provincename": "贵州省",
  308. "countyid": "520102000000",
  309. "cityname": "贵阳市",
  310. "id": 24,
  311. "cityid": "520100000000",
  312. "townid": "520102200000",
  313. "provinceid": "520000",
  314. "countyname": "南明区",
  315. "villageid": "520102200001",
  316. "villagename": "山水黔城"
  317. },
  318. {
  319. "townname": "华山街道办事处",
  320. "provincename": "云南省",
  321. "countyid": "530102000000",
  322. "cityname": "昆明市",
  323. "id": 25,
  324. "cityid": "530100000000",
  325. "townid": "530102001000",
  326. "provinceid": "530000",
  327. "countyname": "五华区",
  328. "villageid": "530102001001",
  329. "villagename": "翠湖西路社区"
  330. },
  331. {
  332. "townname": "八廓街道办事处",
  333. "provincename": "西藏自治区",
  334. "countyid": "540102000000",
  335. "cityname": "拉萨市",
  336. "id": 26,
  337. "cityid": "540100000000",
  338. "townid": "540102002000",
  339. "provinceid": "540000",
  340. "countyname": "城关区",
  341. "villageid": "540102002001",
  342. "villagename": "绕赛社区"
  343. },
  344. {
  345. "townname": "西一路街道办事处",
  346. "provincename": "陕西省",
  347. "countyid": "610102000000",
  348. "cityname": "西安市",
  349. "id": 27,
  350. "cityid": "610100000000",
  351. "townid": "610102001000",
  352. "provinceid": "610000",
  353. "countyname": "新城区",
  354. "villageid": "610102001001",
  355. "villagename": "民乐社区"
  356. },
  357. {
  358. "townname": "酒泉路街道",
  359. "provincename": "甘肃省",
  360. "countyid": "620102000000",
  361. "cityname": "兰州市",
  362. "id": 28,
  363. "cityid": "620100000000",
  364. "townid": "620102001000",
  365. "provinceid": "620000",
  366. "countyname": "城关区",
  367. "villageid": "620102001001",
  368. "villagename": "畅家巷社区"
  369. },
  370. {
  371. "townname": "东关大街街道办事处",
  372. "provincename": "青海省",
  373. "countyid": "630102000000",
  374. "cityname": "西宁市",
  375. "id": 29,
  376. "cityid": "630100000000",
  377. "townid": "630102001000",
  378. "provinceid": "630000",
  379. "countyname": "城东区",
  380. "villageid": "630102001001",
  381. "villagename": "北关社区"
  382. },
  383. {
  384. "townname": "凤凰北街街道办事处",
  385. "provincename": "宁夏回族自治区",
  386. "countyid": "640104000000",
  387. "cityname": "银川市",
  388. "id": 30,
  389. "cityid": "640100000000",
  390. "townid": "640104001000",
  391. "provinceid": "640000",
  392. "countyname": "兴庆区",
  393. "villageid": "640104001002",
  394. "villagename": "崇安社区"
  395. },
  396. {
  397. "townname": "燕儿窝街道",
  398. "provincename": "新疆维吾尔自治区",
  399. "countyid": "650102000000",
  400. "cityname": "乌鲁木齐市",
  401. "id": 31,
  402. "cityid": "650100000000",
  403. "townid": "650102002000",
  404. "provinceid": "650000",
  405. "countyname": "天山区",
  406. "villageid": "650102002002",
  407. "villagename": "燕儿窝南社区"
  408. },
  409. {
  410. "townname": "市府路",
  411. "provincename": "台湾省",
  412. "countyid": "710101000000",
  413. "cityname": "台北市",
  414. "id": 32,
  415. "cityid": "710100000000",
  416. "townid": "710101001000",
  417. "provinceid": "710000",
  418. "countyname": "信义区",
  419. "villageid": "710101001001",
  420. "villagename": "嘉兴街"
  421. },
  422. {
  423. "townname": "下亚厘毕道",
  424. "provincename": "香港特别行政区",
  425. "countyid": "810101000000",
  426. "cityname": "香港岛",
  427. "id": 33,
  428. "cityid": "810100000000",
  429. "townid": "810101001000",
  430. "provinceid": "810000",
  431. "countyname": "中西区",
  432. "villageid": "810101001001",
  433. "villagename": "政府合署西座"
  434. },
  435. {
  436. "townname": "南湾湖",
  437. "provincename": "澳门特别行政区",
  438. "countyid": "820101000000",
  439. "cityname": "市辖区",
  440. "id": 34,
  441. "cityid": "820100000000",
  442. "townid": "820101001000",
  443. "provinceid": "820000",
  444. "countyname": "风顺堂区",
  445. "villageid": "820101001001",
  446. "villagename": "景大马路"
  447. }
  448. ]
  449. },
  450. "requestid": "1255962151722418176"
  451. }

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小舞很执着/article/detail/782367
推荐阅读
相关标签
  

闽ICP备14008679号