老高最近在处理天气预报的问题时总结了一下,备用!

百度接口

URL:http://api.map.baidu.com/telematics/v3/weather?location=西安&output=json&ak=XXX

AK为百度开发者应用的app_key,获取地址为http://lbsyun.baidu.com/apiconsole/key

json预览:

{
    "error": 0,
    "status": "success",
    "date": "2015-03-25",
    "results": [
        {
            "currentCity": "西安",
            "pm25": "39",
            "index": [
                {
                    "title": "穿衣",
                    "zs": "较冷",
                    "tipt": "穿衣指数",
                    "des": "建议着厚外套加毛衣等服装。年老体弱者宜着大衣、呢外套加羊毛衫。"
                },
                {
                    "title": "洗车",
                    "zs": "不宜",
                    "tipt": "洗车指数",
                    "des": "不宜洗车,未来24小时内有雨,如果在此期间洗车,雨水和路上的泥水可能会再次弄脏您的爱车。"
                },
                {
                    "title": "旅游",
                    "zs": "适宜",
                    "tipt": "旅游指数",
                    "des": "天气较好,温度适宜,总体来说还是好天气哦,这样的天气适宜旅游,您可以尽情地享受大自然的风光。"
                },
                {
                    "title": "感冒",
                    "zs": "少发",
                    "tipt": "感冒指数",
                    "des": "各项气象条件适宜,无明显降温过程,发生感冒机率较低。"
                },
                {
                    "title": "运动",
                    "zs": "较适宜",
                    "tipt": "运动指数",
                    "des": "阴天,较适宜进行各种户内外运动。"
                },
                {
                    "title": "紫外线强度",
                    "zs": "最弱",
                    "tipt": "紫外线强度指数",
                    "des": "属弱紫外线辐射天气,无需特别防护。若长期在户外,建议涂擦SPF在8-12之间的防晒护肤品。"
                }
            ],
            "weather_data": [
                {
                    "date": "周三 03月25日 (实时:6℃)",
                    "dayPictureUrl": "http://api.map.baidu.com/images/weather/day/xiaoyu.png",
                    "nightPictureUrl": "http://api.map.baidu.com/images/weather/night/xiaoyu.png",
                    "weather": "小雨",
                    "wind": "东风微风",
                    "temperature": "6℃"
                },
                {
                    "date": "周四",
                    "dayPictureUrl": "http://api.map.baidu.com/images/weather/day/yin.png",
                    "nightPictureUrl": "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    "weather": "阴转多云",
                    "wind": "东风微风",
                    "temperature": "14 ~ 6℃"
                },
                {
                    "date": "周五",
                    "dayPictureUrl": "http://api.map.baidu.com/images/weather/day/duoyun.png",
                    "nightPictureUrl": "http://api.map.baidu.com/images/weather/night/duoyun.png",
                    "weather": "多云",
                    "wind": "东风微风",
                    "temperature": "19 ~ 10℃"
                },
                {
                    "date": "周六",
                    "dayPictureUrl": "http://api.map.baidu.com/images/weather/day/duoyun.png",
                    "nightPictureUrl": "http://api.map.baidu.com/images/weather/night/yin.png",
                    "weather": "多云转阴",
                    "wind": "东风微风",
                    "temperature": "22 ~ 10℃"
                }
            ]
        }
    ]
}

获取地区编码

