国家气象局天气预报接口JSON完全解析

最近由于谷歌天气预报接口出现了一些小问题,没办法,只能重新写一下国家气象局天气预报接口JSON完全解析,程序包括了所有的地点,所以有些复杂

1.首先准备好要解析的json数据,方便以后写程序解析的时候,直接进行分析。如下

[html] view plain copy print ?
  1. {   "weatherinfo":  
  2.                 { <!-- 基本信息 -->    
  3.                     "city":"北京",  
  4.                     "city_en":"beijing",  
  5.                     "date_y":"2012年8月14日",  
  6.                     "date":"",  
  7.                     "week":"星期二",  
  8.                     "fchh":"18",  
  9.                     "cityid":"101010100",  
  10.                     <!-- 从今天开始到第六天的每天的天气情况,这里的温度是摄氏温度 -->  
  11.                     "temp1":"19℃~31℃",  
  12.                     "temp2":"21℃~31℃",  
  13.                     "temp3":"22℃~28℃",  
  14.                     "temp4":"20℃~28℃",  
  15.                     "temp5":"21℃~29℃",  
  16.                     "temp6":"22℃~31℃",  
  17.                     <!-- 从今天开始到第六天的每天的天气情况,这里的温度是华氏温度 -->  
  18.                     "tempF1":"66.2℉~87.8℉",  
  19.                     "tempF2":"69.8℉~87.8℉",  
  20.                     "tempF3":"71.6℉~82.4℉",  
  21.                     "tempF4":"68℉~82.4℉",  
  22.                     "tempF5":"69.8℉~84.2℉",  
  23.                     "tempF6":"71.6℉~87.8℉",  
  24.                     <!-- 天气描述 -->    
  25.                     "weather1":"阵雨转晴",  
  26.                     "weather2":"晴",  
  27.                     "weather3":"多云转雷阵雨",  
  28.                     "weather4":"雷阵雨",  
  29.                     "weather5":"多云转阴",  
  30.                     "weather6":"雷阵雨",  
  31.                     <!-- 天气描述图片序号 -->    
  32.                     "img1":"3",  
  33.                     "img2":"0",  
  34.                     "img3":"0",  
  35.                     "img4":"99",  
  36.                     "img5":"1",  
  37.                     "img6":"4",  
  38.                     "img7":"4",  
  39.                     "img8":"99",  
  40.                     "img9":"1",  
  41.                     "img10":"2",  
  42.                     "img11":"4",  
  43.                     "img12":"99",  
  44.                     "img_single":"0",  
  45.                     <!-- 图片名称 -->   
  46.                     "img_title1":"阵雨",  
  47.                     "img_title2":"晴",  
  48.                     "img_title3":"晴",  
  49.                     "img_title4":"晴",  
  50.                     "img_title5":"多云",  
  51.                     "img_title6":"雷阵雨",  
  52.                     "img_title7":"雷阵雨",  
  53.                     "img_title8":"雷阵雨",  
  54.                     "img_title9":"多云",  
  55.                     "img_title10":"阴",  
  56.                     "img_title11":"雷阵雨",  
  57.                     "img_title12":"雷阵雨",  
  58.                     "img_title_single":"晴",  
  59.                     <!-- 风速描述 -->    
  60.                     "wind1":"微风",  
  61.                     "wind2":"微风",  
  62.                     "wind3":"微风",  
  63.                     "wind4":"微风",  
  64.                     "wind5":"微风",  
  65.                     "wind6":"微风",  
  66.                     "fx1":"微风",  
  67.                     "fx2":"微风",  
  68.                     <!-- 风速级别描述 -->   
  69.                     "fl1":"小于3级",  
  70.                     "fl2":"小于3级",  
  71.                     "fl3":"小于3级",  
  72.                     "fl4":"小于3级",  
  73.                     "fl5":"小于3级",  
  74.                     "fl6":"小于3级",  
  75.                     <!-- 今天穿衣指数 -->    
  76.                     "index":"炎热",  
  77.                     "index_d":"天气炎热,建议着短衫、短裙、短裤、薄型T恤衫、敞领短袖棉衫等清凉夏季服装。",  
  78.                     <!-- 48小时穿衣指数 -->    
  79.                     "index48":"炎热",  
  80.                     "index48_d":"天气炎热,建议着短衫、短裙、短裤、薄型T恤衫、敞领短袖棉衫等清凉夏季服装。",  
  81.                     <!-- 紫外线及48小时紫外线 -->  
  82.                     "index_uv":"很强",  
  83.                     "index48_uv":"强",  
  84.                     <!-- 洗车 -->  
  85.                     "index_xc":"较不宜",  
  86.                     <!-- 旅游 -->   
  87.                     "index_tr":"适宜",  
  88.                     <!-- 舒适指数 -->  
  89.                     "index_co":"较不舒适",  
  90.                     "st1":"31",  
  91.                     "st2":"17",  
  92.                     "st3":"31",  
  93.                     "st4":"22",  
  94.                     "st5":"27",  
  95.                     "st6":"22",  
  96.                     <!-- 晨练 -->  
  97.                     "index_cl":"适宜",  
  98.                     <!-- 晾晒 -->   
  99.                     "index_ls":"极适宜",  
  100.                     <!-- 过敏 -->   
  101.                     "index_ag":"易发"  
  102.                 }  
  103. }  

2.先让大家看看我的布局,让大家知道我的这个程序是干什么呢。如下图


3.布局代码如下

[html] view plain copy print ?
  1. <?xml version="1.0" encoding="utf-8"?>  
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  
  3.     android:layout_width="fill_parent"  
  4.     android:layout_height="fill_parent"  
  5.     android:orientation="vertical" >  
  6.   
  7.     <LinearLayout  
  8.         android:layout_width="match_parent"  
  9.         android:layout_height="wrap_content" >  
  10.   
  11.         <Spinner  
  12.             android:id="@+id/spinner1"  
  13.             android:layout_width="wrap_content"  
  14.             android:layout_height="wrap_content"  
  15.             android:layout_weight="1" />  
  16.   
  17.         <Spinner  
  18.             android:id="@+id/spinner2"  
  19.             android:layout_width="wrap_content"  
  20.             android:layout_height="wrap_content"  
  21.             android:layout_weight="1" />  
  22.   
  23.         <Button  
  24.             android:id="@+id/button1"  
  25.             android:layout_width="wrap_content"  
  26.             android:layout_height="wrap_content"  
  27.             android:layout_weight="1"  
  28.             android:text="省市查询" />  
  29.     </LinearLayout>  
  30.   
  31.     <LinearLayout  
  32.         android:layout_width="match_parent"  
  33.         android:layout_height="wrap_content" >  
  34.   
  35.         <EditText  
  36.             android:id="@+id/editText1"  
  37.             android:layout_width="wrap_content"  
  38.             android:layout_height="wrap_content"  
  39.             android:layout_weight="1"  
  40.             android:ems="10"  
  41.             android:text="西安" >  
  42.   
  43.             <requestFocus />  
  44.         </EditText>  
  45.   
  46.         <Button  
  47.             android:id="@+id/button2"  
  48.             android:layout_width="wrap_content"  
  49.             android:layout_height="wrap_content"  
  50.             android:layout_weight="1"  
  51.             android:text="特殊市县查询" />  
  52.     </LinearLayout>  
  53.   
  54.     <LinearLayout  
  55.         android:layout_width="match_parent"  
  56.         android:layout_height="wrap_content" >  
  57.   
  58.         <ImageView  
  59.             android:id="@+id/imageView1"  
  60.             android:layout_width="wrap_content"  
  61.             android:layout_height="wrap_content"  
  62.             android:src="@drawable/ic_launcher" />  
  63.   
  64.         <ImageView  
  65.             android:id="@+id/imageView2"  
  66.             android:layout_width="wrap_content"  
  67.             android:layout_height="wrap_content"  
  68.             android:src="@drawable/ic_launcher" />  
  69.   
  70.         <TextView  
  71.             android:id="@+id/textView1"  
  72.             android:layout_width="wrap_content"  
  73.             android:layout_height="wrap_content"  
  74.             android:text="Large Text" />  
  75.     </LinearLayout>  
  76.   
  77.     <LinearLayout  
  78.         android:layout_width="match_parent"  
  79.         android:layout_height="wrap_content" >  
  80.   
  81.         <ImageView  
  82.             android:id="@+id/imageView3"  
  83.             android:layout_width="wrap_content"  
  84.             android:layout_height="wrap_content"  
  85.             android:src="@drawable/ic_launcher" />  
  86.   
  87.         <ImageView  
  88.             android:id="@+id/imageView4"  
  89.             android:layout_width="wrap_content"  
  90.             android:layout_height="wrap_content"  
  91.             android:src="@drawable/ic_launcher" />  
  92.   
  93.         <TextView  
  94.             android:id="@+id/textView2"  
  95.             android:layout_width="wrap_content"  
  96.             android:layout_height="wrap_content"  
  97.             android:text="Large Text" />  
  98.     </LinearLayout>  
  99.   
  100.     <LinearLayout  
  101.         android:layout_width="match_parent"  
  102.         android:layout_height="wrap_content" >  
  103.   
  104.         <ImageView  
  105.             android:id="@+id/imageView5"  
  106.             android:layout_width="wrap_content"  
  107.             android:layout_height="wrap_content"  
  108.             android:src="@drawable/ic_launcher" />  
  109.   
  110.         <ImageView  
  111.             android:id="@+id/imageView6"  
  112.             android:layout_width="wrap_content"  
  113.             android:layout_height="wrap_content"  
  114.             android:src="@drawable/ic_launcher" />  
  115.   
  116.         <TextView  
  117.             android:id="@+id/textView3"  
  118.             android:layout_width="wrap_content"  
  119.             android:layout_height="wrap_content"  
  120.             android:text="Large Text" />  
  121.     </LinearLayout>  
  122.   
  123. </LinearLayout>  

4.因为需要联网,先写上权限
[html] view plain copy print ?
  1. <uses-permission android:name="android.permission.INTERNET" />  
  2. <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />  
  3. <uses-permission android:name="android.permission.READ_PHONE_STATE" />  

5.第一个工具类文件
[java] view plain copy print ?
  1. package mars.com;  
  2.   
  3. import java.util.HashMap;  
  4. import java.util.Map;  
  5.   
  6. //这个类将所有的县都囊括在内了。  
  7. public class NameIDMap {  
  8.     private String[] allNames;  
  9.     private String[] allIDs;  
  10.     private Map<String, String> mapAllNameID;  
  11.   
  12.     public Map<String, String> getMapAllNameID() {  
  13.         return mapAllNameID;  
  14.     }  
  15.   
  16.     public NameIDMap() {  
  17.         initVar();  
  18.         for (int i = 0; i < allNames.length; i++) {  
  19.             mapAllNameID.put(allNames[i], allIDs[i]);  
  20.         }  
  21.     }  
  22.   
  23.     private void initVar() {  
  24.         mapAllNameID = new HashMap<String, String>();  
  25.         allNames = new String[] { "北京""海淀""朝阳""顺义""怀柔""通州""昌平",  
  26.                 "延庆""丰台""石景山""大兴""房山""密云""门头沟""平谷""八达岭""佛爷顶",  
  27.                 "汤河口""密云上甸子""斋堂""霞云岭""上海""闵行""宝山""川沙""嘉定",  
  28.                 "南汇""金山""青浦""松江""奉贤""崇明""陈家镇""引水船""徐家汇""浦东",  
  29.                 "天津""武清""宝坻""东丽""西青""北辰""宁河""汉沽""静海""津南",  
  30.                 "塘沽""大港""平台""蓟县""重庆""永川""合川""南川""江津""万盛",  
  31.                 "渝北""北碚""巴南""长寿""黔江""万州天城""万州龙宝""涪陵""开县""城口",  
  32.                 "云阳""巫溪""奉节""巫山""潼南""垫江""梁平""忠县""石柱""大足",  
  33.                 "荣昌""铜梁""璧山""丰都""武隆""彭水""綦江""酉阳""金佛山""秀山",  
  34.                 "沙坪坝""哈尔滨""双城""呼兰""阿城""宾县""依兰""巴彦""通河""方正",  
  35.                 "延寿""尚志""五常""木兰""齐齐哈尔""讷河""龙江""甘南""富裕""依安",  
  36.                 "拜泉""克山""克东""泰来""牡丹江""海林""穆棱""林口""绥芬河""宁安",  
  37.                 "东宁""佳木斯""汤原""抚远""桦川""桦南""同江""富锦""绥化""肇东",  
  38.                 "安达""海伦""明水""望奎""兰西""青冈""庆安""绥棱""黑河""嫩江",  
  39.                 "孙吴""逊克""五大连池""北安""大兴安岭""塔河""漠河""呼玛""呼中""新林",  
  40.                 "阿木尔""加格达奇""伊春""乌伊岭""五营""铁力""嘉荫""大庆""林甸""肇州",  
  41.                 "肇源""杜蒙""七台河""勃利""鸡西""虎林""密山""鸡东""鹤岗""绥滨",  
  42.                 "萝北""双鸭山""集贤""宝清""饶河""长春""农安""德惠""九台""榆树",  
  43.                 "双阳""吉林""舒兰""永吉""蛟河""磐石""桦甸""烟筒山""延吉""敦化",  
  44.                 "安图""汪清""和龙""天池""龙井""珲春""图们""松江""罗子沟""延边",  
  45.                 "四平""双辽""梨树""公主岭""伊通""孤家子""通化""梅河口""柳河""辉南",  
  46.                 "集安""通化县""白城""洮南""大安""镇赉""通榆""辽源""东丰""松原",  
  47.                 "乾安""前郭""长岭""扶余""白山""靖宇""临江""东岗""长白""沈阳",  
  48.                 "苏家屯""辽中""康平""法库""新民""于洪""新城子""大连""瓦房店""金州",  
  49.                 "普兰店""旅顺""长海""庄河""皮口""海洋岛""鞍山""台安""岫岩""海城",  
  50.                 "抚顺""清原""章党""本溪""本溪县""草河口""桓仁""丹东""凤城""宽甸",  
  51.                 "东港""东沟""锦州""凌海""北宁""义县""黑山""北镇""营口""大石桥",  
  52.                 "盖州""阜新""彰武""辽阳""辽阳县""灯塔""铁岭""开原""昌图""西丰",  
  53.                 "朝阳""建平""凌源""喀左""北票""羊山""建平县""盘锦""大洼""盘山",  
  54.                 "葫芦岛""建昌""绥中""兴城""呼和浩特""土默特左旗""托克托""和林格尔""清水河",  
  55.                 "呼和浩特市郊区""武川""包头""白云鄂博""满都拉""土默特右旗""固阳",  
  56.                 "达尔罕茂明安联合旗""石拐""乌海""集宁""卓资""化德""商都""希拉穆仁""兴和",  
  57.                 "凉城""察哈尔右翼前旗""察哈尔右翼中旗""察哈尔右翼后旗""四子王旗""丰镇""通辽",  
  58.                 "舍伯吐""科尔沁左翼中旗""科尔沁左翼后旗""青龙山""开鲁""库伦旗""奈曼旗""扎鲁特旗",  
  59.                 "高力板""巴雅尔吐胡硕""通辽钱家店""赤峰""赤峰郊区站""阿鲁科尔沁旗""浩尔吐",  
  60.                 "巴林左旗""巴林右旗""林西""克什克腾旗""翁牛特旗""岗子""喀喇沁旗""八里罕",  
  61.                 "宁城""敖汉旗""宝过图""鄂尔多斯""达拉特旗""准格尔旗""鄂托克前旗""河南",  
  62.                 "伊克乌素""鄂托克旗""杭锦旗""乌审旗""伊金霍洛旗""乌审召""东胜""临河""五原",  
  63.                 "磴口""乌拉特前旗""大佘太""乌拉特中旗""乌拉特后旗""海力素""那仁宝力格""杭锦后旗",  
  64.                 "巴盟农试站""锡林浩特""朝克乌拉""二连浩特""阿巴嘎旗""伊和郭勒""苏尼特左旗",  
  65.                 "苏尼特右旗""朱日和""东乌珠穆沁旗""西乌珠穆沁旗""太仆寺旗""镶黄旗""正镶白旗",  
  66.                 "正兰旗""多伦""博克图""乌拉盖""白日乌拉""那日图""呼伦贝尔""海拉尔""小二沟",  
  67.                 "阿荣旗""莫力达瓦旗""鄂伦春旗""鄂温克旗""陈巴尔虎旗""新巴尔虎左旗""新巴尔虎右旗",  
  68.                 "满洲里""牙克石""扎兰屯""额尔古纳""根河""图里河""乌兰浩特""阿尔山",  
  69.                 "科尔沁右翼中旗""胡尔勒""扎赉特旗""索伦""突泉""霍林郭勒""阿拉善左旗""阿拉善右旗",  
  70.                 "额济纳旗""拐子湖""吉兰太""锡林高勒""头道湖""中泉子""巴彦诺尔贡""雅布赖",  
  71.                 "乌斯太""孪井滩""石家庄""井陉""正定""栾城""行唐""灵寿""高邑""深泽",  
  72.                 "赞皇""无极""平山""元氏""赵县""辛集""藁城""晋洲""新乐""保定",  
  73.                 "满城""阜平""徐水""唐县""高阳""容城""紫荆关""涞源""望都""安新",  
  74.                 "易县""涞水""曲阳""蠡县""顺平""雄县""涿州""定州""安国""高碑店",  
  75.                 "张家口""宣化""张北""康保""沽源""尚义""蔚县""阳原""怀安""万全",  
  76.                 "怀来""涿鹿""赤城""崇礼""承德""承德县""兴隆""平泉""滦平""隆化",  
  77.                 "丰宁""宽城""围场""塞罕坎""唐山""丰南""丰润""滦县""滦南""乐亭",  
  78.                 "迁西""玉田""唐海""遵化""迁安""廊坊""固安""永清""香河""大城",  
  79.                 "文安""大厂""霸州""三河""沧州""青县""东光""海兴""盐山""肃宁",  
  80.                 "南皮""吴桥""献县""孟村""泊头""任丘""黄骅""河间""曹妃甸""衡水",  
  81.                 "枣强""武邑""武强""饶阳""安平""故城""景县""阜城""冀州""深州",  
  82.                 "邢台""临城""邢台县浆水""内邱""柏乡""隆尧""南和""宁晋""巨鹿""新河",  
  83.                 "广宗""平乡""威县""清河""临西""南宫""沙河""任县""邯郸""峰峰",  
  84.                 "临漳""成安""大名""涉县""磁县""肥乡""永年""邱县""鸡泽""广平",  
  85.                 "馆陶""魏县""曲周""武安""秦皇岛""青龙""昌黎""抚宁""卢龙""北戴河",  
  86.                 "太原""清徐""阳曲""娄烦""太原古交区""太原北郊""太原南郊""大同""阳高",  
  87.                 "大同县""天镇""广灵""灵邱""浑源""左云""阳泉""盂县""平定""晋中",  
  88.                 "榆次""榆社""左权""和顺""昔阳""寿阳""太谷""祁县""平遥""灵石",  
  89.                 "介休""长治""黎城""屯留""潞城""襄垣""平顺""武乡""沁县""长子",  
  90.                 "沁源""壶关""晋城""沁水""阳城""陵川""高平""临汾""曲沃""永和",  
  91.                 "隰县""大宁""吉县""襄汾""蒲县""汾西""洪洞""霍州""乡宁""翼城",  
  92.                 "侯马""浮山""安泽""古县""运城""临猗""稷山""万荣""河津""新绛",  
  93.                 "绛县""闻喜""垣曲""永济""芮城""夏县""平陆""朔州""平鲁""山阴",  
  94.                 "右玉""应县""怀仁""忻州""定襄""五台县豆村""河曲""偏关""神池""宁武",  
  95.                 "代县""繁峙""五台山""保德""静乐""岢岚""五寨""原平""吕梁""离石",  
  96.                 "临县""兴县""岚县""柳林""石楼""方山""交口""中阳""孝义""汾阳",  
  97.                 "文水""交城""西安""长安""临潼""蓝田""周至""户县""高陵""杨凌",  
  98.                 "咸阳""三原""礼泉""永寿""淳化""泾阳""武功""乾县""彬县""长武",  
  99.                 "旬邑""兴平""延安""延长""延川""子长""宜川""富县""志丹""安塞",  
  100.                 "甘泉""洛川""黄陵""黄龙""吴起""榆林""府谷""神木""佳县""定边",  
  101.                 "靖边""横山""米脂""子洲""绥德""吴堡""清涧""渭南""华县""潼关",  
  102.                 "大荔""白水""富平""蒲城""澄城""合阳""韩城""华阴""华山""商洛",  
  103.                 "洛南""柞水""镇安""丹凤""商南""山阳""安康""紫阳""石泉""汉阴",  
  104.                 "旬阳""岚皋""平利""白河""镇坪""宁陕""汉中""略阳""勉县""留坝",  
  105.                 "洋县""城固""西乡""佛坪""宁强""南郑""镇巴""宝鸡""宝鸡县""千阳",  
  106.                 "麟游""岐山""凤翔""扶风""眉县""太白""凤县""陇县""铜川""耀县",  
  107.                 "宜君""济南""长清""商河""章丘""平阴""济阳""青岛""崂山""潮连岛",  
  108.                 "即墨""胶州""胶南""莱西""平度""淄博""淄川""博山""高青""周村",  
  109.                 "沂源""桓台""临淄""德州""武城""临邑""陵县""齐河""乐陵""庆云",  
  110.                 "平原""宁津""夏津""禹城""烟台""莱州""长岛""蓬莱""龙口""招远",  
  111.                 "栖霞""福山""牟平""莱阳""海阳""千里岩""潍坊""青州""寿光""临朐",  
  112.                 "昌乐""昌邑""安丘""高密""诸城""济宁""嘉祥""微山""鱼台""兖州",  
  113.                 "金乡""汶上""泗水""梁山""曲阜""邹城""泰安""新泰""泰山""肥城",  
  114.                 "东平""宁阳""临沂""莒南""沂南""苍山""临沭""郯城""蒙阴""平邑",  
  115.                 "费县""沂水""马站""菏泽""鄄城""郓城""东明""定陶""巨野""曹县",  
  116.                 "成武""单县""滨州""博兴""无棣""阳信""惠民""沾化""邹平""东营",  
  117.                 "河口""垦利""利津""广饶""威海""文登""荣成""乳山""成山头""石岛",  
  118.                 "枣庄""薛城""峄城""台儿庄""滕州""日照""五莲""莒县""莱芜""聊城",  
  119.                 "冠县""阳谷""高唐""茌平""东阿""临清""朝城""莘县""乌鲁木齐""蔡家湖",  
  120.                 "小渠子""巴仑台""达坂城""十三间房气象站""天山大西沟""乌鲁木齐牧试站""天池",  
  121.                 "白杨沟""克拉玛依""石河子""炮台""莫索湾""乌兰乌苏""昌吉""呼图壁""米泉",  
  122.                 "阜康""吉木萨尔""奇台""玛纳斯""木垒""北塔山""吐鲁番""托克逊""吐鲁番东坎",  
  123.                 "鄯善""红柳河""库尔勒""轮台""尉犁""若羌""且末""和静""焉耆""和硕",  
  124.                 "库米什""巴音布鲁克""铁干里克""博湖""塔中""阿拉尔""阿克苏""乌什""温宿",  
  125.                 "拜城""新和""沙雅""库车""柯坪""阿瓦提""喀什""英吉沙""塔什库尔干",  
  126.                 "麦盖提""莎车""叶城""泽普""巴楚""岳普湖""伽师""伊宁""察布查尔",  
  127.                 "尼勒克""伊宁县""巩留""新源""昭苏""特克斯""霍城""霍尔果斯""塔城",  
  128.                 "裕民""额敏""和布克赛尔""托里""乌苏""沙湾""和丰""哈密""沁城""巴里坤",  
  129.                 "伊吾""淖毛湖""和田""皮山""策勒""墨玉""洛浦""民丰""于田""阿勒泰",  
  130.                 "哈巴河""一八五团""黑山头""吉木乃""布尔津""福海""富蕴""青河""安德河",  
  131.                 "阿图什""乌恰""阿克陶""阿合奇""吐尔尕特""博乐""温泉""精河""阿拉山口",  
  132.                 "拉萨""当雄""尼木""墨竹贡卡""日喀则""拉孜""南木林""聂拉木""定日",  
  133.                 "江孜""帕里""山南""贡嘎""琼结""加查""浪卡子""错那""隆子""泽当",  
  134.                 "林芝""波密""米林""察隅""昌都""丁青""类乌齐""洛隆""左贡""芒康",  
  135.                 "八宿""那曲""嘉黎""班戈""安多""索县""比如""阿里""改则""申扎",  
  136.                 "狮泉河""普兰""西宁""大通""湟源""湟中""铁卜加""铁卜加寺""中心站",  
  137.                 "海东""乐都""民和""互助""化隆""循化""冷湖""平安""黄南""尖扎",  
  138.                 "泽库""河南""海南""江西沟""贵德""河卡""兴海""贵南""同德""共和",  
  139.                 "果洛""班玛""甘德""达日""久治""玛多""清水河""玛沁""玉树""托托河",  
  140.                 "治多""杂多""囊谦""曲麻莱""海西""格尔木""察尔汉""野牛沟""五道梁",  
  141.                 "小灶火""天峻""乌兰""都兰""诺木洪""茫崖""大柴旦""茶卡""香日德",  
  142.                 "德令哈""海北""门源""祁连""海晏""托勒""刚察""兰州""皋兰""永登",  
  143.                 "榆中""定西""通渭""陇西""渭源""临洮""漳县""岷县""安定""平凉",  
  144.                 "泾川""灵台""崇信""华亭""庄浪""静宁""崆峒""庆阳""西峰""环县",  
  145.                 "华池""合水""正宁""宁县""镇原""庆城""武威""民勤""古浪""乌鞘岭",  
  146.                 "天祝""金昌""永昌""张掖""肃南""民乐""临泽""高台""山丹""酒泉",  
  147.                 "鼎新""金塔""马鬃山""瓜州""肃北""玉门镇""敦煌""天水""北道区""清水",  
  148.                 "秦安""甘谷""武山""张家川""麦积""武都""成县""文县""宕昌""康县",  
  149.                 "西和""礼县""徽县""两当""临夏""康乐""永靖""广河""和政""东乡",  
  150.                 "合作""临潭""卓尼""舟曲""迭部""玛曲""碌曲""夏河""白银""靖远",  
  151.                 "会宁""华家岭""景泰""银川""永宁""灵武""贺兰""石嘴山""惠农""平罗",  
  152.                 "陶乐""石炭井""大武口""吴忠""同心""盐池""韦州""麻黄山""青铜峡""固原",  
  153.                 "西吉""隆德""泾源""六盘山""彭阳""中卫""中宁""兴仁堡""海原""郑州",  
  154.                 "巩义""荥阳""登封""新密""新郑""中牟""郑州农试站""安阳""汤阴""滑县",  
  155.                 "内黄""林州""新乡""获嘉""原阳""辉县""卫辉""延津""封丘""长垣",  
  156.                 "许昌""鄢陵""襄城""长葛""禹州""平顶山""郏县""宝丰""汝州""叶县",  
  157.                 "舞钢""鲁山""信阳""息县""罗山""光山""新县""淮滨""潢川""固始",  
  158.                 "商城""鸡公山""信阳地区农试站""南阳""南召""方城""社旗""西峡""内乡",  
  159.                 "镇平""淅川""新野""唐河""邓州""桐柏""开封""杞县""尉氏""通许",  
  160.                 "兰考""洛阳""新安""孟津""宜阳""洛宁""伊川""嵩县""偃师""栾川",  
  161.                 "汝阳""商丘""睢阳区""睢县""民权""虞城""柘城""宁陵""夏邑""永城",  
  162.                 "焦作""修武""武陟""沁阳""博爱""温县""孟州""鹤壁""浚县""淇县",  
  163.                 "濮阳""台前""南乐""清丰""范县""周口""扶沟""太康""淮阳""西华",  
  164.                 "商水""项城""郸城""鹿邑""沈丘""黄泛区""漯河""临颍""舞阳""驻马店",  
  165.                 "西平""遂平""上蔡""汝南""泌阳""平舆""新蔡""确山""正阳""三门峡",  
  166.                 "灵宝""渑池""卢氏""济源""南京""溧水""高淳""江宁""六合""江浦",  
  167.                 "浦口""无锡""江阴""宜兴""镇江""丹阳""扬中""句容""丹徒""苏州",  
  168.                 "常熟""张家港""昆山""吴县东山""吴县""吴江""太仓""南通""海安""如皋",  
  169.                 "如东""吕泗""吕泗渔场""启东""海门""通州""扬州""宝应""仪征""高邮",  
  170.                 "江都""邗江""盐城""响水""滨海""阜宁""射阳""建湖""东台""大丰",  
  171.                 "盐都""徐州""徐州农试站""丰县""沛县""邳州""睢宁""新沂""淮安""金湖",  
  172.                 "盱眙""洪泽""涟水""淮阴县""淮阴""楚州""连云港""东海""赣榆""灌云",  
  173.                 "灌南""西连岛""燕尾港""常州""溧阳""金坛""泰州""兴化""泰兴""姜堰",  
  174.                 "靖江""宿迁""沭阳""泗阳""泗洪""武汉""蔡甸""黄陂""新洲""江夏",  
  175.                 "襄樊""襄阳""保康""南漳""宜城""老河口""谷城""枣阳""鄂州""孝感",  
  176.                 "安陆""云梦""大悟""应城""汉川""黄冈""红安""麻城""罗田""英山",  
  177.                 "浠水""蕲春""黄梅""武穴""黄石""大冶""阳新""咸宁""赤壁""嘉鱼",  
  178.                 "崇阳""通城""通山""荆州""江陵""公安""石首""监利""洪湖""松滋",  
  179.                 "宜昌""远安""秭归""兴山""宜昌县""五峰""当阳""长阳""宜都""枝江",  
  180.                 "三峡""夷陵""恩施""利川""建始""咸丰""宣恩""鹤峰""来凤""巴东",  
  181.                 "绿葱坡""十堰""竹溪""郧西""郧县""竹山""房县""丹江口""神农架""随州",  
  182.                 "广水""荆门""钟祥""京山""天门""仙桃""潜江""杭州""萧山""桐庐",  
  183.                 "淳安""建德""余杭""临安""富阳""湖州""长兴""安吉""德清""嘉兴",  
  184.                 "嘉善""海宁""桐乡""平湖""海盐""宁波""慈溪""余姚""奉化""象山",  
  185.                 "石浦""宁海""鄞县""北仑""鄞州""镇海""绍兴""诸暨""上虞""新昌",  
  186.                 "嵊州""台州""括苍山""玉环""三门""天台""仙居""温岭""大陈""洪家",  
  187.                 "温州""泰顺""文成""平阳""瑞安""洞头""乐清""永嘉""苍南""丽水",  
  188.                 "遂昌""龙泉""缙云""青田""云和""庆元""金华""浦江""兰溪""义乌",  
  189.                 "东阳""武义""永康""磐安""衢州""常山""开化""龙游""江山""舟山",  
  190.                 "嵊泗""嵊山""岱山""普陀""定海""合肥""长丰""肥东""肥西""蚌埠",  
  191.                 "怀远""固镇""五河""芜湖""繁昌""芜湖县""南陵""淮南""凤台""马鞍山",  
  192.                 "当涂""安庆""枞阳""太湖""潜山""怀宁""宿松""望江""岳西""桐城",  
  193.                 "宿州""砀山""灵璧""泗县""萧县""阜阳""阜南""颍上""临泉""界首",  
  194.                 "太和""亳州""涡阳""利辛""蒙城""黄山站""黄山区""屯溪""祁门""黟县",  
  195.                 "歙县""休宁""黄山市""滁州""凤阳""明光""定远""全椒""来安""天长",  
  196.                 "淮北""濉溪""铜陵""宣城""泾县""旌德""宁国""绩溪""广德""郎溪",  
  197.                 "六安""霍邱""寿县""南溪""金寨""霍山""舒城""巢湖""庐江""无为",  
  198.                 "含山""和县""池州""东至""青阳""九华山""石台""福州""闽清""闽侯",  
  199.                 "罗源""连江""马祖""永泰""平潭""福州郊区""长乐""福清""平潭海峡大桥",  
  200.                 "厦门""同安""宁德""古田""霞浦""寿宁""周宁""福安""柘荣""福鼎",  
  201.                 "屏南""莆田""仙游""秀屿港""泉州""安溪""九仙山""永春""德化""南安",  
  202.                 "崇武""金山""晋江""漳州""长泰""南靖""平和""龙海""漳浦""诏安",  
  203.                 "东山""云霄""华安""龙岩""长汀""连城""武平""上杭""永定""漳平",  
  204.                 "三明""宁化""清流""泰宁""将乐""建宁""明溪""沙县""尤溪""永安",  
  205.                 "大田""南平""顺昌""光泽""邵武""武夷山""浦城""建阳""松溪""政和",  
  206.                 "建瓯""南昌""新建""南昌县""安义""进贤""莲塘""九江""瑞昌""庐山",  
  207.                 "武宁""德安""永修""湖口""彭泽""星子""都昌""棠荫""修水""上饶",  
  208.                 "鄱阳""婺源""康山""余干""万年""德兴""上饶县""弋阳""横峰""铅山",  
  209.                 "玉山""广丰""波阳""抚州""广昌""乐安""崇仁""金溪""资溪""宜黄",  
  210.                 "南城""南丰""黎川""东乡""宜春""铜鼓""宜丰""万载""上高""靖安",  
  211.                 "奉新""高安""樟树""丰城""吉安""吉安县""吉水""新干""峡江""永丰",  
  212.                 "永新""井冈山""万安""遂川""泰和""安福""宁冈""赣州""崇义""上犹",  
  213.                 "南康""大余""信丰""宁都""石城""瑞金""于都""会昌""安远""全南",  
  214.                 "龙南""定南""寻乌""兴国""景德镇""乐平""萍乡""莲花""新余""分宜",  
  215.                 "鹰潭""余江""贵溪""长沙""宁乡""浏阳""马坡岭""湘潭""韶山""湘乡",  
  216.                 "株洲""攸县""醴陵""株洲县""茶陵""炎陵""衡阳""衡山""衡东""祁东",  
  217.                 "衡阳县""常宁""衡南""耒阳""南岳""郴州""桂阳""嘉禾""宜章""临武",  
  218.                 "桥口""资兴""汝城""安仁""永兴""桂东""常德""安乡""桃源""汉寿",  
  219.                 "澧县""临澧""石门""益阳""赫山区""南县""桃江""安化""沅江""娄底",  
  220.                 "双峰""冷水江""冷水滩""新化""涟源""邵阳""隆回""洞口""新邵""邵东",  
  221.                 "绥宁""新宁""武冈""城步""邵阳县""岳阳""华容""湘阴""汨罗""平江",  
  222.                 "临湘""张家界""桑植""慈利""怀化""鹤城区""沅陵""辰溪""靖州""会同",  
  223.                 "通道""麻阳""新晃""芷江""溆浦""黔阳""洪江""永州""祁阳""东安",  
  224.                 "双牌""道县""宁远""江永""蓝山""新田""江华""吉首""保靖""永顺",  
  225.                 "古丈""凤凰""泸溪""龙山""花垣""贵阳""白云""花溪""乌当""息烽",  
  226.                 "开阳""修文""清镇""遵义""遵义县""仁怀""绥阳""湄潭""凤冈""桐梓",  
  227.                 "赤水""习水""道真""正安""务川""余庆""汇川""安顺""普定""镇宁",  
  228.                 "平坝""紫云""关岭""都匀""贵定""瓮安""长顺""福泉""惠水""龙里",  
  229.                 "罗甸""平塘""独山""三都""荔波""凯里""岑巩""施秉""镇远""黄平",  
  230.                 "黄平旧洲""麻江""丹寨""三穗""台江""剑河""雷山""黎平""天柱""锦屏",  
  231.                 "榕江""从江""炉山""铜仁""江口""玉屏""万山""思南""塘头""印江",  
  232.                 "石阡""沿河""德江""松桃""毕节""赫章""金沙""威宁""大方""纳雍",  
  233.                 "织金""六盘水""六枝""水城""盘县""黔西""晴隆""兴仁""贞丰""望谟",  
  234.                 "兴义""安龙""册亨""普安""成都""龙泉驿""新都""温江""金堂""双流",  
  235.                 "郫县""大邑""蒲江""新津""都江堰""彭州""邛崃""崇州""崇庆""彭县",  
  236.                 "攀枝花""仁和""米易""盐边""自贡""富顺""荣县""绵阳""三台""盐亭",  
  237.                 "安县""梓潼""北川""平武""江油""南充""南部""营山""蓬安""仪陇",  
  238.                 "西充""阆中""达州""宣汉""开江""大竹""渠县""万源""达川""遂宁",  
  239.                 "蓬溪""射洪""广安""岳池""武胜""邻水""华蓥山""巴中""通江""南江",  
  240.                 "平昌""泸州""泸县""合江""叙永""古蔺""纳溪""宜宾""宜宾农试站""宜宾县",  
  241.                 "南溪""江安""长宁""高县""珙县""筠连""兴文""屏山""内江""东兴",  
  242.                 "威远""资中""隆昌""资阳""安岳""乐至""简阳""乐山""犍为""井研",  
  243.                 "夹江""沐川""峨边""马边""峨眉""峨眉山""眉山""仁寿""彭山""洪雅",  
  244.                 "丹棱""青神""凉山""木里""盐源""德昌""会理""会东""宁南""普格",  
  245.                 "西昌""金阳""昭觉""喜德""冕宁""越西""甘洛""雷波""美姑""布拖",  
  246.                 "雅安""名山""荣经""汉源""石棉""天全""芦山""宝兴""甘孜""康定",  
  247.                 "泸定""丹巴""九龙""雅江""道孚""炉霍""新龙""德格""白玉""石渠",  
  248.                 "色达""理塘""巴塘""乡城""稻城""得荣""阿坝""汶川""理县""茂县",  
  249.                 "松潘""九寨沟""金川""小金""黑水""马尔康""壤塘""若尔盖""红原""南坪",  
  250.                 "德阳""中江""广汉""什邡""绵竹""罗江""广元""旺苍""青川""剑阁",  
  251.                 "苍溪""广州""番禺""从化""增城""花都""天河""韶关""乳源""始兴",  
  252.                 "翁源""乐昌""仁化""南雄""新丰""曲江""惠州""博罗""惠阳""惠东",  
  253.                 "龙门""梅州""兴宁""蕉岭""大埔""丰顺""平远""五华""梅县""汕头",  
  254.                 "潮阳""澄海""南澳""云澳""南澎岛""深圳""珠海""斗门""黄茅洲""佛山",  
  255.                 "顺德""三水""南海""肇庆""广宁""四会""德庆""怀集""封开""高要",  
  256.                 "湛江""吴川""雷州""徐闻""廉江""硇洲""遂溪""江门""开平""新会",  
  257.                 "恩平""台山""上川岛""鹤山""河源""紫金""连平""和平""龙川""清远",  
  258.                 "连南""连州""连山""阳山""佛冈""英德""云浮""罗定""新兴""郁南",  
  259.                 "潮州""饶平""东莞""中山""阳江""阳春""揭阳""揭西""普宁""惠来",  
  260.                 "茂名""高州""化州""电白""信宜""汕尾""海丰""陆丰""遮浪""东沙岛",  
  261.                 "昆明""昆明农试站""东川""寻甸""晋宁""宜良""石林""呈贡""富民""嵩明",  
  262.                 "禄劝""安宁""太华山""河口""大理""云龙""漾鼻""永平""宾川""弥渡",  
  263.                 "祥云""魏山""剑川""洱源""鹤庆""南涧""红河""石屏""建水""弥勒",  
  264.                 "元阳""绿春""开远""个旧""蒙自""屏边""泸西""金平""曲靖""沾益",  
  265.                 "陆良""富源""马龙""师宗""罗平""会泽""宣威""保山""富宁""龙陵",  
  266.                 "施甸""昌宁""腾冲""文山""西畴""马关""麻栗坡""砚山""邱北""广南",  
  267.                 "玉溪""澄江""江川""通海""华宁""新平""易门""峨山""元江""楚雄",  
  268.                 "大姚""元谋""姚安""牟定""南华""武定""禄丰""双柏""永仁""普洱",  
  269.                 "景谷""景东""澜沧""普洱""墨江""江城""孟连""西盟""镇源""镇沅",  
  270.                 "宁洱""昭通""鲁甸""彝良""镇雄""威信""巧家""绥江""永善""盐津",  
  271.                 "大关""临沧""沧源""耿马""双江""凤庆""永德""云县""镇康""怒江",  
  272.                 "福贡""兰坪""泸水""六库""贡山""香格里拉""德钦""维西""中甸""丽江",  
  273.                 "永胜""华坪""宁蒗""德宏""潞江坝""陇川""盈江""畹町镇""瑞丽""梁河",  
  274.                 "潞西""景洪""大勐龙""勐海""景洪电站""勐腊""南宁""南宁城区""邕宁",  
  275.                 "横县""隆安""马山""上林""武鸣""宾阳""硕龙""崇左""天等""龙州",  
  276.                 "凭祥""大新""扶绥""宁明""海渊""柳州""柳城""沙塘""鹿寨""柳江",  
  277.                 "融安""融水""三江""来宾""忻城""金秀""象州""武宣""桂林""桂林农试站",  
  278.                 "龙胜""永福""临桂""兴安""灵川""全州""灌阳""阳朔""恭城""平乐",  
  279.                 "荔浦""资源""梧州""藤县""太平""苍梧""蒙山""岑溪""贺州""昭平",  
  280.                 "富川""钟山""信都""贵港""桂平""平南""玉林""博白""北流""容县",  
  281.                 "陆川""百色""那坡""田阳""德保""靖西""田东""平果""隆林""西林",  
  282.                 "乐业""凌云""田林""钦州""浦北""灵山""河池""天峨""东兰""巴马",  
  283.                 "环江""罗城""宜州""凤山""南丹""都安""北海""合浦""涠洲岛""防城港",  
  284.                 "上思""东兴""板栏""防城""海口""琼山""三亚""东方""临高""澄迈",  
  285.                 "儋州""昌江""白沙""琼中""定安""屯昌""琼海""文昌""清兰""保亭",  
  286.                 "万宁""陵水""西沙""珊瑚岛""永署礁""南沙岛""乐东""五指山""通什""香港",  
  287.                 "九龙""新界""中环""铜锣湾""澳门""台北县""台北市""高雄""东港""大武",  
  288.                 "恒春""兰屿""台南""台中""桃园""新竹县""新竹市""公馆""宜兰""马公",  
  289.                 "东吉屿""嘉义""阿里山""玉山""新港" };  
  290.         allIDs = new String[] { "101010100""101010200""101010300",  
  291.                 "101010400""101010500""101010600""101010700",  
  292.                 "101010800""101010900""101011000""101011100",  
  293.                 "101011200""101011300""101011400""101011500",  
  294.                 "101011600""101011700""101011800""101011900",  
  295.                 "101012000""101012100""101020100""101020200",  
  296.                 "101020300""101020400""101020500""101020600",  
  297.                 "101020700""101020800""101020900""101021000",  
  298.                 "101021100""101021101""101021102""101021200",  
  299.                 "101021300""101030100""101030200""101030300",  
  300.                 "101030400""101030500""101030600""101030700",  
  301.                 "101030800""101030900""101031000""101031100",  
  302.                 "101031200""101031300""101031400""101040100",  
  303.                 "101040200""101040300""101040400""101040500",  
  304.                 "101040600""101040700""101040800""101040900",  
  305.                 "101041000""101041100""101041200""101041300",  
  306.                 "101041400""101041500""101041600""101041700",  
  307.                 "101041800""101041900""101042000""101042100",  
  308.                 "101042200""101042300""101042400""101042500",  
  309.                 "101042600""101042700""101042800""101042900",  
  310.                 "101043000""101043100""101043200""101043300",  
  311.                 "101043400""101043500""101043600""101043700",  
  312.                 "101050101""101050102""101050103""101050104",  
  313.                 "101050105""101050106""101050107""101050108",  
  314.                 "101050109""101050110""101050111""101050112",  
  315.                 "101050113""101050201""101050202""101050203",  
  316.                 "101050204""101050205""101050206""101050207",  
  317.                 "101050208""101050209""101050210""101050301",  
  318.                 "101050302""101050303""101050304""101050305",  
  319.                 "101050306""101050307""101050401""101050402",  
  320.                 "101050403""101050404""101050405""101050406",  
  321.                 "101050407""101050501""101050502""101050503",  
  322.                 "101050504""101050505""101050506""101050507",  
  323.                 "101050508""101050509""101050510""101050601",  
  324.                 "101050602""101050603""101050604""101050605",  
  325.                 "101050606""101050701""101050702""101050703",  
  326.                 "101050704""101050705""101050706""101050707",  
  327.                 "101050708""101050801""101050802""101050803",  
  328.                 "101050804""101050805""101050901""101050902",  
  329.                 "101050903""101050904""101050905""101051002",  
  330.                 "101051003""101051101""101051102""101051103",  
  331.                 "101051104""101051201""101051202""101051203",  
  332.                 "101051301""101051302""101051303""101051304",  
  333.                 "101060101""101060102""101060103""101060104",  
  334.                 "101060105""101060106""101060201""101060202",  
  335.                 "101060203""101060204""101060205""101060206",  
  336.                 "101060207""101060301""101060302""101060303",  
  337.                 "101060304""101060305""101060306""101060307",  
  338.                 "101060308""101060309""101060310""101060311",  
  339.                 "101060312""101060401""101060402""101060403",  
  340.                 "101060404""101060405""101060406""101060501",  
  341.                 "101060502""101060503""101060504""101060505",  
  342.                 "101060506""101060601""101060602""101060603",  
  343.                 "101060604""101060605""101060701""101060702",  
  344.                 "101060801""101060802""101060803""101060804",  
  345.                 "101060805""101060901""101060902""101060903",  
  346.                 "101060904""101060905""101070101""101070102",  
  347.                 "101070103""101070104""101070105""101070106",  
  348.                 "101070107""101070108""101070201""101070202",  
  349.                 "101070203""101070204""101070205""101070206",  
  350.                 "101070207""101070208""101070209""101070301",  
  351.                 "101070302""101070303""101070304""101070401",  
  352.                 "101070403""101070404""101070501""101070502",  
  353.                 "101070503""101070504""101070601""101070602",  
  354.                 "101070603""101070604""101070605""101070701",  
  355.                 "101070702""101070703""101070704""101070705",  
  356.                 "101070706""101070801""101070802""101070803",  
  357.                 "101070901""101070902""101071001""101071002",  
  358.                 "101071003""101071101""101071102""101071103",  
  359.                 "101071104""101071201""101071202""101071203",  
  360.                 "101071204""101071205""101071206""101071207",  
  361.                 "101071301""101071302""101071303""101071401",  
  362.                 "101071402""101071403""101071404""101080101",  
  363.                 "101080102""101080103""101080104""101080105",  
  364.                 "101080106""101080107""101080201""101080202",  
  365.                 "101080203""101080204""101080205""101080206",  
  366.                 "101080207""101080301""101080401""101080402",  
  367.                 "101080403""101080404""101080405""101080406",  
  368.                 "101080407""101080408""101080409""101080410",  
  369.                 "101080411""101080412""101080501""101080502",  
  370.                 "101080503""101080504""101080505""101080506",  
  371.                 "101080507""101080508""101080509""101080510",  
  372.                 "101080511""101080512""101080601""101080602",  
  373.                 "101080603""101080604""101080605""101080606",  
  374.                 "101080607""101080608""101080609""101080610",  
  375.                 "101080611""101080612""101080613""101080614",  
  376.                 "101080615""101080701""101080703""101080704",  
  377.                 "101080705""101080706""101080707""101080708",  
  378.                 "101080709""101080710""101080711""101080712",  
  379.                 "101080713""101080801""101080802""101080803",  
  380.                 "101080804""101080805""101080806""101080807",  
  381.                 "101080808""101080809""101080810""101080811",  
  382.                 "101080901""101080902""101080903""101080904",  
  383.                 "101080905""101080906""101080907""101080908",  
  384.                 "101080909""101080910""101080911""101080912",  
  385.                 "101080913""101080914""101080915""101080916",  
  386.                 "101080917""101080918""101080919""101081000",  
  387.                 "101081001""101081002""101081003""101081004",  
  388.                 "101081005""101081006""101081007""101081008",  
  389.                 "101081009""101081010""101081011""101081012",  
  390.                 "101081014""101081015""101081016""101081101",  
  391.                 "101081102""101081103""101081104""101081105",  
  392.                 "101081106""101081107""101081108""101081201",  
  393.                 "101081202""101081203""101081204""101081205",  
  394.                 "101081206""101081207""101081208""101081209",  
  395.                 "101081210""101081211""101081212""101090101",  
  396.                 "101090102""101090103""101090104""101090105",  
  397.                 "101090106""101090107""101090108""101090109",  
  398.                 "101090110""101090111""101090112""101090113",  
  399.                 "101090114""101090115""101090116""101090117",  
  400.                 "101090201""101090202""101090203""101090204",  
  401.                 "101090205""101090206""101090207""101090208",  
  402.                 "101090209""101090210""101090211""101090212",  
  403.                 "101090213""101090214""101090215""101090216",  
  404.                 "101090217""101090218""101090219""101090220",  
  405.                 "101090221""101090301""101090302""101090303",  
  406.                 "101090304""101090305""101090306""101090307",  
  407.                 "101090308""101090309""101090310""101090311",  
  408.                 "101090312""101090313""101090314""101090402",  
  409.                 "101090403""101090404""101090405""101090406",  
  410.                 "101090407""101090408""101090409""101090410",  
  411.                 "101090411""101090501""101090502""101090503",  
  412.                 "101090504""101090505""101090506""101090507",  
  413.                 "101090508""101090509""101090510""101090511",  
  414.                 "101090601""101090602""101090603""101090604",  
  415.                 "101090605""101090606""101090607""101090608",  
  416.                 "101090609""101090701""101090702""101090703",  
  417.                 "101090704""101090705""101090706""101090707",  
  418.                 "101090708""101090709""101090710""101090711",  
  419.                 "101090712""101090713""101090714""101090715",  
  420.                 "101090801""101090802""101090803""101090804",  
  421.                 "101090805""101090806""101090807""101090808",  
  422.                 "101090809""101090810""101090811""101090901",  
  423.                 "101090902""101090903""101090904""101090905",  
  424.                 "101090906""101090907""101090908""101090909",  
  425.                 "101090910""101090911""101090912""101090913",  
  426.                 "101090914""101090915""101090916""101090917",  
  427.                 "101090918""101091001""101091002""101091003",  
  428.                 "101091004""101091005""101091006""101091007",  
  429.                 "101091008""101091009""101091010""101091011",  
  430.                 "101091012""101091013""101091014""101091015",  
  431.                 "101091016""101091101""101091102""101091103",  
  432.                 "101091104""101091105""101091106""101100101",  
  433.                 "101100102""101100103""101100104""101100105",  
  434.                 "101100106""101100107""101100201""101100202",  
  435.                 "101100203""101100204""101100205""101100206",  
  436.                 "101100207""101100208""101100301""101100302",  
  437.                 "101100303""101100401""101100402""101100403",  
  438.                 "101100404""101100405""101100406""101100407",  
  439.                 "101100408""101100409""101100410""101100411",  
  440.                 "101100412""101100501""101100502""101100503",  
  441.                 "101100504""101100505""101100506""101100507",  
  442.                 "101100508""101100509""101100510""101100511",  
  443.                 "101100601""101100602""101100603""101100604",  
  444.                 "101100605""101100701""101100702""101100703",  
  445.                 "101100704""101100705""101100706""101100707",  
  446.                 "101100708""101100709""101100710""101100711",  
  447.                 "101100712""101100713""101100714""101100715",  
  448.                 "101100716""101100717""101100801""101100802",  
  449.                 "101100803""101100804""101100805""101100806",  
  450.                 "101100807""101100808""101100809""101100810",  
  451.                 "101100811""101100812""101100813""101100901",  
  452.                 "101100902""101100903""101100904""101100905",  
  453.                 "101100906""101101001""101101002""101101003",  
  454.                 "101101004""101101005""101101006""101101007",  
  455.                 "101101008""101101009""101101010""101101011",  
  456.                 "101101012""101101013""101101014""101101015",  
  457.                 "101101100""101101101""101101102""101101103",  
  458.                 "101101104""101101105""101101106""101101107",  
  459.                 "101101108""101101109""101101110""101101111",  
  460.                 "101101112""101101113""101110101""101110102",  
  461.                 "101110103""101110104""101110105""101110106",  
  462.                 "101110107""101110108""101110200""101110201",  
  463.                 "101110202""101110203""101110204""101110205",  
  464.                 "101110206""101110207""101110208""101110209",  
  465.                 "101110210""101110211""101110300""101110301",  
  466.                 "101110302""101110303""101110304""101110305",  
  467.                 "101110306""101110307""101110308""101110309",  
  468.                 "101110310""101110311""101110312""101110401",  
  469.                 "101110402""101110403""101110404""101110405",  
  470.                 "101110406""101110407""101110408""101110409",  
  471.                 "101110410""101110411""101110412""101110501",  
  472.                 "101110502""101110503""101110504""101110505",  
  473.                 "101110506""101110507""101110508""101110509",  
  474.                 "101110510""101110511""101110512""101110601",  
  475.                 "101110602""101110603""101110605""101110606",  
  476.                 "101110607""101110608""101110701""101110702",  
  477.                 "101110703""101110704""101110705""101110706",  
  478.                 "101110707""101110708""101110709""101110710",  
  479.                 "101110801""101110802""101110803""101110804",  
  480.                 "101110805""101110806""101110807""101110808",  
  481.                 "101110809""101110810""101110811""101110901",  
  482.                 "101110902""101110903""101110904""101110905",  
  483.                 "101110906""101110907""101110908""101110909",  
  484.                 "101110910""101110911""101111001""101111002",  
  485.                 "101111003""101120101""101120102""101120103",  
  486.                 "101120104""101120105""101120106""101120201",  
  487.                 "101120202""101120203""101120204""101120205",  
  488.                 "101120206""101120207""101120208""101120301",  
  489.                 "101120302""101120303""101120304""101120305",  
  490.                 "101120306""101120307""101120308""101120401",  
  491.                 "101120402""101120403""101120404""101120405",  
  492.                 "101120406""101120407""101120408""101120409",  
  493.                 "101120410""101120411""101120501""101120502",  
  494.                 "101120503""101120504""101120505""101120506",  
  495.                 "101120507""101120508""101120509""101120510",  
  496.                 "101120511""101120512""101120601""101120602",  
  497.                 "101120603""101120604""101120605""101120606",  
  498.                 "101120607""101120608""101120609""101120701",  
  499.                 "101120702""101120703""101120704""101120705",  
  500.                 "101120706""101120707""101120708""101120709",  
  501.                 "101120710""101120711""101120801""101120802",  
  502.                 "101120803""101120804""101120805""101120806",  
  503.                 "101120901""101120902""101120903""101120904",  
  504.                 "101120905""101120906""101120907""101120908",  
  505.                 "101120909""101120910""101120911""101121001",  
  506.                 "101121002""101121003""101121004""101121005",  
  507.                 "101121006""101121007""101121008""101121009",  
  508.                 "101121101""101121102""101121103""101121104",  
  509.                 "101121105""101121106""101121107""101121201",  
  510.                 "101121202""101121203""101121204""101121205",  
  511.                 "101121301""101121302""101121303""101121304",  
  512.                 "101121305""101121306""101121401""101121402",  
  513.                 "101121403""101121404""101121405""101121501",  
  514.                 "101121502""101121503""101121601""101121701",  
  515.                 "101121702""101121703""101121704""101121705",  
  516.                 "101121706""101121707""101121708""101121709",  
  517.                 "101130101""101130102""101130103""101130104",  
  518.                 "101130105""101130106""101130107""101130108",  
  519.                 "101130109""101130110""101130201""101130301",  
  520.                 "101130302""101130303""101130304""101130401",  
  521.                 "101130402""101130403""101130404""101130405",  
  522.                 "101130406""101130407""101130408""101130409",  
  523.                 "101130501""101130502""101130503""101130504",  
  524.                 "101130505""101130601""101130602""101130603",  
  525.                 "101130604""101130605""101130606""101130607",  
  526.                 "101130608""101130609""101130610""101130611",  
  527.                 "101130612""101130613""101130701""101130801",  
  528.                 "101130802""101130803""101130804""101130805",  
  529.                 "101130806""101130807""101130808""101130809",  
  530.                 "101130901""101130902""101130903""101130904",  
  531.                 "101130905""101130906""101130907""101130908",  
  532.                 "101130909""101130910""101131001""101131002",  
  533.                 "101131003""101131004""101131005""101131006",  
  534.                 "101131007""101131008""101131009""101131010",  
  535.                 "101131101""101131102""101131103""101131104",  
  536.                 "101131105""101131106""101131107""101131108",  
  537.                 "101131201""101131202""101131203""101131204",  
  538.                 "101131205""101131301""101131302""101131303",  
  539.                 "101131304""101131305""101131306""101131307",  
  540.                 "101131401""101131402""101131403""101131404",  
  541.                 "101131405""101131406""101131407""101131408",  
  542.                 "101131409""101131410""101131501""101131502",  
  543.                 "101131503""101131504""101131505""101131601",  
  544.                 "101131602""101131603""101131606""101140101",  
  545.                 "101140102""101140103""101140104""101140201",  
  546.                 "101140202""101140203""101140204""101140205",  
  547.                 "101140206""101140207""101140301""101140302",  
  548.                 "101140303""101140304""101140305""101140306",  
  549.                 "101140307""101140308""101140401""101140402",  
  550.                 "101140403""101140404""101140501""101140502",  
  551.                 "101140503""101140504""101140505""101140506",  
  552.                 "101140507""101140601""101140603""101140604",  
  553.                 "101140605""101140606""101140607""101140701",  
  554.                 "101140702""101140703""101140704""101140705",  
  555.                 "101150101""101150102""101150103""101150104",  
  556.                 "101150105""101150106""101150107""101150201",  
  557.                 "101150202""101150203""101150204""101150205",  
  558.                 "101150206""101150207""101150208""101150301",  
  559.                 "101150302""101150303""101150304""101150401",  
  560.                 "101150402""101150404""101150405""101150406",  
  561.                 "101150407""101150408""101150409""101150501",  
  562.                 "101150502""101150503""101150504""101150505",  
  563.                 "101150506""101150507""101150508""101150601",  
  564.                 "101150602""101150603""101150604""101150605",  
  565.                 "101150606""101150701""101150702""101150703",  
  566.                 "101150704""101150705""101150706""101150708",  
  567.                 "101150709""101150710""101150711""101150712",  
  568.                 "101150713""101150714""101150715""101150716",  
  569.                 "101150801""101150802""101150803""101150804",  
  570.                 "101150805""101150806""101160101""101160102",  
  571.                 "101160103""101160104""101160201""101160202",  
  572.                 "101160203""101160204""101160205""101160206",  
  573.                 "101160207""101160208""101160301""101160302",  
  574.                 "101160303""101160304""101160305""101160306",  
  575.                 "101160307""101160308""101160401""101160402",  
  576.                 "101160403""101160404""101160405""101160406",  
  577.                 "101160407""101160408""101160409""101160501",  
  578.                 "101160502""101160503""101160504""101160505",  
  579.                 "101160601""101160602""101160701""101160702",  
  580.                 "101160703""101160704""101160705""101160706",  
  581.                 "101160801""101160802""101160803""101160804",  
  582.                 "101160805""101160806""101160807""101160808",  
  583.                 "101160901""101160902""101160903""101160904",  
  584.                 "101160905""101160906""101160907""101160908",  
  585.                 "101161001""101161002""101161003""101161004",  
  586.                 "101161005""101161006""101161007""101161008",  
  587.                 "101161009""101161101""101161102""101161103",  
  588.                 "101161104""101161105""101161106""101161201",  
  589.                 "101161202""101161203""101161204""101161205",  
  590.                 "101161206""101161207""101161208""101161301",  
  591.                 "101161302""101161303""101161304""101161305",  
  592.                 "101170101""101170102""101170103""101170104",  
  593.                 "101170201""101170202""101170203""101170204",  
  594.                 "101170205""101170206""101170301""101170302",  
  595.                 "101170303""101170304""101170305""101170306",  
  596.                 "101170401""101170402""101170403""101170404",  
  597.                 "101170405""101170406""101170501""101170502",  
  598.                 "101170503""101170504""101180101""101180102",  
  599.                 "101180103""101180104""101180105""101180106",  
  600.                 "101180107""101180108""101180201""101180202",  
  601.                 "101180203""101180204""101180205""101180301",  
  602.                 "101180302""101180303""101180304""101180305",  
  603.                 "101180306""101180307""101180308""101180401",  
  604.                 "101180402""101180403""101180404""101180405",  
  605.                 "101180501""101180502""101180503""101180504",  
  606.                 "101180505""101180506""101180507""101180601",  
  607.                 "101180602""101180603""101180604""101180605",  
  608.                 "101180606""101180607""101180608""101180609",  
  609.                 "101180610""101180611""101180701""101180702",  
  610.                 "101180703""101180704""101180705""101180706",  
  611.                 "101180707""101180708""101180709""101180710",  
  612.                 "101180711""101180712""101180801""101180802",  
  613.                 "101180803""101180804""101180805""101180901",  
  614.                 "101180902""101180903""101180904""101180905",  
  615.                 "101180906""101180907""101180908""101180909",  
  616.                 "101180910""101181001""101181002""101181003",  
  617.                 "101181004""101181005""101181006""101181007",  
  618.                 "101181008""101181009""101181101""101181102",  
  619.                 "101181103""101181104""101181106""101181107",  
  620.                 "101181108""101181201""101181202""101181203",  
  621.                 "101181301""101181302""101181303""101181304",  
  622.                 "101181305""101181401""101181402""101181403",  
  623.                 "101181404""101181405""101181406""101181407",  
  624.                 "101181408""101181409""101181410""101181411",  
  625.                 "101181501""101181502""101181503""101181601",  
  626.                 "101181602""101181603""101181604""101181605",  
  627.                 "101181606""101181607""101181608""101181609",  
  628.                 "101181610""101181701""101181702""101181703",  
  629.                 "101181704""101181801""101190101""101190102",  
  630.                 "101190103""101190104""101190105""101190106",  
  631.                 "101190107""101190201""101190202""101190203",  
  632.                 "101190301""101190302""101190303""101190304",  
  633.                 "101190305""101190401""101190402""101190403",  
  634.                 "101190404""101190405""101190406""101190407",  
  635.                 "101190408""101190501""101190502""101190503",  
  636.                 "101190504""101190505""101190506""101190507",  
  637.                 "101190508""101190509""101190601""101190602",  
  638.                 "101190603""101190604""101190605""101190606",  
  639.                 "101190701""101190702""101190703""101190704",  
  640.                 "101190705""101190706""101190707""101190708",  
  641.                 "101190709""101190801""101190802""101190803",  
  642.                 "101190804""101190805""101190806""101190807",  
  643.                 "101190901""101190902""101190903""101190904",  
  644.                 "101190905""101190906""101190907""101190908",  
  645.                 "101191001""101191002""101191003""101191004",  
  646.                 "101191005""101191006""101191007""101191101",  
  647.                 "101191102""101191103""101191201""101191202",  
  648.                 "101191203""101191204""101191205""101191301",  
  649.                 "101191302""101191303""101191304""101200101",  
  650.                 "101200102""101200103""101200104""101200105",  
  651.                 "101200201""101200202""101200203""101200204",  
  652.                 "101200205""101200206""101200207""101200208",  
  653.                 "101200301""101200401""101200402""101200403",  
  654.                 "101200404""101200405""101200406""101200501",  
  655.                 "101200502""101200503""101200504""101200505",  
  656.                 "101200506""101200507""101200508""101200509",  
  657.                 "101200601""101200602""101200603""101200701",  
  658.                 "101200702""101200703""101200704""101200705",  
  659.                 "101200706""101200801""101200802""101200803",  
  660.                 "101200804""101200805""101200806""101200807",  
  661.                 "101200901""101200902""101200903""101200904",  
  662.                 "101200905""101200906""101200907""101200908",  
  663.                 "101200909""101200910""101200911""101200912",  
  664.                 "101201001""101201002""101201003""101201004",  
  665.                 "101201005""101201006""101201007""101201008",  
  666.                 "101201009""101201101""101201102""101201103",  
  667.                 "101201104""101201105""101201106""101201107",  
  668.                 "101201201""101201301""101201302""101201401",  
  669.                 "101201402""101201403""101201501""101201601",  
  670.                 "101201701""101210101""101210102""101210103",  
  671.                 "101210104""101210105""101210106""101210107",  
  672.                 "101210108""101210201""101210202""101210203",  
  673.                 "101210204""101210301""101210302""101210303",  
  674.                 "101210304""101210305""101210306""101210401",  
  675.                 "101210403""101210404""101210405""101210406",  
  676.                 "101210407""101210408""101210409""101210410",  
  677.                 "101210411""101210412""101210501""101210502",  
  678.                 "101210503""101210504""101210505""101210601",  
  679.                 "101210602""101210603""101210604""101210605",  
  680.                 "101210606""101210607""101210608""101210609",  
  681.                 "101210701""101210702""101210703""101210704",  
  682.                 "101210705""101210706""101210707""101210708",  
  683.                 "101210709""101210801""101210802""101210803",  
  684.                 "101210804""101210805""101210806""101210807",  
  685.                 "101210901""101210902""101210903""101210904",  
  686.                 "101210905""101210906""101210907""101210908",  
  687.                 "101211001""101211002""101211003""101211004",  
  688.                 "101211005""101211101""101211102""101211103",  
  689.                 "101211104""101211105""101211106""101220101",  
  690.                 "101220102""101220103""101220104""101220201",  
  691.                 "101220202""101220203""101220204""101220301",  
  692.                 "101220302""101220303""101220304""101220401",  
  693.                 "101220402""101220501""101220502""101220601",  
  694.                 "101220602""101220603""101220604""101220605",  
  695.                 "101220606""101220607""101220608""101220609",  
  696.                 "101220701""101220702""101220703""101220704",  
  697.                 "101220705""101220801""101220802""101220803",  
  698.                 "101220804""101220805""101220806""101220901",  
  699.                 "101220902""101220903""101220904""101221001",  
  700.                 "101221002""101221003""101221004""101221005",  
  701.                 "101221006""101221007""101221008""101221101",  
  702.                 "101221102""101221103""101221104""101221105",  
  703.                 "101221106""101221107""101221201""101221202",  
  704.                 "101221301""101221401""101221402""101221403",  
  705.                 "101221404""101221405""101221406""101221407",  
  706.                 "101221501""101221502""101221503""101221504",  
  707.                 "101221505""101221506""101221507""101221601",  
  708.                 "101221602""101221603""101221604""101221605",  
  709.                 "101221701""101221702""101221703""101221704",  
  710.                 "101221705""101230101""101230102""101230103",  
  711.                 "101230104""101230105""101230106""101230107",  
  712.                 "101230108""101230109""101230110""101230111",  
  713.                 "101230112""101230201""101230202""101230301",  
  714.                 "101230302""101230303""101230304""101230305",  
  715.                 "101230306""101230307""101230308""101230309",  
  716.                 "101230401""101230402""101230403""101230501",  
  717.                 "101230502""101230503""101230504""101230505",  
  718.                 "101230506""101230507""101230508""101230509",  
  719.                 "101230601""101230602""101230603""101230604",  
  720.                 "101230605""101230606""101230607""101230608",  
  721.                 "101230609""101230610""101230701""101230702",  
  722.                 "101230703""101230704""101230705""101230706",  
  723.                 "101230707""101230801""101230802""101230803",  
  724.                 "101230804""101230805""101230806""101230807",  
  725.                 "101230808""101230809""101230810""101230811",  
  726.                 "101230901""101230902""101230903""101230904",  
  727.                 "101230905""101230906""101230907""101230908",  
  728.                 "101230909""101230910""101240101""101240102",  
  729.                 "101240103""101240104""101240105""101240106",  
  730.                 "101240201""101240202""101240203""101240204",  
  731.                 "101240205""101240206""101240207""101240208",  
  732.                 "101240209""101240210""101240211""101240212",  
  733.                 "101240301""101240302""101240303""101240304",  
  734.                 "101240305""101240306""101240307""101240308",  
  735.                 "101240309""101240310""101240311""101240312",  
  736.                 "101240313""101240314""101240401""101240402",  
  737.                 "101240403""101240404""101240405""101240406",  
  738.                 "101240407""101240408""101240409""101240410",  
  739.                 "101240411""101240501""101240502""101240503",  
  740.                 "101240504""101240505""101240506""101240507",  
  741.                 "101240508""101240509""101240510""101240601",  
  742.                 "101240602""101240603""101240604""101240605",  
  743.                 "101240606""101240607""101240608""101240609",  
  744.                 "101240610""101240611""101240612""101240613",  
  745.                 "101240701""101240702""101240703""101240704",  
  746.                 "101240705""101240706""101240707""101240708",  
  747.                 "101240709""101240710""101240711""101240712",  
  748.                 "101240713""101240714""101240715""101240716",  
  749.                 "101240717""101240801""101240802""101240901",  
  750.                 "101240902""101241001""101241002""101241101",  
  751.                 "101241102""101241103""101250101""101250102",  
  752.                 "101250103""101250104""101250201""101250202",  
  753.                 "101250203""101250301""101250302""101250303",  
  754.                 "101250304""101250305""101250306""101250401",  
  755.                 "101250402""101250403""101250404""101250405",  
  756.                 "101250406""101250407""101250408""101250409",  
  757.                 "101250501""101250502""101250503""101250504",  
  758.                 "101250505""101250506""101250507""101250508",  
  759.                 "101250509""101250510""101250511""101250601",  
  760.                 "101250602""101250603""101250604""101250605",  
  761.                 "101250606""101250607""101250700""101250701",  
  762.                 "101250702""101250703""101250704""101250705",  
  763.                 "101250801""101250802""101250803""101250804",  
  764.                 "101250805""101250806""101250901""101250902",  
  765.                 "101250903""101250904""101250905""101250906",  
  766.                 "101250907""101250908""101250909""101250910",  
  767.                 "101251001""101251002""101251003""101251004",  
  768.                 "101251005""101251006""101251101""101251102",  
  769.                 "101251103""101251201""101251202""101251203",  
  770.                 "101251204""101251205""101251206""101251207",  
  771.                 "101251208""101251209""101251210""101251211",  
  772.                 "101251301""101251302""101251401""101251402",  
  773.                 "101251403""101251404""101251405""101251406",  
  774.                 "101251407""101251408""101251409""101251410",  
  775.                 "101251501""101251502""101251503""101251504",  
  776.                 "101251505""101251506""101251507""101251508",  
  777.                 "101260101""101260102""101260103""101260104",  
  778.                 "101260105""101260106""101260107""101260108",  
  779.                 "101260201""101260202""101260203""101260204",  
  780.                 "101260205""101260206""101260207""101260208",  
  781.                 "101260209""101260210""101260211""101260212",  
  782.                 "101260213""101260214""101260301""101260302",  
  783.                 "101260303""101260304""101260305""101260306",  
  784.                 "101260401""101260402""101260403""101260404",  
  785.                 "101260405""101260406""101260407""101260408",  
  786.                 "101260409""101260410""101260411""101260412",  
  787.                 "101260501""101260502""101260503""101260504",  
  788.                 "101260505""101260506""101260507""101260508",  
  789.                 "101260509""101260510""101260511""101260512",  
  790.                 "101260513""101260514""101260515""101260516",  
  791.                 "101260517""101260518""101260601""101260602",  
  792.                 "101260603""101260604""101260605""101260606",  
  793.                 "101260607""101260608""101260609""101260610",  
  794.                 "101260611""101260701""101260702""101260703",  
  795.                 "101260704""101260705""101260706""101260707",  
  796.                 "101260801""101260802""101260803""101260804",  
  797.                 "101260901""101260902""101260903""101260904",  
  798.                 "101260905""101260906""101260907""101260908",  
  799.                 "101260909""101270101""101270102""101270103",  
  800.                 "101270104""101270105""101270106""101270107",  
  801.                 "101270108""101270109""101270110""101270111",  
  802.                 "101270112""101270113""101270114""101270115",  
  803.                 "101270116""101270201""101270202""101270203",  
  804.                 "101270204""101270301""101270302""101270303",  
  805.                 "101270401""101270402""101270403""101270404",  
  806.                 "101270405""101270406""101270407""101270408",  
  807.                 "101270501""101270502""101270503""101270504",  
  808.                 "101270505""101270506""101270507""101270601",  
  809.                 "101270602""101270603""101270604""101270605",  
  810.                 "101270606""101270607""101270701""101270702",  
  811.                 "101270703""101270801""101270802""101270803",  
  812.                 "101270804""101270805""101270901""101270902",  
  813.                 "101270903""101270904""101271001""101271003",  
  814.                 "101271004""101271005""101271006""101271007",  
  815.                 "101271101""101271102""101271103""101271104",  
  816.                 "101271105""101271106""101271107""101271108",  
  817.                 "101271109""101271110""101271111""101271201",  
  818.                 "101271202""101271203""101271204""101271205",  
  819.                 "101271301""101271302""101271303""101271304",  
  820.                 "101271401""101271402""101271403""101271404",  
  821.                 "101271405""101271406""101271407""101271408",  
  822.                 "101271409""101271501""101271502""101271503",  
  823.                 "101271504""101271505""101271506""101271601",  
  824.                 "101271603""101271604""101271605""101271606",  
  825.                 "101271607""101271608""101271609""101271610",  
  826.                 "101271611""101271612""101271613""101271614",  
  827.                 "101271615""101271616""101271617""101271618",  
  828.                 "101271619""101271701""101271702""101271703",  
  829.                 "101271704""101271705""101271706""101271707",  
  830.                 "101271708""101271801""101271802""101271803",  
  831.                 "101271804""101271805""101271806""101271807",  
  832.                 "101271808""101271809""101271810""101271811",  
  833.                 "101271812""101271813""101271814""101271815",  
  834.                 "101271816""101271817""101271818""101271901",  
  835.                 "101271902""101271903""101271904""101271905",  
  836.                 "101271906""101271907""101271908""101271909",  
  837.                 "101271910""101271911""101271912""101271913",  
  838.                 "101271914""101272001""101272002""101272003",  
  839.                 "101272004""101272005""101272006""101272101",  
  840.                 "101272102""101272103""101272104""101272105",  
  841.                 "101280101""101280102""101280103""101280104",  
  842.                 "101280105""101280106""101280201""101280202",  
  843.                 "101280203""101280204""101280205""101280206",  
  844.                 "101280207""101280208""101280209""101280301",  
  845.                 "101280302""101280303""101280304""101280305",  
  846.                 "101280401""101280402""101280403""101280404",  
  847.                 "101280406""101280407""101280408""101280409",  
  848.                 "101280501""101280502""101280503""101280504",  
  849.                 "101280505""101280506""101280601""101280701",  
  850.                 "101280702""101280703""101280800""101280801",  
  851.                 "101280802""101280803""101280901""101280902",  
  852.                 "101280903""101280905""101280906""101280907",  
  853.                 "101280908""101281001""101281002""101281003",  
  854.                 "101281004""101281005""101281006""101281007",  
  855.                 "101281101""101281103""101281104""101281105",  
  856.                 "101281106""101281107""101281108""101281201",  
  857.                 "101281202""101281203""101281204""101281205",  
  858.                 "101281301""101281302""101281303""101281304",  
  859.                 "101281305""101281306""101281307""101281401",  
  860.                 "101281402""101281403""101281404""101281501",  
  861.                 "101281502""101281601""101281701""101281801",  
  862.                 "101281802""101281901""101281902""101281903",  
  863.                 "101281904""101282001""101282002""101282003",  
  864.                 "101282004""101282005""101282101""101282102",  
  865.                 "101282103""101282104""101282105""101290101",  
  866.                 "101290102""101290103""101290104""101290105",  
  867.                 "101290106""101290107""101290108""101290109",  
  868.                 "101290110""101290111""101290112""101290113",  
  869.                 "101290114""101290201""101290202""101290203",  
  870.                 "101290204""101290205""101290206""101290207",  
  871.                 "101290208""101290209""101290210""101290211",  
  872.                 "101290212""101290301""101290302""101290303",  
  873.                 "101290304""101290305""101290306""101290307",  
  874.                 "101290308""101290309""101290310""101290311",  
  875.                 "101290312""101290401""101290402""101290403",  
  876.                 "101290404""101290405""101290406""101290407",  
  877.                 "101290408""101290409""101290501""101290502",  
  878.                 "101290503""101290504""101290505""101290506",  
  879.                 "101290601""101290602""101290603""101290604",  
  880.                 "101290605""101290606""101290607""101290701",  
  881.                 "101290702""101290703""101290704""101290705",  
  882.                 "101290706""101290707""101290708""101290709",  
  883.                 "101290801""101290802""101290803""101290804",  
  884.                 "101290805""101290806""101290807""101290808",  
  885.                 "101290809""101290810""101290901""101290902",  
  886.                 "101290903""101290904""101290905""101290906",  
  887.                 "101290907""101290908""101290909""101290910",  
  888.                 "101290911""101290912""101291001""101291002",  
  889.                 "101291003""101291004""101291005""101291006",  
  890.                 "101291007""101291008""101291009""101291010",  
  891.                 "101291101""101291102""101291103""101291104",  
  892.                 "101291105""101291106""101291107""101291108",  
  893.                 "101291201""101291203""101291204""101291205",  
  894.                 "101291206""101291207""101291301""101291302",  
  895.                 "101291303""101291304""101291401""101291402",  
  896.                 "101291403""101291404""101291501""101291502",  
  897.                 "101291503""101291504""101291505""101291506",  
  898.                 "101291507""101291508""101291601""101291602",  
  899.                 "101291603""101291604""101291605""101300101",  
  900.                 "101300102""101300103""101300104""101300105",  
  901.                 "101300106""101300107""101300108""101300109",  
  902.                 "101300110""101300201""101300202""101300203",  
  903.                 "101300204""101300205""101300206""101300207",  
  904.                 "101300208""101300301""101300302""101300303",  
  905.                 "101300304""101300305""101300306""101300307",  
  906.                 "101300308""101300401""101300402""101300403",  
  907.                 "101300404""101300405""101300501""101300502",  
  908.                 "101300503""101300504""101300505""101300506",  
  909.                 "101300507""101300508""101300509""101300510",  
  910.                 "101300511""101300512""101300513""101300514",  
  911.                 "101300601""101300602""101300603""101300604",  
  912.                 "101300605""101300606""101300701""101300702",  
  913.                 "101300703""101300704""101300705""101300801",  
  914.                 "101300802""101300803""101300901""101300902",  
  915.                 "101300903""101300904""101300905""101301001",  
  916.                 "101301002""101301003""101301004""101301005",  
  917.                 "101301006""101301007""101301008""101301009",  
  918.                 "101301010""101301011""101301012""101301101",  
  919.                 "101301102""101301103""101301201""101301202",  
  920.                 "101301203""101301204""101301205""101301206",  
  921.                 "101301207""101301208""101301209""101301210",  
  922.                 "101301301""101301302""101301303""101301401",  
  923.                 "101301402""101301403""101301404""101301405",  
  924.                 "101310101""101310102""101310201""101310202",  
  925.                 "101310203""101310204""101310205""101310206",  
  926.                 "101310207""101310208""101310209""101310210",  
  927.                 "101310211""101310212""101310213""101310214",  
  928.                 "101310215""101310216""101310217""101310218",  
  929.                 "101310219""101310220""101310221""101310222",  
  930.                 "101310223""101320101""101320102""101320103",  
  931.                 "101320104""101320105""101330101""101340101",  
  932.                 "101340102""101340201""101340202""101340203",  
  933.                 "101340204""101340205""101340301""101340401",  
  934.                 "101340501""101340601""101340602""101340603",  
  935.                 "101340701""101340801""101340802""101340901",  
  936.                 "101340902""101340903""101340904" };  
  937.     }  
  938.   
  939. }  