function get_city_array(){
    return array('岳西' =>101220608,'海拉尔' =>101081001,'乐亭' =>101090506,'曲沃' =>101100702,'泸水' =>101291205,'宁城' =>101080613,'头道湖' =>101081207,'乌兰浩特' =>101081101,'泰宁' =>101230804,'勐海' =>101291603,'硕龙' =>101300110,'都安' =>101301210,'兴城' =>101071404,'会昌' =>101240711,'长兴' =>101210202,'巴彦诺尔贡' =>101081209,'夏县' =>101100812,'天峻' =>101150708,'台山' =>101281106,'岑巩' =>101260502,'新界' =>101320103,'高淳' =>101190103,'胶南' =>101120206,'丽江' =>101291401,'南沙岛' =>101310220,'仁怀' =>101260203,'临湘' =>101251006,'贵定' =>101260402,'东兰' =>101301203,'汶川' =>101271902,'西乌珠穆沁旗' =>101080910,'诺木洪' =>101150711,'梧州' =>101300601,'灵宝' =>101181702,'西青' =>101030500,'泰安' =>101120801,'东兴' =>101301403,'白云鄂博' =>101080202,'郓城' =>101121003,'彭水' =>101043200,'朝阳' =>101071201,'雅布赖' =>101081210,'察布查尔' =>101131002,'仪陇' =>101270505,'栖霞' =>101120507,'括苍山' =>101210602,'十三间房气象站' =>101130106,'象山' =>101210406,'任县' =>101090918,'赣榆' =>101191003,'鹤山' =>101281108,'德保' =>101301004,'大宁' =>101100705,'武城' =>101120402,'南汇' =>101020600,'会宁' =>101161303,'邱北' =>101290606,'微山' =>101120703,'灌南' =>101191005,'镇海' =>101210412,'舞阳' =>101181503,'香河' =>101090604,'牟平' =>101120509,'垣曲' =>101100809,'福海' =>101131407,'富川' =>101300703,'塔城' =>101131101,'攀枝花' =>101270201,'绥宁' =>101250906,'胡尔勒' =>101081104,'镇赉' =>101060604,'大安' =>101060603,'灵石' =>101100411,'张北' =>101090303,'灵邱' =>101100206,'平原' =>101120408,'蛟河' =>101060204,'炮台' =>101130302,'达川' =>101270607,'酒泉' =>101160801,'永善' =>101291008,'达州' =>101270601,'泰和' =>101240611,'荆门' =>101201401,'万全' =>101090310,'京山' =>101201403,'宁明' =>101300207,'老河口' =>101200206,'大邑' =>101270108,'威海' =>101121301,'大洼' =>101071302,'邵武' =>101230904,'平江' =>101251005,'天祝' =>101160505,'鄞州' =>101210411,'岫岩' =>101070303,'衡东' =>101250403,'商都' =>101080404,'库车' =>101130807,'行唐' =>101090105,'宁津' =>101120409,'文昌' =>101310212,'绿葱坡' =>101201009,'盂县' =>101100302,'南雄' =>101280207,'安国' =>101090220,'富民' =>101290109,'安图' =>101060303,'南江' =>101270903,'海南' =>101150401,'从化' =>101280103,'宾川' =>101290205,'巫溪' =>101041800,'禄丰' =>101290808,'饶平' =>101281502,'平谷' =>101011500,'宽城' =>101090409,'凤冈' =>101260206,'上思' =>101301402,'清镇' =>101260108,'克什克腾旗' =>101080608,'金坛' =>101191103,'闵行' =>101020200,'增城' =>101280104,'兴宁' =>101280402,'竹山' =>101201105,'怀宁' =>101220605,'徐家汇' =>101021200,'扶绥' =>101300206,'昭平' =>101300702,'陆川' =>101300905,'阿图什' =>101131501,'宁洱' =>101290912,'宿松' =>101220606,'惠来' =>101281904,'介休' =>101100412,'托勒' =>101150805,'金平' =>101290312,'弋阳' =>101240309,'宁安' =>101050306,'福鼎' =>101230308,'沙雅' =>101130806,'孟州' =>101181108,'北塔山' =>101130409,'喀左' =>101071204,'色达' =>101271813,'鹤岗' =>101051201,'赤水' =>101260208,'番禺' =>101280102,'兴安' =>101300506,'怀安' =>101090309,'冷水江' =>101250803,'金沙' =>101260703,'获嘉' =>101180302,'郎溪' =>101221407,'紫阳' =>101110702,'阜阳' =>101220801,'五寨' =>101101014,'浮山' =>101100715,'武宁' =>101240204,'河源' =>101281201,'夏河' =>101161208,'沈阳' =>101070101,'逊克' =>101050604,'赤峰郊区站' =>101080602,'文安' =>101090606,'成安' =>101091004,'西昌' =>101271610,'桂林' =>101300501,'米泉' =>101130403,'龙门' =>101280305,'柳河' =>101060503,'薛城' =>101121402,'合肥' =>101220101,'六安' =>101221501,'上饶县' =>101240308,'贺州' =>101300701,'那日图' =>101080919,'江山' =>101211005,'门源' =>101150802,'新野' =>101180709,'梅河口' =>101060502,'武安' =>101091016,'黄石' =>101200601,'诸暨' =>101210502,'南县' =>101250702,'沁阳' =>101181104,'茂名' =>101282001,'平远' =>101280407,'泸县' =>101271003,'察哈尔右翼前旗' =>101080408,'长丰' =>101220102,'饶河' =>101051304,'林西' =>101080607,'孝义' =>101101110,'抚远' =>101050403,'如东' =>101190504,'兴和' =>101080406,'麻阳' =>101251208,'花垣' =>101251508,'伊克乌素' =>101080707,'卢氏' =>101181704,'鄂州' =>101200301,'武邑' =>101090803,'西宁' =>101150101,'玉屏' =>101260603,'十堰' =>101201101,'黄茅洲' =>101280703,'蒙山' =>101300605,'班玛' =>101150502,'枣阳' =>101200208,'海盐' =>101210306,'华亭' =>101160305,'井冈山' =>101240608,'德江' =>101260610,'电白' =>101282004,'塘沽' =>101031100,'北道区' =>101160902,'修文' =>101260107,'高力板' =>101080510,'屯溪' =>101221003,'麻黄山' =>101170305,'莫力达瓦旗' =>101081004,'本溪' =>101070501,'长清' =>101120102,'壤塘' =>101271911,'东丰' =>101060702,'北宁' =>101070703,'沙县' =>101230808,'开原' =>101071102,'平坝' =>101260304,'定日' =>101140205,'西安' =>101110101,'晴隆' =>101260902,'彭县' =>101270116,'武定' =>101290807,'横县' =>101300104,'库米什' =>101130609,'衡山' =>101250402,'开江' =>101270603,'宣恩' =>101201005,'灵璧' =>101220703,'伊宁县' =>101131004,'科尔沁右翼中旗' =>101081103,'建平县' =>101071207,'草河口' =>101070503,'北安' =>101050606,'九江' =>101240201,'关岭' =>101260306,'光山' =>101180604,'新源' =>101131006,'确山' =>101181609,'巴楚' =>101130908,'甘泉' =>101110308,'波密' =>101140402,'将乐' =>101230805,'济源' =>101181801,'宁晋' =>101090908,'宁强' =>101110809,'托托河' =>101150602,'定襄' =>101101002,'科尔沁左翼中旗' =>101080503,'武宣' =>101300405,'东丽' =>101030400,'长顺' =>101260404,'吴堡' =>101110411,'弥渡' =>101290206,'五台县豆村' =>101101003,'安达' =>101050503,'昭通' =>101291001,'郴州' =>101250501,'南平' =>101230901,'桐柏' =>101180712,'天柱' =>101260514,'崇义' =>101240702,'商丘' =>101181001,'苏尼特右旗' =>101080907,'佳县' =>101110404,'淮阴县' =>101190906,'班戈' =>101140604,'昌乐' =>101120605,'辉县' =>101180304,'榆社' =>101100403,'龙胜' =>101300503,'北流' =>101300903,'偃师' =>101180908,'西和' =>101161006,'天门' =>101201501,'麦积' =>101160908,'丁青' =>101140502,'涟源' =>101250806,'江夏' =>101200105,'长乐' =>101230110,'南坪' =>101271914,'榆林' =>101110401,'上杭' =>101230705,'榆次' =>101100402,'石屏' =>101290302,'玉山' =>101340903,'灵寿' =>101090106,'武强' =>101090804,'永仁' =>101290810,'通化' =>101060501,'中泉子' =>101081208,'曲靖' =>101290401,'平台' =>101031300,'玉田' =>101090508,'合作' =>101161201,'拉萨' =>101140101,'益阳' =>101250700,'固镇' =>101220203,'双阳' =>101060106,'东山' =>101230608,'连州' =>101281303,'北戴河' =>101091106,'昆明' =>101290101,'呼和浩特市郊区' =>101080106,'海原' =>101170504,'开县' =>101041500,'邢台县浆水' =>101090903,'安县' =>101270404,'营山' =>101270503,'南召' =>101180702,'新林' =>101050706,'秀山' =>101043600,'南澎岛' =>101280506,'冀州' =>101090810,'襄汾' =>101100707,'云和' =>101210806,'无棣' =>101121103,'宁海' =>101210408,'斗门' =>101280702,'耿马' =>101291103,'建始' =>101201003,'巴林左旗' =>101080605,'林芝' =>101140401,'兴海' =>101150406,'正兰旗' =>101080914,'子洲' =>101110409,'凌海' =>101070702,'凤山' =>101301208,'古县' =>101100717,'台前' =>101181302,'青阳' =>101221703,'渝北' =>101040700,'开远' =>101290307,'明水' =>101050505,'缙云' =>101210804,'安远' =>101240712,'古蔺' =>101271006,'来凤' =>101201007,'巨野' =>101121006,'利川' =>101201002,'伊川' =>101180906,'龙泉驿' =>101270102,'阜南' =>101220802,'东乡' =>101240411,'吐鲁番' =>101130501,'霞云岭' =>101012100,'瓦房店' =>101070202,'沂源' =>101120306,'都兰' =>101150710,'东港' =>101340202,'连南' =>101281302,'七台河' =>101051002,'越西' =>101271615,'浦北' =>101301102,'通许' =>101180804,'东乌珠穆沁旗' =>101080909,'锡林浩特' =>101080901,'延川' =>101110302,'若羌' =>101130604,'印江' =>101260607,'邵阳' =>101250901,'嵊山' =>101211103,'凤翔' =>101110906,'蕉岭' =>101280403,'桦甸' =>101060206,'沙河' =>101090917,'耒阳' =>101250408,'凉城' =>101080407,'太仆寺旗' =>101080911,'平度' =>101120208,'平泉' =>101090405,'舒兰' =>101060202,'开平' =>101281103,'安平' =>101090806,'满城' =>101090202,'柳城' =>101300302,'万山' =>101260604,'侯马' =>101100714,'南通' =>101190501,'五指山' =>101310222,'烟筒山' =>101060207,'吕泗' =>101190505,'泰兴' =>101191203,'鹤峰' =>101201006,'孤家子' =>101060406,'中牟' =>101180107,'株洲县' =>101250304,'宝兴' =>101271708,'石渠' =>101271812,'定安' =>101310209,'长岛' =>101120503,'富县' =>101110305,'庄浪' =>101160306,'郑州' =>101180101,'浪卡子' =>101140305,'涞水' =>101090213,'绥芬河' =>101050305,'凤凰' =>101251505,'平舆' =>101181607,'仙桃' =>101201601,'上林' =>101300107,'加格达奇' =>101050708,'礼县' =>101161007,'东岗' =>101060904,'内乡' =>101180706,'德庆' =>101280905,'定西' =>101160201,'漳州' =>101230601,'信阳' =>101180601,'本溪县' =>101070502,'羊山' =>101071206,'米易' =>101270203,'汉阴' =>101110704,'石景山' =>101011000,'常州' =>101191101,'合阳' =>101110509,'盐城' =>101190701,'甘孜' =>101271801,'綦江' =>101043300,'通州' =>101190509,'理县' =>101271903,'云浮' =>101281401,'咸阳' =>101110200,'汪清' =>101060304,'北海' =>101301301,'贵德' =>101150404,'吴县东山' =>101190405,'鄞县' =>101210409,'淮安' =>101190901,'大关' =>101291010,'大兴' =>101011100,'临武' =>101250505,'渠县' =>101270605,'肇源' =>101050904,'荆州' =>101200801,'汕尾' =>101282101,'周村' =>101120305,'安庆' =>101220601,'歙县' =>101221006,'栾川' =>101180909,'万荣' =>101100804,'曲周' =>101091015,'腾冲' =>101290506,'景东' =>101290903,'永嘉' =>101210708,'梨树' =>101060403,'长岭' =>101060804,'辽阳县' =>101071002,'福清' =>101230111,'阿拉山口' =>101131606,'南康' =>101240704,'澜沧' =>101290904,'绵阳' =>101270401,'黔阳' =>101251301,'哈密' =>101131201,'九台' =>101060104,'宾县' =>101050105,'淅川' =>101180708,'富裕' =>101050205,'宁都' =>101240707,'隆化' =>101090407,'三水' =>101280802,'三穗' =>101260509,'西充' =>101270506,'揭阳' =>101281901,'霍山' =>101221506,'罗江' =>101272006,'星子' =>101240209,'鄢陵' =>101180402,'富平' =>101110506,'察哈尔右翼后旗' =>101080410,'甘洛' =>101271616,'夏津' =>101120410,'汝城' =>101250508,'沁水' =>101100602,'青川' =>101272103,'辛集' =>101090114,'青州' =>101120602,'成都' =>101270101,'兰屿' =>101340205,'尉犁' =>101130603,'酉阳' =>101043400,'兖州' =>101120705,'新会' =>101281104,'吴起' =>101110312,'奈曼旗' =>101080508,'代县' =>101101008,'太湖' =>101220603,'法库' =>101070105,'清水河' =>101150507,'铁岭' =>101071101,'千阳' =>101110903,'赫章' =>101260702,'武都' =>101161001,'石岛' =>101121306,'高碑店' =>101090221,'从江' =>101260517,'海口' =>101310101,'淳化' =>101110204,'安新' =>101090211,'黄冈' =>101200501,'南靖' =>101230603,'玛曲' =>101161206,'斋堂' =>101012000,'广饶' =>101121205,'乌拉盖' =>101080917,'邱县' =>101091010,'福山' =>101120508,'金昌' =>101160601,'萝北' =>101051203,'颍上' =>101220803,'铜川' =>101111001,'安吉' =>101210203,'龙川' =>101281205,'孟连' =>101290908,'竹溪' =>101201102,'登封' =>101180104,'盐津' =>101291009,'龙州' =>101300203,'红柳河' =>101130505,'民勤' =>101160502,'东莞' =>101281601,'丹寨' =>101260508,'两当' =>101161009,'河间' =>101090714,'阿鲁科尔沁旗' =>101080603,'尼勒克' =>101131003,'正宁' =>101160406,'吉木乃' =>101131405,'狮泉河' =>101140704,'眉县' =>101110908,'望奎' =>101050506,'房县' =>101201106,'夏邑' =>101181008,'方城' =>101180703,'利辛' =>101220903,'绥德' =>101110410,'牟定' =>101290805,'卓资' =>101080402,'和硕' =>101130608,'洛宁' =>101180905,'铜梁' =>101042800,'磁县' =>101091007,'中心站' =>101150107,'正安' =>101260211,'大足' =>101042600,'铜陵' =>101221301,'龙陵' =>101290503,'汉川' =>101200406,'阿坝' =>101271901,'阳曲' =>101100103,'迁安' =>101090511,'汾阳' =>101101111,'南城' =>101240408,'襄垣' =>101100505,'合川' =>101040300,'宁冈' =>101240613,'建阳' =>101230907,'富蕴' =>101131408,'漯河' =>101181501,'三原' =>101110201,'共和' =>101150409,'连江' =>101230105,'公主岭' =>101060404,'丰南' =>101090502,'安康' =>101110701,'齐齐哈尔' =>101050201,'平遥' =>101100410,'龙南' =>101240714,'会东' =>101271607,'耀县' =>101111002,'迁西' =>101090507,'锦州' =>101070701,'永福' =>101300504,'册亨' =>101260908,'务川' =>101260212,'三江' =>101300308,'萧县' =>101220705,'定海' =>101211106,'金堂' =>101270105,'宝丰' =>101180503,'湄潭' =>101260205,'砚山' =>101290605,'改则' =>101140702,'濮阳' =>101181301,'杂多' =>101150604,'循化' =>101150206,'彭泽' =>101240208,'田东' =>101301006,'雅江' =>101271806,'宁德' =>101230301,'南木林' =>101140203,'正定' =>101090103,'韦州' =>101170304,'崇仁' =>101240404,'麻江' =>101260507,'鄂温克旗' =>101081006,'纳溪' =>101271007,'宝清' =>101051303,'于洪' =>101070107,'武冈' =>101250908,'翼城' =>101100713,'厦门' =>101230201,'名山' =>101271702,'灵山' =>101301103,'丹江口' =>101201107,'兰考' =>101180805,'平昌' =>101270904,'依安' =>101050206,'大冶' =>101200602,'罗平' =>101290407,'丹徒' =>101190305,'左贡' =>101140505,'夷陵' =>101200912,'黄泛区' =>101181411,'叶县' =>101180505,'大丰' =>101190708,'临漳' =>101091003,'马公' =>101340801,'礼泉' =>101110202,'一八五团' =>101131403,'榆树' =>101060105,'壶关' =>101100511,'洪雅' =>101271504,'阳山' =>101281305,'响水' =>101190702,'洪江' =>101251302,'绥中' =>101071403,'铁干里克' =>101130611,'隆回' =>101250902,'南昌' =>101240101,'那坡' =>101301002,'桂阳' =>101250502,'泰顺' =>101210702,'肥城' =>101120804,'延边' =>101060312,'马关' =>101290603,'温岭' =>101210607,'澧县' =>101250605,'太华山' =>101290113,'柏乡' =>101090905,'故城' =>101090807,'八达岭' =>101011600,'崇礼' =>101090314,'阳朔' =>101300510,'吉林' =>101060201,'屏南' =>101230309,'肃北' =>101160806,'射洪' =>101270703,'抚宁' =>101091104,'治多' =>101150603,'新余' =>101241001,'宜宾县' =>101271103,'博罗' =>101280302,'贵港' =>101300801,'泰山' =>101120803,'宝山' =>101020300,'杭锦旗' =>101080709,'安泽' =>101100716,'阿勒泰' =>101131401,'铅山' =>101240311,'蔚县' =>101090307,'庆阳' =>101160401,'沁县' =>101100508,'平安' =>101150208,'峨眉山' =>101271409,'南宁' =>101300101,'韶关' =>101280201,'滨海' =>101190703,'玉林' =>101300901,'襄城' =>101180403,'扎兰屯' =>101081012,'涉县' =>101091006,'庐江' =>101221602,'通江' =>101270902,'芮城' =>101100811,'范县' =>101181305,'玉溪' =>101290701,'芒康' =>101140506,'赞皇' =>101090109,'上饶' =>101240301,'平邑' =>101120908,'白日乌拉' =>101080918,'莲花' =>101240902,'博兴' =>101121102,'诏安' =>101230607,'南安' =>101230506,'张家港' =>101190403,'英吉沙' =>101130902,'太仓' =>101190408,'茫崖' =>101150712,'洛浦' =>101131305,'巴彦' =>101050107,'宣威' =>101290409,'通辽' =>101080501,'澄江' =>101290702,'合水' =>101160405,'小灶火' =>101150706,'万源' =>101270606,'临桂' =>101300505,'双江' =>101291104,'阜平' =>101090203,'郑州农试站' =>101180108,'达尔罕茂明安联合旗' =>101080206,'赤城' =>101090313,'玛多' =>101150506,'康保' =>101090304,'大田' =>101230811,'沅陵' =>101251203,'瓮安' =>101260403,'固始' =>101180608,'大荔' =>101110504,'项城' =>101181407,'陶乐' =>101170204,'普格' =>101271609,'巴塘' =>101271815,'遂溪' =>101281007,'连平' =>101281203,'平定' =>101100303,'泸西' =>101290311,'和丰' =>101131108,'余杭' =>101210106,'盘县' =>101260804,'平和' =>101230604,'牙克石' =>101081011,'双辽' =>101060402,'莲塘' =>101240106,'奉化' =>101210405,'德昌' =>101271605,'吴忠' =>101170301,'黄龙' =>101110311,'黄平旧洲' =>101260506,'中阳' =>101101109,'永胜' =>101291402,'禄劝' =>101290111,'浦江' =>101210902,'忻州' =>101101001,'敦化' =>101060302,'塔中' =>101130613,'闽侯' =>101230103,'惠阳' =>101280303,'漳县' =>101160206,'泸定' =>101271803,'宜昌县' =>101200905,'南和' =>101090907,'维西' =>101291303,'尖扎' =>101150302,'隰县' =>101100704,'达日' =>101150504,'大港' =>101031200,'武清' =>101030200,'察尔汉' =>101150703,'岐山' =>101110905,'丹东' =>101070601,'洮南' =>101060602,'澄迈' =>101310204,'峨山' =>101290708,'祁门' =>101221004,'辽中' =>101070103,'海城' =>101070304,'库伦旗' =>101080507,'库尔勒' =>101130601,'双鸭山' =>101051301,'乌鞘岭' =>101160504,'哈巴河' =>101131402,'和布克赛尔' =>101131104,'普陀' =>101211105,'兴义' =>101260906,'花都' =>101280105,'石林' =>101290107,'滦南' =>101090505,'全州' =>101300508,'西连岛' =>101191006,'天水' =>101160901,'鄂伦春旗' =>101081005,'梓潼' =>101270405,'龙江' =>101050203,'临潭' =>101161202,'西丰' =>101071104,'乐陵' =>101120406,'上犹' =>101240703,'芦山' =>101271707,'刚察' =>101150806,'兴山' =>101200904,'巩义' =>101180102,'和顺' =>101100405,'汕头' =>101280501,'昭觉' =>101271612,'神木' =>101110403,'玉门镇' =>101160807,'三台' =>101270402,'济阳' =>101120106,'南宫' =>101090916,'讷河' =>101050202,'肥西' =>101220104,'鄂尔多斯' =>101080701,'井研' =>101271403,'德安' =>101240205,'安宁' =>101290112,'曹妃甸' =>101090715,'白杨沟' =>101130110,'沙坪坝' =>101043700,'桐梓' =>101260207,'文山' =>101290601,'桃源' =>101250603,'北碚' =>101040800,'五莲' =>101121502,'包头' =>101080201,'武义' =>101210906,'金塔' =>101160803,'新化' =>101250805,'融水' =>101300307,'宣化' =>101090302,'三河' =>101090609,'枣庄' =>101121401,'若尔盖' =>101271912,'华阴' =>101110511,'德宏' =>101291501,'萍乡' =>101240901,'和田' =>101131301,'保康' =>101200203,'公馆' =>101340603,'佛坪' =>101110808,'青县' =>101090702,'宜阳' =>101180904,'靖州' =>101251205,'临潼' =>101110103,'武山' =>101160906,'和龙' =>101060305,'嘉定' =>101020500,'全南' =>101240713,'漳平' =>101230707,'宿州' =>101220701,'合江' =>101271004,'镇源' =>101290910,'东吉屿' =>101340802,'吐尔尕特' =>101131505,'溧阳' =>101191102,'延庆' =>101010800,'桓台' =>101120307,'吉木萨尔' =>101130405,'呼玛' =>101050704,'肃南' =>101160702,'阜新' =>101070901,'宁乡' =>101250102,'兰溪' =>101210903,'江门' =>101281101,'布尔津' =>101131406,'五道梁' =>101150705,'金寨' =>101221505,'陇川' =>101291503,'额敏' =>101131103,'德令哈' =>101150716,'原阳' =>101180303,'交口' =>101101108,'雷州' =>101281003,'广州' =>101280101,'林甸' =>101050902,'昭苏' =>101131007,'卓尼' =>101161203,'建水' =>101290303,'丰县' =>101190803,'黔江' =>101041100,'镶黄旗' =>101080912,'长武' =>101110209,'崇武' =>101230507,'祥云' =>101290207,'图们' =>101060309,'珊瑚岛' =>101310218,'安定' =>101160208,'嘉黎' =>101140603,'阿城' =>101050104,'梅州' =>101280401,'铁力' =>101050804,'临猗' =>101100802,'精河' =>101131603,'武乡' =>101100507,'瑞昌' =>101240202,'盐都' =>101190709,'吕泗渔场' =>101190506,'屏边' =>101290310,'保靖' =>101251502,'阿巴嘎旗' =>101080904,'仁化' =>101280206,'冷水滩' =>101250804,'那仁宝力格' =>101080809,'南海' =>101280803,'冠县' =>101121702,'五峰' =>101200906,'海宁' =>101210303,'富宁' =>101290502,'赫山区' =>101250701,'朝城' =>101121708,'东营' =>101121201,'石嘴山' =>101170201,'伊通' =>101060405,'南郑' =>101110810,'凯里' =>101260501,'惠州' =>101280301,'易门' =>101290707,'台北县' =>101340101,'恒春' =>101340204,'天池' =>101130109,'白水' =>101110505,'广南' =>101290607,'永登' =>101160103,'河南' =>101150304,'阜康' =>101130404,'焉耆' =>101130607,'绍兴' =>101210501,'旬阳' =>101110705,'上川岛' =>101281107,'海安' =>101190502,'苏州' =>101190401,'延吉' =>101060301,'唐县' =>101090205,'罗城' =>101301206,'泰来' =>101050210,'天山大西沟' =>101130107,'通河' =>101050108,'平塘' =>101260409,'西乡' =>101110807,'云龙' =>101290202,'马山' =>101300106,'香日德' =>101150715,'巩留' =>101131005,'新巴尔虎左旗' =>101081008,'浦口' =>101190107,'尉氏' =>101180803,'璧山' =>101042900,'海西' =>101150701,'宽甸' =>101070603,'河卡' =>101150405,'泾源' =>101170404,'马龙' =>101290405,'弥勒' =>101290304,'桂林农试站' =>101300502,'瑞安' =>101210705,'灯塔' =>101071003,'丹凤' =>101110606,'菏泽' =>101121001,'沅江' =>101250705,'南充' =>101270501,'鄱阳' =>101240302,'韩城' =>101110510,'扎鲁特旗' =>101080509,'惠民' =>101121105,'梁平' =>101042300,'临澧' =>101250606,'湖州' =>101210201,'久治' =>101150505,'孟津' =>101180903,'于都' =>101240710,'九华山' =>101221704,'固阳' =>101080205,'大石桥' =>101070802,'韶山' =>101250202,'潞江坝' =>101291502,'松溪' =>101230908,'龙口' =>101120505,'扶风' =>101110907,'南部' =>101270502,'泌阳' =>101181606,'珙县' =>101271108,'马鞍山' =>101220501,'康县' =>101161005,'青龙山' =>101080505,'宜川' =>101110304,'宜州' =>101301207,'依兰' =>101050106,'博山' =>101120303,'凌云' =>101301011,'虎林' =>101051102,'巴东' =>101201008,'沙塘' =>101300303,'青河' =>101131409,'博乐' =>101131601,'息县' =>101180602,'祁阳' =>101251402,'澳门' =>101330101,'潼关' =>101110503,'剑阁' =>101272104,'右玉' =>101100904,'新民' =>101070106,'苍山' =>101120904,'永川' =>101040200,'永州' =>101251401,'沐川' =>101271405,'巢湖' =>101221601,'高阳' =>101090206,'广水' =>101201302,'叶城' =>101130906,'济南' =>101120101,'资兴' =>101250507,'丰台' =>101010900,'索伦' =>101081106,'中卫' =>101170501,'古浪' =>101160503,'魏县' =>101091014,'盱眙' =>101190903,'皮口' =>101070208,'蓝山' =>101251408,'荔波' =>101260412,'甘德' =>101150503,'陆良' =>101290403,'和林格尔' =>101080104,'黄山区' =>101221002,'封开' =>101280907,'贵溪' =>101241103,'平罗' =>101170203,'聊城' =>101121701,'昆山' =>101190404,'蓝田' =>101110104,'陵川' =>101100604,'阜城' =>101090809,'蓬安' =>101270504,'玉树' =>101150601,'南涧' =>101290212,'连城' =>101230703,'新城子' =>101070108,'台州' =>101210601,'闻喜' =>101100808,'长葛' =>101180404,'石柱' =>101042500,'巴中' =>101270901,'孝感' =>101200401,'梁河' =>101291507,'潜山' =>101220604,'吉首' =>101251501,'溆浦' =>101251211,'香格里拉' =>101291301,'海晏' =>101150804,'乡城' =>101271816,'冷湖' =>101150207,'沾化' =>101121106,'康平' =>101070104,'木垒' =>101130408,'繁昌' =>101220302,'怀来' =>101090311,'惠水' =>101260406,'任丘' =>101090712,'石门' =>101250607,'攸县' =>101250302,'六盘山' =>101170405,'江阴' =>101190202,'伊吾' =>101131204,'洞头' =>101210706,'沁城' =>101131202,'象州' =>101300404,'新巴尔虎右旗' =>101081009,'松滋' =>101200807,'海洋岛' =>101070209,'即墨' =>101120204,'广汉' =>101272003,'麻城' =>101200503,'环江' =>101301205,'农安' =>101060102,'扬中' =>101190303,'绿春' =>101290306,'清水' =>101160903,'冕宁' =>101271614,'亳州' =>101220901,'西畴' =>101290602,'滦县' =>101090504,'唐河' =>101180710,'洪泽' =>101190904,'苏家屯' =>101070102,'蒙阴' =>101120907,'东胜' =>101080713,'台南' =>101340301,'龙泉' =>101210803,'万州龙宝' =>101041300,'运城' =>101100801,'阆中' =>101270507,'安塞' =>101110307,'希拉穆仁' =>101080405,'襄樊' =>101200201,'汉沽' =>101030800,'桥口' =>101250506,'靖江' =>101191205,'遮浪' =>101282104,'白玉' =>101271811,'阿里山' =>101340902,'靖边' =>101110406,'北镇' =>101070706,'鹿邑' =>101181409,'衡阳' =>101250401,'千里岩' =>101120512,'福州郊区' =>101230109,'沂南' =>101120903,'罗定' =>101281402,'兴仁' =>101260903,'应县' =>101100905,'怀仁' =>101100906,'香港' =>101320101,'神农架' =>101201201,'馆陶' =>101091013,'凌源' =>101071203,'巴里坤' =>101131203,'天台' =>101210605,'三明' =>101230801,'黑水' =>101271909,'涟水' =>101190905,'邕宁' =>101300103,'河池' =>101301201,'义县' =>101070704,'六盘水' =>101260801,'保定' =>101090201,'交城' =>101101113,'田林' =>101301012,'临江' =>101060903,'溧水' =>101190102,'建平' =>101071202,'肇州' =>101050903,'宿迁' =>101191301,'通道' =>101251207,'余姚' =>101210404,'蠡县' =>101090215,'五营' =>101050803,'永修' =>101240206,'马坡岭' =>101250104,'天河' =>101280106,'阜宁' =>101190704,'舍伯吐' =>101080502,'顺平' =>101090216,'环县' =>101160403,'博湖' =>101130612,'通城' =>101200705,'高州' =>101282002,'察隅' =>101140404,'滦平' =>101090406,'四会' =>101280903,'寿阳' =>101100407,'渭源' =>101160204,'宣汉' =>101270602,'佳木斯' =>101050401,'北京' =>101010100,'石首' =>101200804,'阿克苏' =>101130801,'长阳' =>101200908,'崇阳' =>101200704,'吉兰太' =>101081205,'嘉兴' =>101210301,'滑县' =>101180203,'乡宁' =>101100712,'中江' =>101272002,'滕州' =>101121405,'开封' =>101180801,'呼图壁' =>101130402,'栾城' =>101090104,'休宁' =>101221007,'澄城' =>101110508,'陵水' =>101310216,'凉山' =>101271601,'乐平' =>101240802,'洪洞' =>101100710,'岢岚' =>101101013,'利津' =>101121204,'双城' =>101050102,'鹤城区' =>101251202,'果洛' =>101150501,'大悟' =>101200404,'德兴' =>101240307,'燕尾港' =>101191007,'清原' =>101070403,'东阳' =>101210905,'同江' =>101050406,'廉江' =>101281005,'虞城' =>101181005,'通榆' =>101060605,'阿克陶' =>101131503,'四子王旗' =>101080411,'高陵' =>101110107,'石家庄' =>101090101,'资中' =>101271204,'台儿庄' =>101121404,'理塘' =>101271814,'西峡' =>101180705,'延津' =>101180306,'裕民' =>101131102,'白沙' =>101310207,'尼木' =>101140103,'辽源' =>101060701,'陇县' =>101110911,'伊宁' =>101131001,'马鬃山' =>101160804,'山丹' =>101160706,'化州' =>101282003,'雅安' =>101271701,'曲麻莱' =>101150606,'江川' =>101290703,'钟山' =>101300704,'沂水' =>101120910,'绵竹' =>101272005,'洋县' =>101110805,'靖远' =>101161302,'灵武' =>101170103,'蕲春' =>101200507,'徐州农试站' =>101190802,'浦城' =>101230906,'桂平' =>101300802,'全椒' =>101221105,'涿州' =>101090218,'临县' =>101101102,'凤阳' =>101221102,'盐山' =>101090705,'石阡' =>101260608,'东阿' =>101121706,'华家岭' =>101161304,'临汾' =>101100701,'德钦' =>101291302,'川沙' =>101020400,'柘城' =>101181006,'什邡' =>101272004,'长白' =>101060905,'伊春' =>101050801,'梅县' =>101280409,'新蔡' =>101181608,'淖毛湖' =>101131205,'江华' =>101251410,'临沂' =>101120901,'西峰' =>101160402,'金山' =>101230508,'延安' =>101110300,'六枝' =>101260802,'桐庐' =>101210103,'畹町镇' =>101291505,'华池' =>101160404,'江陵' =>101200802,'离石' =>101101101,'霍林郭勒' =>101081108,'丰城' =>101240510,'轮台' =>101130602,'小二沟' =>101081002,'嵩县' =>101180907,'湟中' =>101150104,'北仑' =>101210410,'睢县' =>101181003,'城步' =>101250909,'道县' =>101251405,'常宁' =>101250406,'麦盖提' =>101130904,'白河' =>101110708,'黟县' =>101221005,'犍为' =>101271402,'姜堰' =>101191204,'西林' =>101301009,'汤河口' =>101011800,'鄯善' =>101130504,'墨竹贡卡' =>101140104,'南丰' =>101240409,'乾县' =>101110207,'剑川' =>101290209,'留坝' =>101110804,'广平' =>101091012,'汨罗' =>101251004,'太白' =>101110909,'得荣' =>101271818,'邹平' =>101121107,'化隆' =>101150205,'单县' =>101121009,'金乡' =>101120706,'蓟县' =>101031400,'普兰店' =>101070204,'泗阳' =>101191303,'新县' =>101180605,'乐至' =>101271303,'道真' =>101260210,'海兴' =>101090704,'平凉' =>101160301,'当阳' =>101200907,'炉霍' =>101271808,'台江' =>101260510,'肥东' =>101220103,'于田' =>101131307,'静宁' =>101160307,'隆子' =>101140307,'独山' =>101260410,'南丹' =>101301209,'仪征' =>101190603,'清远' =>101281301,'晋江' =>101230509,'莱阳' =>101120510,'朔州' =>101100901,'河口' =>101290114,'大武' =>101340203,'绥滨' =>101051202,'平顺' =>101100506,'崇州' =>101270114,'古丈' =>101251504,'新沂' =>101190807,'塞罕坎' =>101090411,'潢川' =>101180607,'衡南' =>101250407,'布拖' =>101271619,'沾益' =>101290402,'抚顺' =>101070401,'华县' =>101110502,'海淀' =>101010200,'明光' =>101221103,'宝过图' =>101080615,'上蔡' =>101181604,'如皋' =>101190503,'东川' =>101290103,'郸城' =>101181408,'安丘' =>101120607,'崇左' =>101300201,'枣强' =>101090802,'平山' =>101090111,'喜德' =>101271613,'方山' =>101101107,'涪陵' =>101041400,'临沧' =>101291101,'平乐' =>101300512,'中环' =>101320104,'汶上' =>101120707,'左权' =>101100404,'信阳地区农试站' =>101180611,'岚皋' =>101110706,'遂川' =>101240610,'克拉玛依' =>101130201,'黎川' =>101240410,'双流' =>101270106,'临沭' =>101120905,'濉溪' =>101221202,'鹿寨' =>101300304,'江永' =>101251407,'芜湖' =>101220301,'广河' =>101161104,'新干' =>101240604,'洪家' =>101210609,'南乐' =>101181303,'子长' =>101110303,'怀柔' =>101010500,'丰宁' =>101090408,'乌斯太' =>101081211,'新平' =>101290706,'固原' =>101170401,'桦川' =>101050404,'禹州' =>101180405,'临河' =>101080801,'枝江' =>101200910,'左云' =>101100208,'陵县' =>101120404,'铜锣湾' =>101320105,'水城' =>101260803,'伊和郭勒' =>101080905,'博爱' =>101181106,'马祖' =>101230106,'宁武' =>101101007,'巧家' =>101291006,'邓州' =>101180711,'郧县' =>101201104,'招远' =>101120506,'浠水' =>101200506,'平乡' =>101090912,'荔浦' =>101300513,'英德' =>101281307,'荣县' =>101270303,'大姚' =>101290802,'隆昌' =>101271205,'武功' =>101110206,'北票' =>101071205,'德清' =>101210204,'鞍山' =>101070301,'金湖' =>101190902,'贺兰' =>101170104,'界首' =>101220805,'芜湖县' =>101220303,'嵊州' =>101210505,'彭山' =>101271503,'苍溪' =>101272105,'横山' =>101110407,'衡水' =>101090801,'泊头' =>101090711,'科尔沁左翼后旗' =>101080504,'赤壁' =>101200702,'湖口' =>101240207,'成武' =>101121008,'高雄' =>101340201,'蚌埠' =>101220201,'塘头' =>101260606,'华坪' =>101291403,'崇信' =>101160304,'分宜' =>101241002,'奉新' =>101240507,'咸宁' =>101200701,'乌审召' =>101080712,'原平' =>101101015,'永平' =>101290204,'永年' =>101091009,'八宿' =>101140507,'漳浦' =>101230606,'美姑' =>101271618,'乌鲁木齐牧试站' =>101130108,'嘉义' =>101340901,'桦南' =>101050405,'贡山' =>101291207,'泽库' =>101150303,'新竹县' =>101340601,'清河' =>101090914,'湘乡' =>101250203,'海东' =>101150201,'正镶白旗' =>101080913,'临泉' =>101220804,'昌图' =>101071103,'吉水' =>101240603,'吐鲁番东坎' =>101130503,'陈家镇' =>101021101,'土默特左旗' =>101080102,'新河' =>101090910,'松桃' =>101260611,'莱州' =>101120502,'乌当' =>101260104,'拉孜' =>101140202,'安顺' =>101260301,'桐城' =>101220609,'松潘' =>101271905,'隆安' =>101300105,'乌海' =>101080301,'邛崃' =>101270113,'沭阳' =>101191302,'通辽钱家店' =>101080512,'大余' =>101240705,'舞钢' =>101180506,'平顶山' =>101180501,'天津' =>101030100,'安义' =>101240104,'勃利' =>101051003,'天等' =>101300202,'兰州' =>101160101,'突泉' =>101081107,'忻城' =>101300402,'绩溪' =>101221405,'通海' =>101290704,'祁县' =>101100409,'盐亭' =>101270403,'黄山站' =>101221001,'无为' =>101221603,'黑河' =>101050601,'信宜' =>101282005,'都匀' =>101260401,'台北市' =>101340102,'黔西' =>101260901,'长汀' =>101230702,'海丰' =>101282102,'白城' =>101060601,'青浦' =>101020800,'盖州' =>101070803,'日喀则' =>101140201,'雷波' =>101271617,'肥乡' =>101091008,'泾阳' =>101110205,'霍州' =>101100711,'高县' =>101271107,'应城' =>101200405,'泉州' =>101230501,'揭西' =>101281902,'贵阳' =>101260101,'平湖' =>101210305,'安龙' =>101260907,'拐子湖' =>101081204,'商南' =>101110607,'慈利' =>101251103,'澄海' =>101280503,'淳安' =>101210104,'银川' =>101170101,'望谟' =>101260905,'岳阳' =>101251001,'九龙' =>101320102,'温州' =>101210701,'碌曲' =>101161207,'三都' =>101260411,'平潭海峡大桥' =>101230112,'扶余' =>101060805,'静海' =>101030900,'花溪' =>101260103,'宜章' =>101250504,'米林' =>101140403,'古田' =>101230302,'祁连' =>101150803,'嘉荫' =>101050805,'建昌' =>101071402,'玛纳斯' =>101130407,'荣成' =>101121303,'临高' =>101310203,'广灵' =>101100205,'纳雍' =>101260706,'海渊' =>101300208,'浏阳' =>101250103,'万载' =>101240504,'顺昌' =>101230902,'铁卜加' =>101150105,'密云上甸子' =>101011900,'敖汉旗' =>101080614,'鹤庆' =>101290211,'莘县' =>101121709,'安乡' =>101250602,'融安' =>101300306,'嘉善' =>101210302,'望江' =>101220607,'福州' =>101230101,'永新' =>101240607,'盐源' =>101271604,'康定' =>101271802,'南岳' =>101250409,'巴音布鲁克' =>101130610,'克东' =>101050209,'富顺' =>101270302,'保德' =>101101011,'勐腊' =>101291605,'瑞丽' =>101291506,'庆城' =>101160409,'永吉' =>101060203,'遵义' =>101260201,'乐昌' =>101280205,'建宁' =>101230806,'陆丰' =>101282103,'昌江' =>101310206,'乌苏' =>101131106,'孙吴' =>101050603,'平利' =>101110707,'封丘' =>101180307,'延寿' =>101050110,'高平' =>101100605,'英山' =>101200505,'柳林' =>101101105,'合浦' =>101301302,'龙海' =>101230605,'临泽' =>101160704,'紫荆关' =>101090208,'宜君' =>101111003,'泗水' =>101120708,'托克托' =>101080103,'邹城' =>101120711,'门头沟' =>101011400,'临城' =>101090902,'商水' =>101181406,'五华' =>101280408,'特克斯' =>101131008,'汾西' =>101100709,'万盛' =>101040600,'镇巴' =>101110811,'吉安县' =>101240602,'政和' =>101230909,'扎赉特旗' =>101081105,'桃园' =>101340501,'波阳' =>101240314,'葫芦岛' =>101071401,'永康' =>101210907,'肇庆' =>101280901,'麻栗坡' =>101290604,'绥阳' =>101260204,'郁南' =>101281404,'易县' =>101090212,'武胜' =>101270803,'资源' =>101300514,'嫩江' =>101050602,'邳州' =>101190805,'彰武' =>101070902,'毕节' =>101260701,'田阳' =>101301003,'太原' =>101100101,'新泰' =>101120802,'乐安' =>101240403,'南京' =>101190101,'武威' =>101160501,'安多' =>101140605,'太原古交区' =>101100105,'朝克乌拉' =>101080902,'绥化' =>101050501,'茶陵' =>101250305,'志丹' =>101110306,'朱日和' =>101080908,'高台' =>101160705,'肃宁' =>101090706,'唐海' =>101090509,'乌兰' =>101150709,'金溪' =>101240405,'吉县' =>101100706,'莎车' =>101130905,'乌拉特中旗' =>101080806,'泾川' =>101160302,'乌拉特后旗' =>101080807,'灵川' =>101300507,'石棉' =>101271705,'屯昌' =>101310210,'寿县' =>101221503,'进贤' =>101240105,'无锡' =>101190201,'江口' =>101260602,'大陈' =>101210608,'芷江' =>101251210,'道孚' =>101271807,'珠海' =>101280701,'满都拉' =>101080203,'黄陂' =>101200103,'内江' =>101271201,'淮滨' =>101180606,'太谷' =>101100408,'广昌' =>101240402,'沧源' =>101291102,'汇川' =>101260214,'防城' =>101301405,'平鲁' =>101100902,'沛县' =>101190804,'沙湾' =>101131107,'宁阳' =>101120806,'聂拉木' =>101140204,'慈溪' =>101210403,'永靖' =>101161103,'安岳' =>101271302,'沈丘' =>101181410,'藤县' =>101300602,'茶卡' =>101150714,'宣城' =>101221401,'永泰' =>101230107,'那曲' =>101140601,'湟源' =>101150103,'铜鼓' =>101240502,'威信' =>101291005,'枞阳' =>101220602,'河津' =>101100805,'佛冈' =>101281306,'资溪' =>101240406,'鸡泽' =>101091011,'呼兰' =>101050103,'宁化' =>101230802,'秦安' =>101160904,'齐河' =>101120405,'息烽' =>101260105,'克山' =>101050208,'卢龙' =>101091105,'靖宇' =>101060902,'潞城' =>101100504,'钟祥' =>101201402,'兴化' =>101191202,'上高' =>101240505,'醴陵' =>101250303,'庆安' =>101050509,'富锦' =>101050407,'怀化' =>101251201,'灌云' =>101191004,'靖安' =>101240506,'贵南' =>101150407,'泰州' =>101191201,'广宁' =>101280902,'五台山' =>101101010,'宜城' =>101200205,'当雄' =>101140102,'海力素' =>101080808,'凤县' =>101110910,'丰润' =>101090503,'眉山' =>101271501,'杞县' =>101180802,'丰都' =>101043000,'宁蒗' =>101291404,'娄底' =>101250801,'房山' =>101011200,'锡林高勒' =>101081206,'句容' =>101190304,'周口' =>101181401,'昌平' =>101010700,'嵩明' =>101290110,'施甸' =>101290504,'贞丰' =>101260904,'临洮' =>101160205,'民和' =>101150203,'伽师' =>101130910,'卫辉' =>101180305,'罗山' =>101180603,'靖西' =>101301005,'江油' =>101270408,'木兰' =>101050113,'永城' =>101181009,'广安' =>101270801,'岱山' =>101211104,'自贡' =>101270301,'罗田' =>101200504,'巴雅尔吐胡硕' =>101080511,'郫县' =>101270107,'临安' =>101210107,'陇西' =>101160203,'保山' =>101290501,'深州' =>101090811,'磐安' =>101210908,'岚县' =>101101104,'长沙' =>101250101,'普宁' =>101281903,'蒙自' =>101290309,'中宁' =>101170502,'乌审旗' =>101080710,'平果' =>101301007,'马尔康' =>101271910,'新建' =>101240102,'新昌' =>101210504,'辽阳' =>101071001,'罗甸' =>101260408,'东平' =>101120805,'普洱' =>101290905,'临西' =>101090915,'潍坊' =>101120601,'文登' =>101121302,'余江' =>101241102,'临邑' =>101120403,'嘉鱼' =>101200703,'常德' =>101250601,'蒲江' =>101270109,'崂山' =>101120202,'信都' =>101300705,'图里河' =>101081016,'萧山' =>101210102,'南溪' =>101271104,'睢宁' =>101190806,'珲春' =>101060308,'晋城' =>101100601,'横峰' =>101240310,'府谷' =>101110402,'通化县' =>101060506,'广宗' =>101090911,'玉环' =>101210603,'宁陕' =>101110710,'略阳' =>101110802,'汉寿' =>101250604,'阳信' =>101121104,'泸溪' =>101251506,'普安' =>101260909,'九寨沟' =>101271906,'新津' =>101270110,'遂平' =>101181603,'张掖' =>101160701,'索县' =>101140606,'温江' =>101270104,'黎平' =>101260513,'东沟' =>101070605,'宝鸡县' =>101110902,'青冈' =>101050508,'宜昌' =>101200901,'琼结' =>101140303,'剑河' =>101260511,'崇庆' =>101270115,'同安' =>101230202,'桃江' =>101250703,'泗县' =>101220704,'太平' =>101300603,'营口' =>101070801,'新宁' =>101250907,'吴桥' =>101090708,'达坂城' =>101130105,'丹阳' =>101190302,'镇原' =>101160408,'济宁' =>101120701,'云阳' =>101041700,'乾安' =>101060802,'黄梅' =>101200508,'黄陵' =>101110310,'镇雄' =>101291004,'墨江' =>101290906,'新绛' =>101100806,'永昌' =>101160602,'镇江' =>101190301,'周至' =>101110105,'新洲' =>101200104,'安仁' =>101250509,'普定' =>101260302,'高青' =>101120304,'宕昌' =>101161004,'塔什库尔干' =>101130903,'大同县' =>101100203,'新安' =>101180902,'华宁' =>101290705,'黄南' =>101150301,'开鲁' =>101080506,'奉节' =>101041900,'东台' =>101190707,'恩平' =>101281105,'盈江' =>101291504,'阿拉尔' =>101130701,'五常' =>101050112,'赣州' =>101240701,'樟树' =>101240509,'五原' =>101080802,'阿荣旗' =>101081003,'峰峰' =>101091002,'连山' =>101281304,'城固' =>101110806,'许昌' =>101180401,'清流' =>101230803,'婺源' =>101240303,'万州天城' =>101041200,'长治' =>101100501,'华安' =>101230610,'蒲县' =>101100708,'凤庆' =>101291105,'小渠子' =>101130103,'武陟' =>101181103,'奉贤' =>101021000,'万年' =>101240306,'秭归' =>101200903,'磐石' =>101060205,'吴川' =>101281002,'昔阳' =>101100406,'永宁' =>101170102,'乌鲁木齐' =>101130101,'凤台' =>101220402,'荣昌' =>101042700,'郏县' =>101180502,'天全' =>101271706,'杭锦后旗' =>101080810,'昌吉' =>101130401,'潞西' =>101291508,'宜春' =>101240501,'巨鹿' =>101090909,'榕江' =>101260516,'温县' =>101181107,'松原' =>101060801,'孟村' =>101090710,'宁陵' =>101181007,'蔡甸' =>101200102,'鸡西' =>101051101,'武川' =>101080107,'林州' =>101180205,'勉县' =>101110803,'穆棱' =>101050303,'乌拉特前旗' =>101080804,'土默特右旗' =>101080204,'松江' =>101060310,'浦东' =>101021300,'永安' =>101230810,'荣经' =>101271703,'宜良' =>101290106,'新和' =>101130805,'察哈尔右翼中旗' =>101080409,'墨玉' =>101131304,'翁牛特旗' =>101080609,'东至' =>101221702,'永春' =>101230504,'瑞金' =>101240709,'宁南' =>101271608,'无极' =>101090110,'赤峰' =>101080601,'元阳' =>101290305,'南宁城区' =>101300102,'桑植' =>101251102,'晋宁' =>101290105,'呼中' =>101050705,'尚志' =>101050111,'安溪' =>101230502,'驻马店' =>101181601,'巴盟农试站' =>101080811,'岑溪' =>101300606,'邵东' =>101250905,'修武' =>101181102,'石台' =>101221705,'台安' =>101070302,'秀屿港' =>101230403,'晋洲' =>101090116,'津南' =>101031000,'蔡家湖' =>101130102,'磴口' =>101080803,'策勒' =>101131303,'集宁' =>101080401,'新晃' =>101251209,'余干' =>101240305,'简阳' =>101271304,'隆尧' =>101090906,'富源' =>101290404,'东方' =>101310202,'比如' =>101140607,'佛山' =>101280800,'兴隆' =>101090404,'渭南' =>101110501,'盘山' =>101071303,'长垣' =>101180308,'宜黄' =>101240407,'镇沅' =>101290911,'永定' =>101230706,'景谷' =>101290902,'大厂' =>101090607,'镇远' =>101260504,'大勐龙' =>101291602,'阳原' =>101090308,'兰坪' =>101291204,'贡嘎' =>101140302,'威县' =>101090913,'北川' =>101270406,'方正' =>101050109,'永和' =>101100703,'郧西' =>101201103,'岳池' =>101270802,'阿拉善左旗' =>101081201,'集安' =>101060505,'常熟' =>101190402,'隆德' =>101170403,'稻城' =>101271817,'池州' =>101221701,'铁卜加寺' =>101150106,'平武' =>101270407,'红原' =>101271913,'阳江' =>101281801,'阿里' =>101140701,'小金' =>101271908,'硇洲' =>101281006,'庆元' =>101210807,'江城' =>101290907,'西华' =>101181405,'嘉祥' =>101120702,'新邵' =>101250904,'彝良' =>101291003,'博白' =>101300902,'容县' =>101300904,'皋兰' =>101160102,'永济' =>101100810,'大佘太' =>101080805,'忠县' =>101042400,'常山' =>101211002,'炎陵' =>101250306,'仁和' =>101270202,'江孜' =>101140206,'庐山' =>101240203,'乐都' =>101150202,'通山' =>101200706,'峄城' =>101121403,'含山' =>101221604,'武隆' =>101043100,'始兴' =>101280203,'满洲里' =>101081010,'旬邑' =>101110210,'威远' =>101271203,'商河' =>101120103,'仙居' =>101210606,'蒙城' =>101220904,'涿鹿' =>101090312,'宁国' =>101221404,'蓬莱' =>101120504,'谷城' =>101200207,'喀什' =>101130901,'阳谷' =>101121703,'镇平' =>101180707,'曲阜' =>101120710,'兴国' =>101240717,'余庆' =>101260213,'广元' =>101272101,'景县' =>101090808,'成山头' =>101121305,'尚义' =>101090306,'淮阳' =>101181404,'淮阴' =>101190907,'海林' =>101050302,'泽当' =>101140308,'华容' =>101251002,'玛沁' =>101150508,'个旧' =>101290308,'恩施' =>101201001,'太康' =>101181403,'太原南郊' =>101100107,'滁州' =>101221101,'尤溪' =>101230809,'石泉' =>101110703,'静乐' =>101101012,'徐闻' =>101281004,'固安' =>101090602,'镇坪' =>101110709,'光泽' =>101230903,'衢州' =>101211001,'长泰' =>101230602,'新密' =>101180105,'金秀' =>101300403,'淮北' =>101221201,'文水' =>101101112,'泾县' =>101221402,'阿合奇' =>101131504,'汉中' =>101110801,'承德' =>101090402,'呈贡' =>101290108,'通渭' =>101160202,'公安' =>101200803,'廊坊' =>101090601,'宜宾' =>101271101,'莒南' =>101120902,'泽普' =>101130907,'加查' =>101140304,'邗江' =>101190606,'信丰' =>101240706,'嵊泗' =>101211102,'丹巴' =>101271804,'漾鼻' =>101290203,'琼海' =>101310211,'米脂' =>101110408,'紫云' =>101260305,'锦屏' =>101260515,'保亭' =>101310214,'咸丰' =>101201004,'新竹市' =>101340602,'青田' =>101210805,'随州' =>101201301,'新郑' =>101180106,'神池' =>101101006,'长子' =>101100509,'武夷山' =>101230905,'高安' =>101240508,'青龙' =>101091102,'鲁山' =>101180507,'丰顺' =>101280406,'集贤' =>101051302,'永署礁' =>101310219,'曲阳' =>101090214,'深圳' =>101280601,'四平' =>101060401,'板栏' =>101301404,'鹰潭' =>101241101,'江津' =>101040500,'昆明农试站' =>101290102,'绥江' =>101291007,'杭州' =>101210101,'盘锦' =>101071301,'高邑' =>101090107,'献县' =>101090709,'高要' =>101280908,'龙山' =>101251507,'申扎' =>101140703,'霸州' =>101090608,'罗源' =>101230104,'江宁' =>101190104,'鲁甸' =>101291002,'建德' =>101210105,'三亚' =>101310201,'青铜峡' =>101170306,'彬县' =>101110208,'辰溪' =>101251204,'洪湖' =>101200806,'呼和浩特' =>101080101,'章党' =>101070404,'梁山' =>101120709,'麟游' =>101110904,'顺德' =>101280801,'建瓯' =>101230910,'繁峙' =>101101009,'云澳' =>101280505,'元氏' =>101090112,'武汉' =>101200101,'霞浦' =>101230303,'江安' =>101271105,'五河' =>101220204,'和政' =>101161105,'温泉' =>101131602,'云梦' =>101200403,'柘荣' =>101230307,'苍南' =>101210709,'前郭' =>101060803,'峨边' =>101271406,'定州' =>101090219,'蓬溪' =>101270702,'黎城' =>101100502,'徽县' =>101161008,'皮山' =>101131302,'乌伊岭' =>101050802,'紫金' =>101281202,'凤城' =>101070602,'正阳' =>101181610,'格尔木' =>101150702,'饶阳' =>101090805,'武穴' =>101200509,'怀集' =>101280906,'禹城' =>101120411,'峡江' =>101240605,'上海' =>101020100,'莫索湾' =>101130303,'唐山' =>101090501,'安福' =>101240612,'佛爷顶' =>101011700,'西盟' =>101290909,'多伦' =>101080915,'绥棱' =>101050510,'焦作' =>101181101,'洛阳' =>101180901,'涞源' =>101090209,'迭部' =>101161205,'棠荫' =>101240211,'福泉' =>101260405,'德惠' =>101060103,'垫江' =>101042200,'吴江' =>101190407,'周宁' =>101230305,'瓜州' =>101160805,'峨眉' =>101271408,'金阳' =>101271611,'明溪' =>101230807,'株洲' =>101250301,'崇明' =>101021100,'高邮' =>101190604,'清涧' =>101110412,'定陶' =>101121005,'博克图' =>101080916,'龙游' =>101211004,'青岛' =>101120201,'大连' =>101070201,'普兰' =>101140705,'灵台' =>101160303,'乐业' =>101301010,'屏山' =>101271111,'汤阴' =>101180202,'乳山' =>101121304,'乐东' =>101310221,'定南' =>101240715,'潮连岛' =>101120203,'涠洲岛' =>101301303,'新都' =>101270103,'石城' =>101240708,'东明' =>101121004,'昌宁' =>101290505,'山阳' =>101110608,'临淄' =>101120308,'衡阳县' =>101250405,'山阴' =>101100903,'寿宁' =>101230304,'类乌齐' =>101140503,'南漳' =>101200204,'石楼' =>101101106,'城口' =>101041600,'康山' =>101240304,'清徐' =>101100102,'镇康' =>101291108,'启东' =>101190507,'康乐' =>101161102,'砀山' =>101220702,'三峡' =>101200911,'兴仁堡' =>101170503,'长宁' =>101271106,'遂昌' =>101210802,'仙游' =>101230402,'敦煌' =>101160808,'汝阳' =>101180910,'苍梧' =>101300604,'清兰' =>101310213,'旺苍' =>101272102,'额济纳旗' =>101081203,'吉安' =>101240601,'阿尔山' =>101081102,'承德县' =>101090403,'旌德' =>101221403,'巴林右旗' =>101080606,'社旗' =>101180704,'大武口' =>101170206,'宁县' =>101160407,'资阳' =>101271301,'淮南' =>101220401,'兴县' =>101101103,'宜都' =>101200909,'监利' =>101200805,'达拉特旗' =>101080703,'陈巴尔虎旗' =>101081007,'桂东' =>101250511,'商城' =>101180609,'牡丹江' =>101050301,'红河' =>101290301,'石河子' =>101130301,'围场' =>101090410,'长安' =>101110102,'东宁' =>101050307,'宝鸡' =>101110901,'北辰' =>101030600,'滨州' =>101121101,'黄骅' =>101090713,'娄烦' =>101100104,'长春' =>101060101,'海伦' =>101050504,'沁源' =>101100510,'额尔古纳' =>101081014,'昌邑' =>101120606,'嘉禾' =>101250503,'黄平' =>101260505,'茌平' =>101121705,'魏山' =>101290208,'新兴' =>101281403,'高密' =>101120608,'文县' =>101161003,'成县' =>101161002,'洱源' =>101290210,'广德' =>101221406,'吴县' =>101190406,'楚州' =>101190908,'扬州' =>101190601,'藁城' =>101090115,'和县' =>101221605,'宝坻' =>101030300,'宁远' =>101251406,'元谋' =>101290803,'野牛沟' =>101150704,'遂宁' =>101270701,'永寿' =>101110203,'东安' =>101251403,'钦州' =>101301101,'龙岩' =>101230701,'筠连' =>101271109,'桓仁' =>101070504,'怀远' =>101220202,'来安' =>101221106,'阳新' =>101200603,'井陉' =>101090102,'秦皇岛' =>101091101,'宜兰' =>101340701,'巴南' =>101040900,'乐清' =>101210707,'江浦' =>101190106,'潮阳' =>101280502,'柳州' =>101300301,'大庆' =>101050901,'蒲城' =>101110507,'平阳' =>101210704,'诸城' =>101120609,'宝应' =>101190602,'引水船' =>101021102,'上虞' =>101210503,'平阴' =>101120105,'喀喇沁旗' =>101080611,'织金' =>101260707,'霍城' =>101131009,'宜兴' =>101190203,'仁寿' =>101271502,'射阳' =>101190705,'阳泉' =>101100301,'五大连池' =>101050605,'托里' =>101131105,'民丰' =>101131306,'顺义' =>101010400,'互助' =>101150204,'扶沟' =>101181402,'马边' =>101271407,'姚安' =>101290804,'金佛山' =>101043500,'渑池' =>101181703,'南阳' =>101180701,'永兴' =>101250510,'龙井' =>101060307,'兴平' =>101110211,'海门' =>101190508,'商洛' =>101110601,'乌什' =>101130802,'闽清' =>101230102,'且末' =>101130605,'张家口' =>101090301,'凭祥' =>101300204,'洛川' =>101110309,'同德' =>101150408,'兴文' =>101271110,'师宗' =>101290406,'儋州' =>101310205,'章丘' =>101120104,'淇县' =>101181203,'丰镇' =>101080412,'巫山' =>101042000,'昌黎' =>101091103,'惠农' =>101170202,'乌恰' =>101131502,'金川' =>101271907,'九仙山' =>101230503,'湘阴' =>101251003,'延长' =>101110301,'岳普湖' =>101130909,'金州' =>101070203,'防城港' =>101301401,'万宁' =>101310215,'通什' =>101310223,'和平' =>101281204,'木里' =>101271603,'平陆' =>101100813,'邵阳县' =>101250910,'黄山市' =>101221008,'白银' =>101161301,'远安' =>101200902,'乐山' =>101271401,'睢阳区' =>101181002,'泗洪' =>101191304,'南昌县' =>101240103,'武平' =>101230704,'涡阳' =>101220902,'彭阳' =>101170406,'浩尔吐' =>101080604,'同心' =>101170302,'淄川' =>101120302,'平潭' =>101230108,'白山' =>101060901,'徐州' =>101190801,'甘南' =>101050204,'万安' =>101240609,'丹棱' =>101271505,'太和' =>101220806,'囊谦' =>101150605,'惠东' =>101280304,'莒县' =>101121503,'习水' =>101260209,'金华' =>101210901,'元江' =>101290709,'大通' =>101150102,'托克逊' =>101130502,'景泰' =>101161305,'广丰' =>101240313,'云县' =>101291107,'八里罕' =>101080612,'大新' =>101300205,'义乌' =>101210904,'张家界' =>101251101,'龙里' =>101260407,'夹江' =>101271404,'湛江' =>101281001,'拜泉' =>101050207,'沽源' =>101090305,'错那' =>101140306,'汝州' =>101180504,'霍尔果斯' =>101131010,'柯坪' =>101130808,'洛南' =>101110602,'大同' =>101100201,'林口' =>101050304,'大名' =>101091005,'桐乡' =>101210304,'会同' =>101251206,'河曲' =>101101004,'景德镇' =>101240801,'大方' =>101260705,'华蓥山' =>101270805,'江西沟' =>101150402,'容城' =>101090207,'鄂托克旗' =>101080708,'阳高' =>101100202,'连云港' =>101191001,'民乐' =>101160703,'乌兰乌苏' =>101130304,'文成' =>101210703,'宁河' =>101030700,'内黄' =>101180204,'德格' =>101271810,'洞口' =>101250903,'临清' =>101121707,'西平' =>101181602,'密山' =>101051103,'伊金霍洛旗' =>101080711,'湘潭' =>101250201,'双峰' =>101250802,'永德' =>101291106,'潜江' =>101201701,'西沙' =>101310217,'莱西' =>101120207,'洛隆' =>101140504,'帕里' =>101140207,'浚县' =>101181202,'费县' =>101120909,'翁源' =>101280204,'景洪电站' =>101291604,'德阳' =>101272001,'阿拉善右旗' =>101081202,'山南' =>101140301,'武鸣' =>101300108,'荥阳' =>101180103,'榆中' =>101160104,'都江堰' =>101270111,'大竹' =>101270604,'淄博' =>101120301,'岷县' =>101160207,'鸡东' =>101051104,'炉山' =>101260518,'来宾' =>101300401,'潼南' =>101042100,'旅顺' =>101070205,'汝南' =>101181605,'定边' =>101110405,'潮州' =>101281501,'兰西' =>101050507,'德化' =>101230505,'孪井滩' =>101081212,'清丰' =>101181304,'六库' =>101291206,'吕梁' =>101101100,'襄阳' =>101200202,'长海' =>101070206,'鼎新' =>101160802,'杜蒙' =>101050905,'安阳' =>101180201,'内邱' =>101090904,'沧州' =>101090701,'开阳' =>101260106,'铜仁' =>101260601,'舟曲' =>101161204,'抚州' =>101240401,'鄄城' =>101121002,'三门峡' =>101181701,'稷山' =>101100803,'琼中' =>101310208,'叙永' =>101271005,'天镇' =>101100204,'雷山' =>101260512,'崆峒' =>101160308,'新丰' =>101280208,'塔河' =>101050702,'开化' =>101211003,'安化' =>101250704,'镇宁' =>101260303,'云霄' =>101230609,'怒江' =>101291201,'南川' =>101040400,'百色' =>101301001,'阳城' =>101100603,'东海' =>101191002,'重庆' =>101040100,'灌阳' =>101300509,'户县' =>101110106,'江都' =>101190605,'泸州' =>101271001,'苏尼特左旗' =>101080906,'建湖' =>101190706,'巴仑台' =>101130104,'六合' =>101190105,'临朐' =>101120604,'沿河' =>101260609,'镇安' =>101110605,'福安' =>101230306,'汉源' =>101271704,'宜丰' =>101240503,'南华' =>101290806,'平南' =>101300803,'临颍' =>101181502,'威宁' =>101260704,'安陆' =>101200402,'烟台' =>101120501,'中山' =>101281701,'寿光' =>101120603,'浑源' =>101100207,'石浦' =>101210407,'舒城' =>101221507,'阿瓦提' =>101130809,'根河' =>101081015,'南陵' =>101220304,'莆田' =>101230401,'彭州' =>101270112,'大理' =>101290201,'徐水' =>101090204,'安德河' =>101131410,'太原北郊' =>101100106,'庄河' =>101070207,'阿木尔' =>101050707,'丽水' =>101210801,'石拐' =>101080207,'永丰' =>101240606,'会理' =>101271606,'舟山' =>101211101,'日照' =>101121501,'曲江' =>101280209,'呼伦贝尔' =>101081000,'柞水' =>101110603,'偏关' =>101101005,'双牌' =>101251404,'南皮' =>101090707,'高唐' =>101121704,'邯郸' =>101091001,'二连浩特' =>101080903,'石炭井' =>101170205,'杨凌' =>101110108,'深泽' =>101090108,'大兴安岭' =>101050701,'中甸' =>101291304,'东光' =>101090703,'楚雄' =>101290801,'漠河' =>101050703,'宁波' =>101210401,'海阳' =>101120511,'永清' =>101090603,'富阳' =>101210108,'定远' =>101221104,'景洪' =>101291601,'张家川' =>101160907,'赵县' =>101090113,'奇台' =>101130406,'哈尔滨' =>101050101,'郯城' =>101120906,'西吉' =>101170402,'拜城' =>101130804,'鱼台' =>101120704,'施秉' =>101260503,'邻水' =>101270804,'乳源' =>101280202,'晋中' =>101100401,'会泽' =>101290408,'台中' =>101340401,'大城' =>101090605,'寻乌' =>101240716,'望都' =>101090210,'莱芜' =>101121601,'恭城' =>101300511,'遵化' =>101090510,'新乐' =>101090117,'马站' =>101120911,'琼山' =>101310102,'霍邱' =>101221502,'鹤壁' =>101181201,'白云' =>101260102,'民权' =>101181004,'新田' =>101251409,'海北' =>101150801,'岗子' =>101080610,'柳江' =>101300305,'修水' =>101240212,'青神' =>101271506,'新龙' =>101271809,'都昌' =>101240210,'大埔' =>101280404,'屯留' =>101100503,'昌都' =>101140501,'思南' =>101260605,'华山' =>101110512,'德州' =>101120401,'曹县' =>101121007,'永顺' =>101251503,'准格尔旗' =>101080704,'天峨' =>101301202,'临夏' =>101161101,'福贡' =>101291203,'黑山' =>101070705,'大柴旦' =>101150713,'胶州' =>101120205,'东沙岛' =>101282105,'寻甸' =>101290104,'雄县' =>101090217,'巴马' =>101301204,'三门' =>101210604,'南澳' =>101280504,'长寿' =>101041000,'隆林' =>101301008,'黑山头' =>101131404,'罗子沟' =>101060311,'绛县' =>101100807,'宾阳' =>101300109,'祁东' =>101250404,'密云' =>101011300,'肇东' =>101050502,'盐池' =>101170303,'宜宾农试站' =>101271102,'茂县' =>101271904,'新乡' =>101180301,'遵义县' =>101260202,'鄂托克前旗' =>101080705,'新港' =>101340904,'盐边' =>101270204,'垦利' =>101121203,'双柏' =>101290809,'鸡公山' =>101180610,'温宿' =>101130803,'甘谷' =>101160905,'和静' =>101130606,'辉南' =>101060504,'当涂' =>101220502,'汤原' =>101050402,'化德' =>101080403,'天长' =>101221107,'邢台' =>101090901,'阳春' =>101281802,'庆云' =>101120407,'红安' =>101200502);
}

根据编码获取天气

http://m.weather.com.cn/data/".$cityId.".html

根据景区名称获取地名

如根据老君山得到栾川,根据华山得到华阴等。

老高使用python实现,代码如下

#coding=UTF-8

import requests
import time


t = int(time.time()*1000)

t = str(t)

s = requests.Session()
url = 'http://toy1.weather.com.cn/search?cityname=老君山'


headers = {'Referer':'http://www.weather.com.cn/weather1d/101110101.shtml',
'Accept-Encoding':'gzip,deflate,sdch',
'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36'
}

r = s.get(url, headers=headers)

print r.text.encode('gbk')

获取到的结果带有编码,然后取编码的前九位,在之前的PHP数组中找到对应的城市即可。老高推荐使用array_flip将数组的键值互换,方便查找!

获取到了地名,就可以通过百度或者http://m.weather.com.cn/data/".$cityId.".html获取天气了!天气图片可以通过json中的图片信息拼出来:http://m.weather.com.cn/img/a'.$weatherInfo->img11.'.gif