6.第二个工具类文件

[java] view plain copy print ?
  1. package mars.com;  
  2.   
  3. import java.io.BufferedReader;  
  4. import java.io.IOException;  
  5. import java.io.InputStreamReader;  
  6. import java.net.HttpURLConnection;  
  7. import java.net.URL;  
  8.   
  9. public class HttpDownloader {  
  10.     // 根据URL下载文件,前提是这个文件当中的内容是文本,函数的返回值就是文本当中的内容  
  11.     // 1.创建一个URL对象  
  12.     // 2.通过URL对象,创建一个HttpURLConnection对象  
  13.     // 3.得到InputStream  
  14.     // 4.从InputStream当中读取数据  
  15.     private URL url;  
  16.   
  17.     public String download(String urlStr) {  
  18.         StringBuffer sb = new StringBuffer();  
  19.         String line = null;  
  20.         BufferedReader buffer = null;  
  21.         try {  
  22.             url = new URL(urlStr);  
  23.             HttpURLConnection urlConn = (HttpURLConnection) url  
  24.                     .openConnection();  
  25.             buffer = new BufferedReader(new InputStreamReader(  
  26.                     urlConn.getInputStream()));  
  27.             while ((line = buffer.readLine()) != null) {  
  28.                 sb.append(line);  
  29.             }  
  30.         } catch (Exception e) {  
  31.             e.printStackTrace();  
  32.         } finally {  
  33.             try {  
  34.                 buffer.close();  
  35.             } catch (IOException e) {  
  36.                 e.printStackTrace();  
  37.             }  
  38.         }  
  39.         return sb.toString();  
  40.     }  
  41. }  


主文件如下

[java] view plain copy print ?
  1. package mars.com;  
  2.   
  3. import java.io.BufferedInputStream;  
  4. import java.io.InputStream;  
  5. import java.net.URL;  
  6. import java.net.URLConnection;  
  7. import java.util.HashMap;  
  8. import java.util.Map;  
  9.   
  10. import org.json.JSONObject;  
  11.   
  12. import android.app.Activity;  
  13. import android.graphics.Bitmap;  
  14. import android.graphics.BitmapFactory;  
  15. import android.os.Bundle;  
  16. import android.view.View;  
  17. import android.view.View.OnClickListener;  
  18. import android.widget.AdapterView;  
  19. import android.widget.AdapterView.OnItemSelectedListener;  
  20. import android.widget.ArrayAdapter;  
  21. import android.widget.Button;  
  22. import android.widget.EditText;  
  23. import android.widget.ImageView;  
  24. import android.widget.Spinner;  
  25. import android.widget.TextView;  
  26.   
  27. public class DemoWeatherJSONActivity extends Activity {  
  28.     private Spinner spinPro;  
  29.     private Spinner spinCity;  
  30.     private Button button1;  
  31.     private EditText etInput;  
  32.     private Button button2;  
  33.     private ImageView image1;  
  34.     private ImageView image2;  
  35.     private ImageView image3;  
  36.     private ImageView image4;  
  37.     private ImageView image5;  
  38.     private ImageView image6;  
  39.     private TextView text1;  
  40.     private TextView text2;  
  41.     private TextView text3;  
  42.   
  43.     private Map<String, String> mapAllNameID;  
  44.     private String[] strNamePro;// 所有的市  
  45.     private String[][] strNameCity;// 所有的城市  
  46.     private String name;// 要查询地址  
  47.     private String id;// 要查询的id  
  48.     private String strUrl;  
  49.     private String jsonData;  
  50.     // 要现实的天气信息  
  51.     private StringBuffer weatherInfo1;  
  52.     private StringBuffer weatherInfo2;  
  53.     private StringBuffer weatherInfo3;  
  54.     // 图片资源14,25,36  
  55.     private String weatherPicUrl1;  
  56.     private String weatherPicUrl2;  
  57.     private String weatherPicUrl3;  
  58.     private String weatherPicUrl4;  
  59.     private String weatherPicUrl5;  
  60.     private String weatherPicUrl6;  
  61.   
  62.     private ArrayAdapter<CharSequence> adapterCity;  
  63.     private ArrayAdapter<CharSequence> adapterPro;  
  64.   
  65.     @Override  
  66.     public void onCreate(Bundle savedInstanceState) {  
  67.         super.onCreate(savedInstanceState);  
  68.         setContentView(R.layout.main);  
  69.         this.initWidget();  
  70.         this.initVar();  
  71.         this.binding();  
  72.     }  
  73.   
  74.     private void initVar() {  
  75.         // strUrl = "http://m.weather.com.cn/data/101010100.html";  
  76.         // 得到所有的键值对  
  77.         mapAllNameID = new HashMap<String, String>();  
  78.         NameIDMap nameIDMap = new NameIDMap();  
  79.         mapAllNameID = nameIDMap.getMapAllNameID();  
  80.         // 初始化省市级  
  81.         strNamePro = new String[] { "黑龙江""吉林""辽宁""内蒙古""河北""山西""陕西",  
  82.                 "山东""新疆""西藏""青海""甘肃""宁夏""河南""江苏""湖北""浙江",  
  83.                 "安徽""福建""江西""湖南""贵州""四川""广东""云南""广西""海南",  
  84.                 "台湾" };  
  85.         strNameCity = new String[][] {  
  86.                 { "哈尔滨""齐齐哈尔""牡丹江""佳木斯""绥化""黑河""大兴安岭""伊春""大庆",  
  87.                         "鸡西""鹤岗""双鸭山" },  
  88.                 { "长春""吉林""延吉""四平""通化""白城""辽源""松原""白山" },  
  89.                 { "沈阳""大连""鞍山""抚顺""本溪""丹东""锦州""营口""阜新""辽阳",  
  90.                         "铁岭""朝阳""盘锦""葫芦岛" },  
  91.                 { "呼和浩特""包头""乌海""集宁""通辽""赤峰""鄂尔多斯""临河""锡林浩特",  
  92.                         "海拉尔""乌兰浩特""阿拉善左旗" },  
  93.                 { "石家庄""保定""张家口""唐山""廊坊""沧州""衡水""邢台""邯郸""秦皇岛" },  
  94.                 { "太原""大同""阳泉""晋中""长治""晋城""临汾""运城""朔州""忻州",  
  95.                         "离石" },  
  96.                 { "西安""三原""延长""榆林""渭南""商洛""安康""汉中""宝鸡""铜川" },  
  97.                 { "济南""青岛""淄博""德州""烟台""潍坊""济宁""泰安""临沂""菏泽",  
  98.                         "滨州""东营""威海""枣庄""日照""莱芜""聊城" },  
  99.                 { "乌鲁木齐""克拉玛依""石河子""昌吉""吐鲁番""库尔勒""阿拉尔""阿克苏",  
  100.                         "喀什""伊宁""塔城""哈密""和田""阿勒泰""阿图什""博乐" },  
  101.                 { "拉萨""日喀则""山南""林芝""昌都""那曲""阿里" },  
  102.                 { "西宁""海东""黄南""海南""果洛""玉树""海西""海北" },  
  103.                 { "兰州""定西""平凉""庆阳""武威""金昌""张掖""酒泉""天水""武都",  
  104.                         "临夏""合作""白银" },  
  105.                 { "银川""石嘴山""吴忠""固原""中卫" },  
  106.                 { "郑州""安阳""新乡""许昌""平顶山""信阳""南阳""开封""洛阳""商丘",  
  107.                         "焦作""鹤壁""濮阳""周口""漯河""驻马店""三门峡""济源" },  
  108.                 { "南京""无锡""镇江""苏州""南通""扬州""盐城""徐州""淮安""连云港",  
  109.                         "常州""泰州""宿迁" },  
  110.                 { "武汉""襄樊""鄂州""孝感""黄冈""黄石""咸宁""荆州""宜昌""恩施",  
  111.                         "十堰""神农架""随州""荆门""天门""仙桃""潜江" },  
  112.                 { "杭州""湖州""嘉兴""宁波""绍兴""台州""温州""丽水""金华""衢州",  
  113.                         "舟山" },  
  114.                 { "合肥""蚌埠""芜湖""淮南""马鞍山""安庆""宿州""阜阳""亳州""黄山站",  
  115.                         "滁州""淮北""铜陵""宣城""六安""巢湖""池州" },  
  116.                 { "福州""厦门""宁德""莆田""泉州""漳州""龙岩""三明""南平" },  
  117.                 { "南昌""九江""上饶""抚州""宜春""吉安""赣州""景德镇""萍乡""新余",  
  118.                         "鹰潭" },  
  119.                 { "长沙""湘潭""株洲""衡阳""郴州""常德""赫山区""娄底""邵阳""岳阳",  
  120.                         "张家界""怀化""黔阳""永州""吉首" },  
  121.                 { "贵阳""遵义""安顺""都匀""凯里""铜仁""毕节""六盘水""黔西" },  
  122.                 { "成都""攀枝花""自贡""绵阳""南充""达州""遂宁""广安""巴中""泸州",  
  123.                         "宜宾""内江""资阳""乐山""眉山""凉山""雅安""甘孜""阿坝",  
  124.                         "德阳""广元" },  
  125.                 { "广州""韶关""惠州""梅州""汕头""深圳""珠海""顺德""肇庆""湛江",  
  126.                         "江门""河源""清远""云浮""潮州""东莞""中山""阳江""揭阳",  
  127.                         "茂名""汕尾" },  
  128.                 { "昆明""大理""红河""曲靖""保山""文山""玉溪""楚雄""普洱""昭通",  
  129.                         "临沧""怒江""香格里拉""丽江""德宏""景洪" },  
  130.                 { "南宁""崇左""柳州""来宾""桂林""梧州""贺州""贵港""玉林""百色",  
  131.                         "钦州""河池""北海""防城港" }, { "海口""三亚" },  
  132.                 { "台北县""高雄""台南""台中""桃园""新竹县""宜兰""马公""嘉义" } };  
  133.   
  134.         adapterPro = new ArrayAdapter<CharSequence>(getApplicationContext(),  
  135.                 android.R.layout.simple_spinner_item, strNamePro);  
  136.         adapterPro  
  137.                 .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);  
  138.         spinPro.setAdapter(adapterPro);  
  139.     }  
  140.   
  141.     class ProSelectListener implements OnItemSelectedListener {  
  142.         public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,  
  143.                 long arg3) {  
  144.             adapterCity = new ArrayAdapter<CharSequence>(  
  145.                     DemoWeatherJSONActivity.this,  
  146.                     android.R.layout.simple_spinner_item, strNameCity[arg2]);// 定义我们所有的列表项  
  147.             adapterCity  
  148.                     .setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);  
  149.             spinCity.setAdapter(adapterCity);  
  150.         }  
  151.   
  152.         public void onNothingSelected(AdapterView<?> arg0) {  
  153.         }  
  154.     }  
  155.   
  156.     class CitySelectListener implements OnItemSelectedListener {  
  157.         public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2,  
  158.                 long arg3) {  
  159.             name = spinCity.getSelectedItem().toString();  
  160.         }  
  161.   
  162.         public void onNothingSelected(AdapterView<?> arg0) {  
  163.         }  
  164.     }  
  165.   
  166.     class Button1Listener implements OnClickListener {  
  167.         public void onClick(View v) {  
  168.             // 根据选中的名字得到对应的id然后下载网页  
  169.             NameIDMap nameIDMap = new NameIDMap();  
  170.             mapAllNameID = nameIDMap.getMapAllNameID();  
  171.             id = mapAllNameID.get(name);  
  172.             strUrl = "http://m.weather.com.cn/data/" + id + ".html";  
  173.             // 将网页上的内容下载下来  
  174.             HttpDownloader http = new HttpDownloader();  
  175.             jsonData = http.download(strUrl);  
  176.             // 天气情况  
  177.             parseJson(jsonData);  
  178.             // 天气图片  
  179.             weatherPic();  
  180.         }  
  181.     }  
  182.   
  183.     private void weatherPic() {// 天气图片  
  184.         try {  
  185.             image1.setImageBitmap(getBitmap(weatherPicUrl1));  
  186.             image2.setImageBitmap(getBitmap(weatherPicUrl2));  
  187.             image3.setImageBitmap(getBitmap(weatherPicUrl3));  
  188.             image4.setImageBitmap(getBitmap(weatherPicUrl4));  
  189.             image5.setImageBitmap(getBitmap(weatherPicUrl5));  
  190.             image6.setImageBitmap(getBitmap(weatherPicUrl6));  
  191.         } catch (Exception e) {  
  192.             e.printStackTrace();  
  193.         }  
  194.     }  
  195.   
  196.     // 根据图片的url得到要显示的图片  
  197.     private Bitmap getBitmap(String url) {  
  198.         Bitmap bm = null;// 生成了一张bmp图像  
  199.         try {  
  200.             URL iconurl = new URL("http://m.weather.com.cn/img/b" + url  
  201.                     + ".gif");  
  202.             URLConnection conn = iconurl.openConnection();  
  203.             conn.connect();  
  204.             // 获得图像的字符流  
  205.             InputStream is = conn.getInputStream();  
  206.             BufferedInputStream bis = new BufferedInputStream(is, 8192);  
  207.             bm = BitmapFactory.decodeStream(bis);  
  208.             bis.close();  
  209.             is.close();// 关闭流  
  210.         } catch (Exception e) {  
  211.             e.printStackTrace();  
  212.         }  
  213.         return bm;  
  214.     }  
  215.   
  216.     // json数据解析  
  217.     private void parseJson(String jsonData) {  
  218.         try {  
  219.             JSONObject allWeatherData = new JSONObject(jsonData);  
  220.             JSONObject weatherData = allWeatherData  
  221.                     .getJSONObject("weatherinfo");  
  222.             // 第一天的天气情况  
  223.             weatherInfo1 = new StringBuffer();  
  224.             weatherInfo1.append("地点:" + weatherData.getString("city"));  
  225.             weatherInfo1.append("\n时间:" + weatherData.getString("date_y")  
  226.                     + "     " + weatherData.getString("week"));  
  227.             weatherInfo1.append("\n今日天气:" + weatherData.getString("weather1"));  
  228.             weatherInfo1.append("\n温度:" + weatherData.getString("temp1"));  
  229.             weatherPicUrl1 = weatherData.getString("img1");  
  230.             weatherPicUrl2 = weatherData.getString("img2");  
  231.             weatherInfo1.append("\n风速:" + weatherData.getString("wind1") + "    "  
  232.                     + weatherData.getString("fl1"));  
  233.             // 第二天的天气情况  
  234.             weatherInfo2 = new StringBuffer();  
  235.             weatherInfo2.append("明天天气:" + weatherData.getString("weather2"));  
  236.             weatherInfo2.append("\n温度:" + weatherData.getString("temp2"));  
  237.             weatherPicUrl3 = weatherData.getString("img3");  
  238.             weatherPicUrl4 = weatherData.getString("img4");  
  239.             weatherInfo2.append("\n风速:" + weatherData.getString("wind2") + "    "  
  240.                     + weatherData.getString("fl2"));  
  241.             // 第三天的天气情况  
  242.             weatherInfo3 = new StringBuffer();  
  243.             weatherInfo3.append("后天天气:" + weatherData.getString("weather3"));  
  244.             weatherInfo3.append("\n温度:" + weatherData.getString("temp3"));  
  245.             weatherPicUrl5 = weatherData.getString("img5");  
  246.             weatherPicUrl6 = weatherData.getString("img6");  
  247.             weatherInfo3.append("\n风速:" + weatherData.getString("wind3") + "    "  
  248.                     + weatherData.getString("fl3"));  
  249.   
  250.             text1.setText(weatherInfo1);  
  251.             text2.setText(weatherInfo2);  
  252.             text3.setText(weatherInfo3);  
  253.   
  254.         } catch (Exception e) {  
  255.             e.printStackTrace();  
  256.         }  
  257.     }  
  258.   
  259.     class Button2Listener implements OnClickListener {  
  260.         public void onClick(View v) {  
  261.             NameIDMap nameIDMap = new NameIDMap();  
  262.             mapAllNameID = nameIDMap.getMapAllNameID();  
  263.             id = mapAllNameID.get(etInput.getText().toString());  
  264.             strUrl = "http://m.weather.com.cn/data/" + id + ".html";  
  265.             // 将网页上的内容下载下来  
  266.             HttpDownloader http = new HttpDownloader();  
  267.             jsonData = http.download(strUrl);  
  268.             // 天气情况  
  269.             parseJson(jsonData);  
  270.             // 天气图片  
  271.             weatherPic();  
  272.         }  
  273.     }  
  274.   
  275.     private void binding() {// 绑定监听器  
  276.         button1.setOnClickListener(new Button1Listener());  
  277.         button2.setOnClickListener(new Button2Listener());  
  278.         spinPro.setOnItemSelectedListener(new ProSelectListener());  
  279.         spinCity.setOnItemSelectedListener(new CitySelectListener());  
  280.     }  
  281.   
  282.     private void initWidget() {// 控件初始化  
  283.         spinPro = (Spinner) findViewById(R.id.spinner1);  
  284.         spinCity = (Spinner) findViewById(R.id.spinner2);  
  285.         button1 = (Button) findViewById(R.id.button1);  
  286.         button2 = (Button) findViewById(R.id.button2);  
  287.         etInput = (EditText) findViewById(R.id.editText1);  
  288.         text1 = (TextView) findViewById(R.id.textView1);  
  289.         text2 = (TextView) findViewById(R.id.textView2);  
  290.         text3 = (TextView) findViewById(R.id.textView3);  
  291.         image1 = (ImageView) findViewById(R.id.imageView1);  
  292.         image2 = (ImageView) findViewById(R.id.imageView2);  
  293.         image3 = (ImageView) findViewById(R.id.imageView3);  
  294.         image4 = (ImageView) findViewById(R.id.imageView4);  
  295.         image5 = (ImageView) findViewById(R.id.imageView5);  
  296.         image6 = (ImageView) findViewById(R.id.imageView6);  
  297.     }  
  298.   
  299. }  





你可能感兴趣的:(json,android,image,String,layout,button)