12306 API 之 PHP 实践

引子

http://www.jisuapi.com/api/train/
https://www.juhe.cn/docs/api/id/22/aid/157


URL:
http://pw.pwpwpwpwpwpwpwpwpwpw.pw/api/train/ticket
http://pw.pwpwpwpwpwpwpwpwpwpw.pw/api/train/price

Method:
GET || POST

Arguments:
from => 出发站
to => 到达站
date => 出发日期, 默认今日(可选)


先贴代码

代码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
<?php


namespace app\api\controller;


class Train
{
public function ticket($from = null, $to = null, $date = null, $output = true)
{
$date = $date ?: date('Y-m-d');

$stationList = [
"克拉玛依" => "KHR", "通辽" => "TLD", "鼎湖山" => "NVQ", "东辛庄" => "DXD", "菇园" => "GYL", "南关岭" => "NLT", "温州" => "RZH", "安康" => "AKY", "青铜峡" => "QTJ", "文地" => "WNZ", "沿河城" => "YHP", "卓资山" => "ZZC", "苍溪" => "CXE", "融安" => "RAZ", "仁布" => "RUO", "大青沟" => "DSD", "沙县" => "SAS", "太谷西" => "TIV", "襄阳" => "XFN", "奉化" => "FHH", "临西" => "UEP", "海城" => "HCT", "大余" => "DYG", "两家" => "UJT", "井冈山" => "JGG", "东安东" => "DCZ", "桦南" => "HNB", "漳州" => "ZUS", "台安" => "TID", "怀柔" => "HRP", "黑冲滩" => "HCJ", "双城北" => "SBB", "沙沱" => "SFM", "超梁沟" => "CYP", "临汾西" => "LXV", "缙云西" => "PYH", "沐滂" => "MPQ", "永安乡" => "YNB", "石岭" => "SOL", "松江河" => "SJL", "汤山城" => "TCT", "前进镇" => "QEB", "吴堡" => "WUY", "朝阳川" => "CYL", "鸳鸯镇" => "YYJ", "绵阳" => "MYW", "中牟" => "ZGF", "狮山北" => "NSQ", "绿博园" => "LCF", "繁峙" => "FSV", "肇东" => "ZDB", "辽中" => "LZD", "新城子" => "XCT", "朔州" => "SUV", "蛟河" => "JHL", "澄城" => "CUY", "清河门" => "QHD", "固安" => "GFP", "江宁西" => "OKH", "金州" => "JZT", "枣阳" => "ZYN", "义乌" => "YWH", "武夷山东" => "WCS", "集宁南" => "JAC", "滁州" => "CXH", "阳朔" => "YCZ", "大湾子" => "DFM", "贺州" => "HXZ", "东方红" => "DFB", "旧庄窝" => "JVP", "普安" => "PAN", "张掖西" => "ZEJ", "羊草" => "YAB", "富县东" => "FDY", "新和" => "XIR", "南大庙" => "NMP", "古城镇" => "GZB", "北屯" => "BYP", "泽普" => "ZPR", "临汾" => "LFV", "十渡" => "SEP", "东升" => "DRQ", "冯屯" => "FTX", "彭阳" => "PYJ", "南湖东" => "NDN", "潼关" => "TGY", "文昌" => "WEQ", "干沟" => "GGL", "元氏" => "YSP", "江门" => "JWQ", "莱芜东" => "LWK", "祁阳北" => "QVQ", "焉耆" => "YSR", "葫芦岛北" => "HPD", "晋中" => "JZV", "铁岭" => "TLT", "玉山" => "YNG", "南城司" => "NSP", "诸暨" => "ZDH", "漳州东" => "GOS", "东二道河" => "DRB", "黄石北" => "KSN", "孝南" => "XNV", "原平" => "YPV", "马鞍山" => "MAH", "曹县" => "CXK", "一面山" => "YST", "柴沟堡" => "CGV", "拉哈" => "LHX", "下马塘" => "XAT", "进贤南" => "JXG", "内乡" => "NXF", "大禾塘" => "SOQ", "带岭" => "DLB", "开封" => "KFF", "西湖东" => "WDQ", "旬阳北" => "XBY", "塔尔气" => "TVX", "济宁" => "JIK", "玉屏" => "YZW", "乌拉特前旗" => "WQC", "敦煌" => "DHJ", "潮州" => "CKQ", "五五" => "WVR", "双鸭山" => "SSB", "滁州北" => "CUH", "汉寿" => "VSQ", "青神" => "QVW", "南口" => "NKP", "台州" => "TZH", "都格" => "DMM", "厦门北" => "XKS", "宜兴" => "YUH", "青城山" => "QSW", "榆树台" => "YUT", "彬县" => "BXY", "姚安" => "YAC", "漯河西" => "LBN", "宏庆" => "HEY", "兰岗" => "LNB", "鹰手营子" => "YIP", "宁村" => "NCZ", "竹园坝" => "ZAW", "对青山" => "DQB", "谭家井" => "TNJ", "鲁山" => "LAF", "广水" => "GSN", "惠州" => "HCQ", "湾沟" => "WGL", "白银西" => "BXJ", "黑水" => "HOT", "三明" => "SMS", "三门县" => "OQH", "昭化" => "ZHW", "安平" => "APT", "石岘" => "SXL", "平庄南" => "PND", "金河" => "JHX", "石峡子" => "SXJ", "吴家屯" => "WJT", "陈官营" => "CAJ", "三营" => "OEJ", "合阳" => "HAY", "平果" => "PGZ", "德惠西" => "DXT", "宁陵县" => "NLF", "马兰" => "MLR", "临川" => "LCG", "固原" => "GUJ", "乾安" => "QOT", "宁德" => "NES", "闻喜" => "WXV", "南华" => "NHS", "新乡" => "XXF", "东莞东" => "DMQ", "太平镇" => "TEB", "甘洛" => "VOW", "合肥北城" => "COH", "抚宁" => "FNP", "余粮堡" => "YLD", "榆社" => "YSV", "青龙山" => "QGH", "灵璧" => "GMH", "柏果" => "BGM", "安陆" => "ALN", "长坡岭" => "CPM", "兖州" => "YZK", "华容" => "HRN", "九台南" => "JNL", "桦林" => "HIB", "五龙背东" => "WMT", "益阳" => "AEQ", "壮志" => "ZUX", "大口屯" => "DKP", "砚川" => "YYY", "百里峡" => "AAP", "大安北" => "RNT", "疏勒" => "SUR", "金杖子" => "JYD", "榆树" => "YRT", "坪石" => "PSQ", "凭祥" => "PXZ", "彝良" => "ALW", "七里河" => "QLD", "石山" => "SAD", "金沟屯" => "VGP", "葛根庙" => "GGT", "三堂集" => "SDH", "到保" => "RBT", "兰州新区" => "LQJ", "兰陵北" => "COK", "南阳寨" => "NYF", "新郑机场" => "EZF", "革镇堡" => "GZT", "桐梓" => "TZW", "精河" => "JHR", "佛山" => "FSQ", "芷江" => "ZPQ", "土贵乌拉" => "TGC", "新帐房" => "XZX", "攸县" => "YOG", "前磨头" => "QMP", "瑞安" => "RAH", "百色" => "BIZ", "楚山" => "CSB", "宁东南" => "NDJ", "午汲" => "WJP", "猛洞河" => "MUQ", "王兆屯" => "WZB", "杨杖子" => "YZD", "石泉县" => "SXY", "福利屯" => "FTB", "沈阳北" => "SBT", "叶柏寿" => "YBD", "清徐" => "QUV", "辰清" => "CQB", "昌乐" => "CLK", "溧阳" => "LEH", "桃山" => "TAB", "榆树沟" => "YGP", "葛店南" => "GNN", "鹤立" => "HOB", "承德东" => "CCP", "石景山南" => "SRP", "卫星" => "WVB", "博白" => "BBZ", "顺德学院" => "OJQ", "尚家" => "SJB", "哈尔滨西" => "VAB", "乐昌" => "LCQ", "甘旗卡" => "GQD", "惠农" => "HMJ", "宿州" => "OXH", "新林" => "XPX", "沧州" => "COP", "五常" => "WCB", "兴平" => "XPY", "大庆东" => "LFX", "换新天" => "VTB", "哈拉海" => "HIT", "新余北" => "XBG", "梁山" => "LMK", "大红旗" => "DQD", "杏树" => "XSB", "藤县" => "TAZ", "西固" => "XIJ", "周口" => "ZKN", "广汉北" => "GVW", "酉阳" => "AFW", "米沙子" => "MST", "向塘" => "XTG", "六安" => "UAH", "杏树屯" => "XDT", "田阳" => "TRZ", "周家屯" => "ZOD", "绥德" => "ODY", "诏安" => "ZDS", "淮南东" => "HOH", "莒县" => "JKK", "溧水" => "LDH", "民权" => "MQF", "艾家村" => "AJJ", "鹿道" => "LDL", "隆安东" => "IDZ", "库都尔" => "KDX", "曲阜东" => "QAK", "暖泉" => "NQJ", "新阳镇" => "XZJ", "亭亮" => "TIZ", "西林" => "XYB", "连江" => "LKS", "抚远" => "FYB", "东胜" => "DOC", "大平房" => "DPD", "偏店" => "PRP", "满归" => "MHX", "揭阳" => "JRQ", "广州东" => "GGQ", "乌拉山" => "WSC", "松树镇" => "SSL", "乾县" => "QBY", "邵阳" => "SYQ", "枝城" => "ZCN", "海北" => "HEB", "连云港东" => "UKH", "大关" => "RGW", "富县" => "FEY", "五大连池" => "WRB", "乌兰浩特" => "WWT", "南阳" => "NFF", "二密河" => "RML", "黎塘" => "LTZ", "广州西" => "GXQ", "三家店" => "ODP", "天津南" => "TIP", "郑州西" => "XPF", "李家坪" => "LIJ", "寒葱沟" => "HKB", "巴彦高勒" => "BAC", "武汉" => "WHN", "瓜州" => "GZJ", "白山市" => "HJL", "白音胡硕" => "BCD", "许家台" => "XTJ", "五龙背" => "WBT", "敦化" => "DHL", "万源" => "WYY", "北京东" => "BOP", "渭南镇" => "WNJ", "邯郸" => "HDP", "沙海" => "SED", "平山" => "PSB", "帽儿山" => "MRB", "兴业" => "SNZ", "张家界" => "DIQ", "朝阳镇" => "CZL", "上虞北" => "SSH", "紫阳" => "ZVY", "绥中" => "SZD", "株洲" => "ZZQ", "靖远" => "JYJ", "曲水县" => "QSO", "皇姑屯" => "HTT", "蓝村" => "LCK", "天柱山" => "QWH", "朝阳" => "CYD", "中寨" => "ZZM", "桂林西" => "GEZ", "广宁" => "FBQ", "威虎岭北" => "WBL", "下板城" => "EBP", "古浪" => "GLJ", "牛家" => "NJB", "阎良" => "YNY", "樟树东" => "ZOG", "偏岭" => "PNT", "宿松" => "OAH", "五寨" => "WZV", "长寿北" => "COW", "虢镇" => "GZY", "阿克苏" => "ASR", "贵定县" => "KIW", "巴林" => "BLX", "黄羊滩" => "HGJ", "惠东" => "KDQ", "井店" => "JFP", "岩会" => "AEP", "婺源" => "WYG", "云浮东" => "IXQ", "乳山" => "ROK", "汉川" => "HCN", "轩岗" => "XGV", "金华" => "JBH", "潼南" => "TVW", "德昌" => "DVW", "查布嘎" => "CBC", "临清" => "UQK", "建昌" => "JFD", "穆棱" => "MLB", "东海" => "DHB", "祁阳" => "QWQ", "雁翅" => "YAP", "姚千户屯" => "YQT", "黑井" => "HIM", "绍兴北" => "SLH", "大营子" => "DZD", "清河城" => "QYP", "吕梁" => "LHV", "黄石" => "HSN", "吴桥" => "WUP", "雁荡山" => "YGH", "如东" => "RIH", "阳岔" => "YAL", "汕尾" => "OGQ", "华蓥" => "HUW", "都匀东" => "KJW", "玉门" => "YXJ", "高桥镇" => "GZD", "新松浦" => "XOB", "成高子" => "CZB", "虞城县" => "IXH", "大竹园" => "DZY", "三门峡" => "SMF", "鼎湖东" => "UWQ", "和静" => "HJR", "龙岩" => "LYS", "新县" => "XSN", "花湖" => "KHN", "蓬安" => "PAW", "涪陵北" => "FEW", "桐柏" => "TBF", "塘沽" => "TGP", "云居寺" => "AFP", "园墩" => "YAJ", "宜昌东" => "HAN", "西峡" => "XIF", "老营" => "LXL", "北流" => "BOZ", "西阳村" => "XQF", "介休" => "JXV", "邹城" => "ZIK", "甸心" => "DXM", "六道河子" => "LVP", "盐池" => "YKJ", "宽甸" => "KDT", "容桂" => "RUQ", "简阳" => "JYW", "蛟河西" => "JOL", "大成" => "DCT", "歙县北" => "NPH", "巨野" => "JYK", "宝龙山" => "BND", "鹰潭北" => "YKG", "卫东" => "WVT", "平旺" => "PWV", "山坡东" => "SBN", "广德" => "GRH", "沟帮子" => "GBD", "羊场" => "YED", "来宾北" => "UCZ", "滦河" => "UDP", "小榄" => "EAQ", "牟平" => "MBK", "商洛" => "OLY", "营山" => "NUW", "石林" => "SLM", "白泉" => "BQL", "灌水" => "GST", "滦县" => "UXP", "建瓯" => "JVS", "永乐店" => "YDY", "甘谷" => "GGJ", "刘家店" => "UDT", "南宁西" => "NXZ", "长城" => "CEJ", "余姚" => "YYH", "疏勒河" => "SHJ", "白城" => "BCT", "鸭园" => "YYL", "龙华" => "LHP", "崇左" => "CZZ", "日喀则" => "RKO", "莫尔道嘎" => "MRX", "海东西" => "HDO", "南江" => "FIW", "玉林" => "YLZ", "周家" => "ZOB", "盐津" => "AEW", "南仇" => "NCK", "武威" => "WUJ", "瓦窑田" => "WIM", "杭州南" => "XHH", "大连" => "DLT", "邯郸东" => "HPP", "缙云" => "JYH", "凤阳" => "FUH", "合肥" => "HFH", "南口前" => "NKT", "牙克石" => "YKX", "明港东" => "MDN", "高碑店东" => "GMP", "衡南" => "HNG", "新晃西" => "EWQ", "桓台" => "VTK", "官厅西" => "KEP", "瓦房店" => "WDT", "草河口" => "CKT", "镇远" => "ZUW", "茅草坪" => "KPM", "平凉南" => "POJ", "贲红" => "BVC", "古田" => "GTS", "新绛" => "XJV", "偃师" => "YSF", "安口窑" => "AYY", "富裕" => "FYX", "海 口东" => "KEQ", "阳信" => "YVK", "晨明" => "CMB", "丹凤" => "DGY", "嘉峪关" => "JGJ", "三义井" => "OYD", "金昌" => "JCJ", "张百湾" => "ZUP", "林海" => "LXX", "白壁关" => "BGV", "拉古" => "LGB", "即墨北" => "JVK", "康熙岭" => "KXZ", "南河川" => "NHJ", "松桃" => "MZQ", "丹东" => "DUT", "咸阳秦都" => "XOY", "建三江" => "JIB", "凯里" => "KLW", "鹰潭" => "YTG", "乌海" => "WVC", "落坡岭" => "LPP", "阜宁" => "AKH", "双辽" => "ZJD", "曲靖" => "QJM", "廊坊" => "LJP", "龙里北" => "KFW", "柳园" => "DHR", "枣庄西" => "ZFK", "桃村" => "TCK", "五莲" => "WLK", "哈密" => "HMR", "吉舒" => "JSL", "上腰墩" => "SPJ", "桥头" => "QAT", "眉山东" => "IUW", "运城" => "YNV", "海口" => "VUQ", "克山" => "KSB", "羊臼河" => "YHM", "金马村" => "JMM", "普雄" => "POW", "新余" => "XUG", "北碚" => "BPW", "石门县" => "OMQ", "新肇" => "XZT", "同心" => "TXJ", "木里图" => "MUD", "凤凰城" => "FHT", "开阳" => "KVW", "蚌埠南" => "BMH", "修武西" => "EXF", "茶陵" => "CDG", "平台" => "PVT", "遂溪" => "SXZ", "克东" => "KOB", "永康南" => "QUH", "广宁寺南" => "GNT", "金宝屯" => "JBD", "开安" => "KAT", "太姥山" => "TLS", "宝鸡" => "BJY", "宁明" => "NMZ", "西麻山" => "XMB", "汉阴" => "HQY", "深圳东" => "BJQ", "阳平关" => "YAY", "漳平" => "ZPS", "烟筒屯" => "YUX", "四方台" => "STB", "瓦房店西" => "WXT", "牙屯堡" => "YTZ", "隆昌" => "LCW", "大石桥" => "DQT", "禹城" => "YCK", "商丘" => "SQF", "定州" => "DXP", "驼腰岭" => "TIL", "舍力虎" => "VLD", "夏邑县" => "EJH", "安德" => "ARW", "呼兰" => "HUB", "潜江" => "QJN", "宁东" => "NOJ", "文登东" => "WGK", "承德" => "CDP", "磐石" => "PSL", "弋阳" => "YIG", "小董" => "XEZ", "平原" => "PYK", "纪家沟" => "VJD", "井南" => "JNP", "丹阳北" => "EXH", "龙嘉" => "UJL", "金华南" => "RNH", "正镶白旗" => "ZXC", "巩义南" => "GYF", "华城" => "VCQ", "章党" => "ZHT", "向阳" => "XDB", "铁力" => "TLB", "资阳北" => "FYW", "涟源" => "LAQ", "吐哈" => "THR", "东方" => "UFQ", "韶山南" => "INQ", "娄底" => "LDQ", "山河屯" => "SHL", "白河" => "BEL", "唐家湾" => "PDQ", "怀化" => "HHQ", "德惠" => "DHT", "宿州东" => "SRH", "天门" => "TMN", "白音察干" => "BYC", "沙城" => "SCP", "秦皇岛" => "QTP", "楚雄" => "COM", "包头东" => "BDC", "倭肯" => "WQB", "彭州" => "PMW", "林口" => "LKB", "羊者窝" => "AEM", "康庄" => "KZP", "碧鸡关" => "BJM", "灵宝" => "LBF", "北安" => "BAB", "明光" => "MGH", "西大庙" => "XMP", "尖峰" => "PFQ", "小市" => "XST", "泉州" => "QYS", "高各庄" => "GGP", "富川" => "FDZ", "青州市" => "QZK", "德保" => "RBZ", "宣城" => "ECH", "新安县" => "XAF", "卧里屯" => "WLX", "韩城" => "HCY", "平洋" => "PYX", "芜湖" => "WHH", "首山" => "SAT", "乌西" => "WXR", "松河" => "SBM", "三河县" => "OXP", "麻山" => "MAB", "烟筒山" => "YSL", "图们北" => "QSL", "温岭" => "VHH", "仪征" => "UZH", "丰城" => "FCG", "宾阳" => "UKZ", "锦河" => "JHB", "邓州" => "DOF", "格尔木" => "GRO", "冷水江东" => "UDQ", "绕阳河" => "RHD", "平型关" => "PGV", "东丰" => "DIL", "大其拉哈" => "DQX", "宝华山" => "BWH", "莱西" => "LXK", "海宁西" => "EUH", "秦家庄" => "QZV", "山丹" => "SDJ", "石嘴山" => "QQJ", "天津" => "TJP", "白云鄂博" => "BEC", "闻喜西" => "WOV", "潮阳" => "CNQ", "嘉兴南" => "EPH", "嫩江" => "NGX", "厦门高崎" => "XBS", "泉阳" => "QYL", "玉泉" => "YQB", "迎宾路" => "YFW", "天水" => "TSJ", "延庆" => "YNP", "三井子" => "OJT", "萨拉齐" => "SLC", "高楼房" => "GFM", "莆田" => "PTS", "霞浦" => "XOS", "平泉" => "PQP", "威舍" => "WSM", "扎鲁特" => "ZLD", "通远堡西" => "TST", "甘河" => "GAX", "广安" => "VJW", "下城子" => "XCB", "康金井" => "KJB", "博兴" => "BXK", "亳州" => "BZH", "钟祥" => "ZTN", "无锡新区" => "IFH", "平房" => "PFB", "双流机场" => "IPW", "八面通" => "BMB", "大堡" => "DVT", "晋江" => "JJS", "冕宁" => "UGW", "湘潭" => "XTQ", "庙岭" => "MLL", "钦州东" => "QDZ", "达家沟" => "DJT", "大营镇" => "DJP", "开原西" => "KXT", "庄桥" => "ZQH", "宁波" => "NGH", "达拉特旗" => "DIC", "祁东北" => "QRQ", "昆明西" => "KXM", "招柏" => "ZBP", "八角台" => "BTD", "台前" => "TTK", "兰棱" => "LLB", "西昌" => "ECW", "图里河" => "TEX", "北京北" => "VAP", "能家" => "NJD", "平社" => "PSV", "漯河" => "LON", "永寿" => "ASY", "郴州" => "CZQ", "鲘门" => "KMQ", "南宫东" => "NFP", "伊春" => "YCB", "道清" => "DML", "涉县" => "OEP", "岳池" => "AWW", "钟山西" => "ZAZ", "洛阳东" => "LDF", "新邱" => "XQD", "百浪" => "BRZ", "巴山" => "BAY", "水泉" => "SID", "静海" => "JHP", "湘乡" => "XXQ", "孙家" => "SUB", "昌黎" => "CLP", "靖西" => "JMZ", "斜河涧" => "EEP", "三合庄" => "SVP", "奎屯" => "KTR", "长春" => "CCT", "纸坊东" => "ZMN", "张兰" => "ZLV", "三江南" => "SWZ", "庆盛" => "QSQ", "榕江" => "RVW", "南通" => "NUH", "长汀镇" => "CDB", "汉沽" => "HGP", "红星" => "VXB", "杨柳青" => "YQP", "哲里木" => "ZLC", "梧州" => "WZZ", "苇河" => "WHB", "平顶山西" => "BFF", "庆丰" => "QFT", "咸阳" => "XYY", "葡萄菁" => "PTW", "张家口" => "ZKP", "白银市" => "BNJ", "平凉" => "PIJ", "湛江西" => "ZWQ", "宣汉" => "XHY", "碾子山" => "NZX", "定陶" => "DQK", "太原南" => "TNV", "衡山" => "HSQ", "曾口" => "ZKE", "土地堂东" => "TTN", "零陵" => "UWZ", "拉萨" => "LSO", "华容南" => "KRN", "海阳北" => "HEK", "宣化" => "XHP", "淮安" => "AUH", "芦溪" => "LUG", "阿里河" => "AHX", "湖州" => "VZH", "玉田县" => "ATP", "百宜" => "FHW", "西昌南" => "ENW", "大陆号" => "DLC", "泉州东" => "QRS", "德清西" => "MOH", "道州" => "DFZ", "营街" => "YAM", "赣州" => "GZG", "上海西" => "SXH", "扶余" => "FYT", "都匀" => "RYW", "黄石东" => "OSN", "襄汾西" => "XTV", "水富" => "OTW", "夏石" => "XIZ", "五道河" => "WHP", "太原" => "TYV", "千河" => "QUY", "漳浦" => "ZCS", "耒阳" => "LYQ", "霍州东" => "HWV", "官高" => "GVP", "北票南" => "RPD", "十堰" => "SNN", "亚布力南" => "YWB", "庆安" => "QAB", "德阳" => "DYW", "库伦" => "KLD", "峨眉" => "EMW", "新兴县" => "XGQ", "武夷山" => "WAS", "昌图西" => "CPT", "福海" => "FHR", "海林" => "HRB", "饶平" => "RVQ", "内江北" => "NKW", "德令哈" => "DHO", "上杭" => "JBS", "阿图什" => "ATR", "平遥古城" => "PDV", "利川" => "LCN", "吉首" => "JIQ", "宜城" => "YIN", "新坪田" => "XPM", "大冶北" => "DBN", "太原东" => "TDV", "源迁" => "AQK", "上饶" => "SRG", "赶水" => "GSW", "抚顺北" => "FET", "甘泉北" => "GEY", "皋兰" => "GEJ", "廉江" => "LJZ", "吉安" => "VAG", "武威南" => "WWJ", "哈尔滨北" => "HTB", "璧山" => "FZW", "深圳坪山" => "IFQ", "卓资东" => "ZDC", "芦潮港" => "UCH", "师庄" => "SNM", "皮口南" => "PKT", "新友谊" => "EYB", "旗下营" => "QXC", "萍乡北" => "PBG", "长阳" => "CYN", "兴国" => "EUG", "闽清北" => "MBS", "万州" => "WYW", "黄州" => "VON", "东乡" => "DXG", "苏州新区" => "ITH", "小得江" => "EJM", "化州" => "HZZ", "大林" => "DLD", "乌鲁木齐" => "WAR", "高密" => "GMK", "靖边" => "JIY", "霸州西" => "FOP", "苏家屯" => "SXT", "银川" => "YIJ", "随州" => "SZN", "长葛" => "CEF", "平昌" => "PCE", "宁国" => "NNH", "当阳" => "DYN", "樟树" => "ZSG", "敖力布告" => "ALD", "大杨树" => "DUX", "张辛" => "ZIP", "永康" => "RFH", "奇峰塔" => "QVP", "镇西" => "ZVT", "四平东" => "PPT", "涵江" => "HJS", "满洲里" => "MLX", "五营" => "WWB", "四合永" => "OHD", "惠州南" => "KNQ", "容县" => "RXZ", "罗城" => "VCZ", "麦园" => "MYS", "韩麻营" => "HYP", "红山" => "VSB", "惠州西" => "VXQ", "浩良河" => "HHB", "邢台东" => "EDP", "东京城" => "DJB", "谢家镇" => "XMT", "秧草地" => "YKM", "晋城" => "JCF", "草市" => "CSL", "常州北" => "ESH", "磐安镇" => "PAJ", "攸县南" => "YXG", "龙骨甸" => "LGM", "本溪湖" => "BHT", "果松" => "GSL", "弓棚子" => "GPT", "白水江" => "BSY", "平度" => "PAK", "南杂木" => "NZT", "白河县" => "BEY", "热水" => "RSD", "七台河" => "QTB", "骆驼巷" => "LTJ", "嘉峪关南" => "JBJ", "武义" => "RYH", "沈家河" => "OJJ", "洪洞" => "HDV", "沙河" => "SHP", "马龙" => "MGM", "兴隆店" => "XDD", "驻马店西" => "ZLN", "石龙" => "SLQ", "中山" => "ZSQ", "云东海" => "NAQ", "虎林" => "VLB", "光明城" => "IMQ", "叶城" => "YER", "遂平" => "SON", "嘉兴" => "JXH", "湖口" => "HKG", "韦庄" => "WZY", "玉石" => "YSJ", "许家屯" => "XJT", "板城" => "BUP", "当涂东" => "OWH", "遂宁" => "NIW", "歙县" => "OVH", "麻城北" => "MBN", "怀集" => "FAQ", "东津" => "DKB", "贵阳北" => "KQW", "两当" => "LDY", "南芬" => "NFT", "丰乐镇" => "FZB", "德州东" => "DIP", "江都" => "UDH", "涿州" => "ZXP", "布列开" => "BLR", "蒲城东" => "PEY", "济南西" => "JGK", "南岔" => "NCB", "柞水" => "ZSY", "浠水" => "XZN", "张掖" => "ZYJ", "伊拉哈" => "YLX", "芦台" => "LTP", "苏州北" => "OHH", "巴中东" => "BDE", "顺德" => "ORQ", "朱家窑" => "ZUJ", "衡阳东" => "HVQ", "黄陵南" => "VLY", "山城镇" => "SCL", "汉口" => "HKN", "南雄" => "NCQ", "老边" => "LLT", "明水河" => "MUT", "徐州" => "XCH", "南曹" => "NEF", "土桥子" => "TQJ", "绥化" => "SHB", "瓦屋山" => "WAH", "高邑西" => "GNP", "察素齐" => "CSC", "焦作东" => "WEF", "茂名东" => "MDQ", "靖宇" => "JYL", "项城" => "ERN", "离堆公园" => "INW", "鹤庆" => "HQM", "花桥" => "VQH", "王家湾" => "WJJ", "都江堰" => "DDW", "张家口南" => "ZMP", "钦州" => "QRZ", "井陉" => "JJP", "珠海" => "ZHQ", "高山子" => "GSD", "淄博" => "ZBK", "拉林" => "LAB", "平遥" => "PYV", "北京" => "BJP", "西哲里木" => "XRD", "犀浦" => "XIW", "永川东" => "WMW", "南丰" => "NFG", "中和" => "ZHX", "安亭北" => "ASH", "亚布力" => "YBB", "三十家" => "SRD", "镇江" => "ZJH", "阳城" => "YNF", "菏泽" => "HIK", "红安" => "HWN", "公主岭" => "GLT", "罗平" => "LPM", "孝感北" => "XJN", "千阳" => "QOY", "丽江" => "LHM", "合川" => "WKW", "创业村" => "CEX", "西安" => "XAY", "拉鲊" => "LEM", "上虞" => "BDH", "北京西" => "BXP", "龙南" => "UNG", "常庄" => "CVK", "南台" => "NTT", "开通" => "KTT", "永济" => "YIV", "红光镇" => "IGW", "东戴河" => "RDD", "南平" => "NPS", "彭山北" => "PPW", "岳阳" => "YYQ", "温春" => "WDB", "荆门" => "JMN", "三道湖" => "SDL", "醴陵" => "LLG", "大坝" => "DBJ", "干塘" => "GNJ", "麻阳" => "MVQ", "肃宁" => "SYP", "西岗子" => "NBB", "南博山" => "NBK", "鄯善北" => "SMR", "武当山" => "WRN", "米易" => "MMW", "岱岳" => "RYV", "天津西" => "TXP", "大田边" => "DBM", "白水县" => "BGY", "北京南" => "VNP", "徐水" => "XSP", "赛汗塔拉" => "SHC", "白马井" => "BFQ", "杨树岭" => "YAD", "哈尔滨东" => "VBB", "中川机场" => "ZJJ", "北宅" => "BVP", "榆次" => "YCV", "红江" => "HFM", "信阳" => "XUN", "临泽" => "LEJ", "兴凯" => "EKB", "大苴" => "DIM", "东戌" => "RXP", "世博园" => "ZWT", "镇安" => "ZEY", "大石寨" => "RZT", "乐山北" => "UTW", "艾河" => "AHP", "惠环" => "KHQ", "柳林南" => "LKV", "海龙" => "HIL", "五府山" => "WFG", "昆阳" => "KAM", "汤池" => "TCX", "兴城" => "XCD", "长春西" => "CRT", "白洋淀" => "FWP", "博克图" => "BKX", "庙城" => "MAP", "滴道" => "DDB", "河口南" => "HKJ", "肥东" => "FIH", "密云北" => "MUP", "南湾子" => "NWP", "老府" => "UFD", "灵石东" => "UDV", "海阳" => "HYK", "团结" => "TIX", "阳邑" => "ARP", "平安" => "PAL", "越西" => "YHW", "荣成" => "RCK", "綦江" => "QJW", "寒岭" => "HAT", "吉林" => "JLL", "前锋" => "QFB", "合浦" => "HVZ", "信丰" => "EFG", "大庆" => "DZX", "黑旺" => "HWK", "临河" => "LHC", "灵丘" => "LVV", "定襄" => "DXV", "衡山西" => "HEQ", "阆中" => "LZE", "万宁" => "WNQ", "霍邱" => "FBH", "河唇" => "HCZ", "魏善庄" => "WSP", "界首市" => "JUN", "和平" => "VAQ", "鹤北" => "HMB", "汝州" => "ROF", "桥西" => "QXJ", "江华" => "JHZ", "北马圈子" => "BRP", "扬州" => "YLH", "老莱" => "LAX", "渠黎" => "QLZ", "荣昌" => "RCW", "泾县" => "LOH", "德州" => "DZP", "黄梅" => "VEH", "梧州南" => "WBZ", "宝鸡南" => "BBY", "广州南" => "IZQ", "贵溪" => "GXG", "江油" => "JFW", "喀什" => "KSR", "来宾" => "UBZ", "樟木头东" => "ZRQ", "八面城" => "BMD", "泗阳" => "MPH", "安塘" => "ATV", "三阳川" => "SYJ", "南芬北" => "NUT", "盘关" => "PAM", "栟茶" => "FWH", "新窝铺" => "EPD", "北戴河" => "BEP", "绿化" => "LWJ", "大兴沟" => "DXL", "白音华南" => "FNC", "莒南" => "JOK", "建水" => "JSM", "双牌" => "SBZ", "五棵树" => "WKT", "义马" => "YMF", "永州" => "AOQ", "黄河景区" => "HCF", "涞源" => "LYP", "锦州南" => "JOD", "成都南" => "CNW", "姜堰" => "UEH", "阳泉曲" => "YYV", "太阳升" => "TQT", "张维屯" => "ZWB", "六枝" => "LIW", "新杖子" => "ERP", "五道沟" => "WDL", "丹阳" => "DYH", "五家" => "WUB", "丹徒" => "RUH", "文安" => "WBP", "塔崖驿" => "TYP", "新干" => "EGG", "中华门" => "VNH", "峻德" => "JDB", "长垣" => "CYF", "正定" => "ZDP", "莱阳" => "LYK", "南昌" => "NCG", "秦岭" => "QLY", "定远" => "EWH", "双丰" => "OFB", "抚州东" => "FDG", "窑上" => "ASP", "鹤壁" => "HAF", "风陵渡" => "FLV", "虎石台" => "HUT", "钟山" => "ZSZ", "铜仁" => "RDQ", "岔江" => "CAM", "官字井" => "GOT", "林盛堡" => "LBT", "将乐" => "JLS", "铜陵" => "TJH", "邢台" => "XTP", "简阳南" => "JOW", "龙爪沟" => "LZT", "杨陵南" => "YEY", "长农" => "CNJ", "清华园" => "QHP", "松江" => "SAH", "石人" => "SRL", "大杖子" => "DAP", "彭水" => "PHW", "太阳山" => "TYJ", "长甸" => "CDT", "青县" => "QXP", "汾阳" => "FAV", "永济北" => "AJV", "平原堡" => "PPJ", "昌平" => "CPP", "绩溪县" => "JRH", "南宁" => "NNZ", "略阳" => "LYY", "三家寨" => "SMM", "霍尔果斯" => "HFR", "同江" => "TJB", "朱家沟" => "ZUB", "丹东西" => "RWT", "建设" => "JET", "龙丰" => "KFQ", "小河镇" => "EKY", "陆良" => "LRM", "北营" => "BIV", "蔡家坡" => "CJY", "郑州" => "ZZF", "庆阳山" => "QSJ", "宜良北" => "YSM", "大荔" => "DNY", "豆张庄" => "RZP", "赤壁" => "CBN", "通远堡" => "TYT", "大盘石" => "RPP", "兴隆镇" => "XZB", "福山镇" => "FZQ", "新绰源" => "XRX", "坡底下" => "PXJ", "奈曼" => "NMD", "葫芦岛" => "HLD", "郫县" => "PWW", "昂昂溪" => "AAX", "安阳东" => "ADF", "昆山南" => "KNH", "良各庄" => "LGP", "临澧" => "LWQ", "徐家" => "XJB", "双流西" => "IQW", "进贤" => "JUG", "加格达奇" => "JGX", "峨边" => "EBW", "获嘉" => "HJF", "金山屯" => "JTB", "潍坊" => "WFK", "狼尾山" => "LRJ", "延安" => "YWY", "新保安" => "XAP", "兰考" => "LKF", "齐齐哈尔南" => "QNB", "尤溪" => "YXS", "上园" => "SUD", "赵光" => "ZGB", "林源" => "LYX", "句容西" => "JWH", "通北" => "TBB", "华山北" => "HDY", "小岭" => "XLB", "桂林北" => "GBZ", "沂水" => "YUK", "马林" => "MID", "渑池南" => "MNF", "潞城" => "UTP", "白沟" => "FEP", "新乐" => "ELP", "上高镇" => "SVK", "弥渡" => "MDF", "砀山" => "DKH", "汝箕沟" => "RQJ", "临沂" => "LVK", "新安" => "EAM", "工农湖" => "GRT", "兴和西" => "XEC", "沈阳" => "SYT", "松原北" => "OCT", "微子镇" => "WQP", "唐山" => "TSP", "六盘水" => "UMW", "红兴隆" => "VHB", "嘎什甸子" => "GXD", "曾家坪子" => "ZBW", "礼泉" => "LGY", "大安" => "RAT", "高碑店" => "GBP", "临泽南" => "LDJ", "漫水湾" => "MKW", "柳树屯" => "LSD", "贺家店" => "HJJ", "海坨子" => "HZT", "打柴沟" => "DGJ", "陆川" => "LKZ", "安龙" => "AUZ", "靖州" => "JEQ", "白音他拉" => "BID", "曹子里" => "CFP", "伊宁东" => "YNR", "鄂州东" => "EFN", "咸宁" => "XNN", "二营" => "RYJ", "小河沿" => "XYD", "经棚" => "JPC", "英德西" => "IIQ", "高台" => "GTJ", "镇城底" => "ZDV", "石人城" => "SRB", "樟木头" => "ZOQ", "南丹" => "NDZ", "永定" => "YGS", "新都东" => "EWW", "烟台南" => "YLK", "常德" => "VGQ", "建瓯西" => "JUS", "毛坝" => "MBY", "滕州" => "TXK", "大板" => "DBC", "延吉" => "YJL", "朱杨溪" => "ZXW", "汤旺河" => "THB", "寿阳" => "SYV", "依安" => "YAX", "惠安" => "HNS", "长春南" => "CET", "三原" => "SAY", "前山" => "QXQ", "泊头" => "BZP", "三门峡西" => "SXF", "凯里南" => "QKW", "黄松甸" => "HDL", "南江口" => "NDQ", "横沟桥东" => "HNN", "独山" => "RWW", "金坑" => "JKT", "西安北" => "EAY", "章丘" => "ZTK", "衢州" => "QEH", "青田" => "QVH", "邵阳北" => "OVQ", "榆树屯" => "YSX", "金寨" => "JZH", "雷州" => "UAQ", "东来" => "RVD", "长岭子" => "CLT", "通化" => "THL", "福利区" => "FLJ", "遵义" => "ZIW", "大石头" => "DSL", "成都" => "CDW", "孟庄" => "MZF", "任丘" => "RQP", "彭山" => "PSW", "镜铁山" => "JVJ", "太平川" => "TIT", "谷城" => "GCN", "汨罗东" => "MQQ", "郭家店" => "GDT", "桂林" => "GLZ", "保定" => "BDP", "会同" => "VTQ", "沁县" => "QVV", "大拟" => "DNZ", "安仁" => "ARG", "石头" => "OTB", "华容东" => "HPN", "阿克陶" => "AER", "镇平" => "ZPF", "三水北" => "ARQ", "桐城" => "TTH", "明珠" => "MFQ", "大连北" => "DFT", "白沙坡" => "BPM", "崇仁" => "CRG", "普湾" => "PWT", "安图西" => "AXL", "通道" => "TRQ", "长寿" => "EFW", "通沟" => "TOL", "塔哈" => "THX", "丰都" => "FUW", "渭南北" => "WBY", "八达岭" => "ILP", "宝清" => "BUB", "露水河" => "LUL", "下花园" => "XYP", "合肥西" => "HTH", "平顶山" => "PEN", "分宜" => "FYG", "裴德" => "PDB", "豆罗" => "DLV", "高村" => "GCV", "安庆西" => "APH", "泾川" => "JAJ", "汤逊湖" => "THN", "清水北" => "QEJ", "红果" => "HEM", "宝拉格" => "BQC", "南京" => "NJH", "元宝山" => "YUD", "平安驿" => "PNO", "喇嘛甸" => "LMX", "石坝" => "OBJ", "乌兰哈达" => "WLC", "松江南" => "IMH", "三间房" => "SFX", "三亚" => "SEQ", "凌源东" => "LDD", "瑞昌" => "RCG", "石梯" => "STE", "长兴" => "CBH", "黄陵" => "ULY", "双城堡" => "SCB", "永泰" => "YTS", "阿城" => "ACB", "长兴南" => "CFH", "莲江口" => "LHB", "中宁" => "VNJ", "田东北" => "TBZ", "珠窝" => "ZOP", "锦州" => "JZD", "武夷山北" => "WBS", "许昌" => "XCF", "马鞍山东" => "OMH", "沙河市" => "VOP", "高滩" => "GAY", "平岗" => "PGL", "宋城路" => "SFF", "贺胜桥东" => "HLN", "祁县东" => "QGV", "达拉特西" => "DNC", "瓦拉干" => "WVX", "于都" => "YDG", "深圳西" => "OSQ", "霸州" => "RMP", "洋河" => "GTH", "资中" => "ZZW", "羊尾哨" => "YWM", "密山" => "MSB", "燕子砭" => "YZY", "桑园子" => "SAJ", "蓟县" => "JKP", "龙里" => "LLW", "大战场" => "DTJ", "岑溪" => "CNZ", "新立镇" => "XGT", "曲江" => "QIM", "山市" => "SQB", "小扬气" => "XYX", "峨眉山" => "IXW", "西街口" => "EKM", "鸡西" => "JXB", "福州南" => "FYS", "旬阳" => "XUY", "民和南" => "MNO", "七甸" => "QDM", "尼勒克" => "NIR", "平关" => "PGM", "陵水" => "LIQ", "息烽" => "XFW", "低庄" => "DVQ", "上板城" => "SBP", "沃皮" => "WPT", "水洋" => "OYP", "鄂州" => "ECN", "泗洪" => "GQH", "凌源" => "LYD", "南观村" => "NGP", "新民" => "XMD", "梅州" => "MOQ", "花园口" => "HYT", "兴泉堡" => "XQJ", "伊尔施" => "YET", "西固城" => "XUJ", "前卫" => "QWD", "夏官营" => "XGJ", "梨树镇" => "LSB", "茶卡" => "CVO", "东港北" => "RGT", "东光" => "DGP", "周水子" => "ZIT", "烟台" => "YAK", "威海" => "WKK", "铜仁南" => "TNW", "渭津" => "WJL", "辛集" => "ENP", "索伦" => "SNT", "蒙自北" => "MBM", "青岛" => "QDK", "额济纳" => "EJC", "宝泉岭" => "BQB", "延吉西" => "YXL", "侯马西" => "HPV", "三源浦" => "SYL", "一间堡" => "YJT", "黄羊镇" => "HYJ", "尚志" => "SZB", "闽清" => "MQS", "大元" => "DYZ", "三都县" => "KKW", "阿拉山口" => "AKR", "邵武" => "SWS", "澧县" => "LEQ", "五叉沟" => "WCT", "新津" => "IRW", "龙市" => "LAG", "泥河子" => "NHD", "班猫箐" => "BNM", "施家嘴" => "SHM", "孙吴" => "SKB", "文登" => "WBK", "石林南" => "LNM", "罗江" => "LJW", "黄冈东" => "KAN", "轮台" => "LAR", "唐河" => "THF", "天镇" => "TZV", "老城镇" => "ACQ", "红岘台" => "HTJ", "洪河" => "HPB", "古东" => "GDV", "建始" => "JRN", "青莲" => "QEW", "民乐" => "MBJ", "秦家" => "QJB", "泰来" => "TLX", "上板城南" => "OBP", "兴宁" => "ENQ", "东莞" => "RTQ", "通海" => "TAM", "恩施" => "ESN", "纳雍" => "NYE", "齐齐哈尔" => "QHX", "马莲河" => "MHB", "怀仁" => "HRV", "官厅" => "GTP", "汉源" => "WHW", "仲恺" => "KKQ", "福田" => "NZQ", "珲春" => "HUL", "于家堡" => "YKP", "邵东" => "FIQ", "山阴" => "SNV", "玛纳斯湖" => "MNR", "蔺家楼" => "ULK", "应城" => "YHN", "卫辉" => "WHF", "清远" => "QBQ", "枣庄东" => "ZNK", "范家屯" => "FTT", "凤城东" => "FDT", "西丰" => "XFT", "鹤壁东" => "HFF", "三江县" => "SOZ", "茂名" => "MMZ", "镇赉" => "ZLT", "鄯善" => "SSR", "坪上" => "PSK", "笔架山" => "BSB", "融水" => "RSZ", "元谋" => "YMM", "二道沟门" => "RDP", "兑镇" => "DWV", "成吉思汗" => "CJX", "永丰营" => "YYM", "乐山" => "IVW", "东庄" => "DZV", "新青" => "XQB", "三江口" => "SKD", "角美" => "JES", "普定" => "PGW", "渑池" => "MCF", "邳州" => "PJH", "织金" => "IZW", "阿金" => "AJD", "汪清" => "WQL", "石家庄" => "SJP", "苍南" => "CEH", "黄山" => "HKH", "碧江" => "BLQ", "神头" => "SEV", "全州南" => "QNZ", "恭城" => "GCZ", "双峰北" => "NFQ", "乌伊岭" => "WPB", "焦作" => "JOF", "勃利" => "BLB", "狮山" => "KSQ", "来舟" => "LZS", "普宁" => "PEQ", "卢龙" => "UAP", "仙桃西" => "XAN", "西平" => "XPN", "十家子" => "SJD", "广州北" => "GBQ", "信宜" => "EEQ", "公主岭南" => "GBT", "廊坊北" => "LFP", "下台子" => "EIP", "塔石嘴" => "TIM", "二龙" => "RLD", "独立屯" => "DTX", "西小召" => "XZC", "织金北" => "ZJE", "衡阳" => "HYQ", "义县" => "YXD", "大庆西" => "RHX", "如皋" => "RBH", "小寺沟" => "ESP", "安家" => "AJB", "会昌北" => "XEG", "临邑" => "LUK", "塔河" => "TXX", "公营子" => "GYD", "那铺" => "NPZ", "安化" => "PKQ", "慈利" => "CUQ", "章古台" => "ZGD", "尹地" => "YDM", "定西" => "DSJ", "青白江东" => "QFW", "北台" => "BTT", "石桥" => "SQE", "海口东" => "HMQ", "珠海北" => "ZIQ", "月亮田" => "YUM", "三明北" => "SHS", "得耳布尔" => "DRX", "太谷" => "TGV", "南平北" => "NBS", "屏边" => "PBM", "李家" => "LJB", "香兰" => "XNB", "兴安" => "XAZ", "南昌西" => "NXG", "大兴" => "DXX", "丰镇" => "FZC", "岐山" => "QAY", "熊岳城" => "XYT", "小东" => "XOD", "保定东" => "BMP", "源潭" => "YTQ", "枝江北" => "ZIN", "发耳" => "FEM", "城阳" => "CEK", "滨州" => "BIK", "沙坡头" => "SFJ", "李旺" => "VLJ", "天岗" => "TGL", "文水" => "WEV", "歪头山" => "WIT", "武功" => "WGY", "天门南" => "TNN", "棕溪" => "ZOY", "桐乡" => "TCH", "火连寨" => "HLT", "昌平北" => "VBP", "江山" => "JUH", "合肥南" => "ENH", "王岗" => "WGB", "霍林郭勒" => "HWD", "玉山南" => "YGG", "喜德" => "EDW", "永修" => "ACG", "夹心子" => "JXT", "四平" => "SPT", "林西" => "LXC", "白涧" => "BAP", "深圳" => "SZQ", "长沙" => "CSQ", "嘉峰" => "JFF", "甘泉" => "GQY", "泽润里" => "ZLM", "庐山" => "LSG", "泰和" => "THG", "花棚子" => "HZM", "永安" => "YAS", "皮口" => "PUT", "鹤岗" => "HGB", "京山" => "JCN", "渠县" => "QRW", "野三坡" => "AIP", "定边" => "DYJ", "霍州" => "HZV", "莎车" => "SCR", "始兴" => "IPQ", "新晃" => "XLQ", "三水南" => "RNQ", "英吉沙" => "YIR", "甲山" => "JOP", "曲阜" => "QFK", "马桥河" => "MQB", "柴岗" => "CGT", "襄汾" => "XFV", "芦沟" => "LOM", "厦门" => "XMS", "运城北" => "ABV", "河津" => "HJV", "苇子沟" => "WZL", "酒泉南" => "JNJ", "浮图峪" => "FYP", "盘锦北" => "PBD", "高邑" => "GIP", "城固" => "CGY", "阿龙山" => "ASX", "和硕" => "VUR", "沭阳" => "FMH", "宁家" => "NVT", "盘锦" => "PVD", "临江" => "LQL", "刘家河" => "LVT", "洪洞西" => "HTV", "胜芳" => "SUP", "西宁" => "XNO", "重庆北" => "CUW", "永嘉" => "URH", "里木店" => "LMB", "潘家店" => "PDP", "北海" => "BHZ", "固镇" => "GEH", "流水沟" => "USP", "余江" => "YHG", "醴陵东" => "UKQ", "三水" => "SJQ", "小月旧" => "XFM", "友好" => "YOB", "横峰" => "HFG", "红花沟" => "VHD", "岢岚" => "KLV", "米脂" => "MEY", "平南南" => "PAZ", "常州" => "CZH", "广汉" => "GHW", "东明县" => "DNF", "庙山" => "MSN", "高州" => "GSQ", "土门子" => "TCJ", "代县" => "DKV", "东明村" => "DMD", "徐州东" => "UUH", "中宁东" => "ZDJ", "建宁县北" => "JCS", "草海" => "WBW", "平安镇" => "PZT", "耒阳西" => "LPQ", "青岛北" => "QHK", "陆丰" => "LLQ", "神州" => "SRQ", "洮南" => "TVT", "德清" => "DRH", "江所田" => "JOM", "乐都南" => "LVO", "黄口" => "KOH", "黄瓜园" => "HYM", "辽阳" => "LYT", "长临河" => "FVH", "永登" => "YDJ", "眉山" => "MSW", "潢川" => "KCN", "康城" => "KCP", "小新街" => "XXM", "高安" => "GCG", "赤峰" => "CFD", "花山南" => "KNN", "汤阴" => "TYF", "包头" => "BTC", "阿木尔" => "JTX", "神池" => "SMV", "祁门" => "QIH", "湟源" => "HNO", "宜宾" => "YBW", "南充北" => "NCE", "大理" => "DKM", "鸡冠山" => "JST", "吐鲁番北" => "TAR", "池州" => "IYH", "瑞金" => "RJG", "抚州" => "FZG", "小雨谷" => "XHM", "公庙子" => "GMC", "西八里" => "XLP", "低窝铺" => "DWJ", "资阳" => "ZYW", "杨岗" => "YRB", "黎城" => "UCP", "通途" => "TUT", "舒城" => "OCH", "武山" => "WSJ", "日照" => "RZK", "武昌" => "WCN", "燕家庄" => "AZK", "乐都" => "LDO", "姚家" => "YAT", "滦河沿" => "UNP", "王家营西" => "KNM", "河源" => "VIQ", "阳春" => "YQQ", "武义北" => "WDH", "红安西" => "VXN", "绥阳" => "SYB", "梁平" => "UQW", "阳高" => "YOV", "花家庄" => "HJM", "平庄" => "PZD", "商南" => "ONY", "建湖" => "AJH", "南召" => "NAF", "宁乡" => "NXQ", "崖州" => "YUQ", "扶余北" => "FBT", "中山北" => "ZGQ", "钟家村" => "ZJY", "黄冈西" => "KXN", "郯城" => "TZK", "连云港" => "UIH", "合阳北" => "HTY", "大虎山" => "DHD", "郭磊庄" => "GLP", "肇庆" => "ZVQ", "端州" => "WZQ", "棋子湾" => "QZQ", "饶阳" => "RVP", "广元南" => "GAW", "鹿寨北" => "LSZ", "营口东" => "YGT", "塘豹" => "TBQ", "白狼" => "BAT", "通化县" => "TXL", "小村" => "XEM", "藁城" => "GEP", "北滘" => "IBQ", "许三湾" => "XSJ", "安顺" => "ASW", "清原" => "QYT", "呼和浩特东" => "NDC", "蕲春" => "QRN", "石门县北" => "VFQ", "长冲" => "CCM", "永郎" => "YLW", "襄垣" => "EIF", "乌龙泉南" => "WFN", "防城港北" => "FBZ", "内江" => "NJW", "墨玉" => "MUR", "河口北" => "HBM", "大孤山" => "RMT", "芨岭" => "JLJ", "瓢儿屯" => "PRT", "照福铺" => "ZFM", "灵武" => "LNJ", "图们" => "TML", "褚家湾" => "CWJ", "龙洞堡" => "FVW", "宜春西" => "YCG", "徐闻" => "XJQ", "丰顺" => "FUQ", "勉县" => "MVY", "姜家" => "JJB", "桐子林" => "TEW", "太原北" => "TBV", "广通北" => "GPM", "贾鲁河" => "JLF", "自贡" => "ZGW", "韶山" => "SSQ", "华家" => "HJT", "南平南" => "NNS", "柳园南" => "LNR", "仙林" => "XPH", "新立屯" => "XLD", "娄底南" => "UOQ", "上万" => "SWP", "白奎堡" => "BKB", "黄冈" => "KGN", "浑河" => "HHT", "鄂尔多斯" => "EEC", "白旗" => "BQP", "定州东" => "DOP", "德伯斯" => "RDT", "晏城" => "YEK", "龙沟" => "LGJ", "治安" => "ZAD", "八仙筒" => "VXD", "城子坦" => "CWT", "古田北" => "GBS", "四道湾" => "OUD", "滨江" => "BJB", "盖州西" => "GAT", "旅顺" => "LST", "吴官田" => "WGM", "龙塘坝" => "LBM", "甘草店" => "GDJ", "稷山" => "JVV", "抚州北" => "FBG", "信阳东" => "OYN", "乌尔旗汗" => "WHX", "南陵" => "LLH", "保康" => "BKD", "乐善村" => "LUM", "昆山" => "KSH", "郴州西" => "ICQ", "万年" => "WWG", "顺义" => "SOP", "新江" => "XJM", "余杭" => "EVH", "东营南" => "DOK", "乌奴耳" => "WRX", "莱西北" => "LBK", "金城江" => "JJZ", "刀尔登" => "DRD", "溆浦" => "EPQ", "朗乡" => "LXB", "灵石" => "LSV", "渭南" => "WNY", "确山" => "QSN", "绅坊" => "OLH", "铜陵北" => "KXH", "景德镇" => "JCG", "昌图" => "CTT", "咸宁南" => "UNN", "乌海西" => "WXC", "大灰厂" => "DHP", "朱日和" => "ZRC", "鹿寨" => "LIZ", "上海南" => "SNH", "绥芬河" => "SFB", "青山" => "QSB", "徽县" => "HYY", "神木" => "OMY", "松树" => "SFT", "深圳北" => "IOQ", "铁岭西" => "PXT", "无为" => "IIH", "羊堡" => "ABM", "诸城" => "ZQK", "隆化" => "UHP", "集安" => "JAL", "驻马店" => "ZDN", "宋" => "SOB", "泡子" => "POD", "江桥" => "JQX", "沁阳" => "QYF", "陈相屯" => "CXT", "大屯" => "DNT", "宜昌" => "YCN", "阳明堡" => "YVV", "富拉尔基" => "FRX", "万乐" => "WEB", "天桥岭" => "TQL", "鳌江" => "ARH", "榆林" => "ALY", "龙江" => "LJX", "沙后所" => "SSD", "长征" => "CZJ", "通州西" => "TAP", "岳阳东" => "YIQ", "福安" => "FAS", "临颍" => "LNF", "汤原" => "TYB", "咸宁北" => "XRN", "小金口" => "NKQ", "侯马" => "HMV", "韶关东" => "SGQ", "乐清" => "UPH", "怀化南" => "KAQ", "大巴" => "DBD", "商都" => "SXC", "洛阳" => "LYF", "黄流" => "KLQ", "王杨" => "WYB", "北屯市" => "BXR", "普兰店" => "PLT", "沈丘" => "SQN", "白水镇" => "BUM", "宁波东" => "NVH", "郓城" => "YPK", "冠豸山" => "GSS", "大足南" => "FQW", "大同" => "DTV", "济源" => "JYF", "江津" => "JJW", "邵家堂" => "SJJ", "西安南" => "CAY", "阜阳" => "FYH", "中卫" => "ZWJ", "秀山" => "ETW", "胶州北" => "JZK", "三 亚" => "JUQ", "景泰" => "JTJ", "福清" => "FQS", "平峪" => "PYP", "新化南" => "EJQ", "惠山" => "VCH", "铁厂" => "TCL", "陵城" => "LGK", "上西铺" => "SXM", "阳泉" => "AQP", "兰溪" => "LWH", "丰城南" => "FNG", "古莲" => "GRX", "新李" => "XLJ", "兰州西" => "LAJ", "清涧县" => "QNY", "戚墅堰" => "QYH", "罗山" => "LRN", "成都东" => "ICW", "杨村" => "YBP", "九三" => "SSX", "巢湖" => "CIH", "吴家川" => "WCJ", "酒泉" => "JQJ", "运粮河" => "YEF", "中宁南" => "ZNJ", "涪陵" => "FLW", "清水" => "QUJ", "湘潭北" => "EDQ", "贵定" => "GTW", "深州" => "OZP", "高平" => "GPF", "柳河" => "LNL", "巢湖东" => "GUH", "大营" => "DYV", "阳澄湖" => "AIH", "西柳" => "GCT", "乌鲁木齐南" => "WMR", "泰宁" => "TNS", "陇县" => "LXY", "美溪" => "MEB", "二龙山屯" => "ELA", "广宁寺" => "GQT", "天津北" => "TBP", "云山" => "KZQ", "永川" => "YCW", "富源" => "FYM", "柳州" => "LZZ", "横道河子" => "HDB", "弋江" => "RVH", "南京南" => "NKH", "全椒" => "INH", "汨罗" => "MLQ", "亚龙湾" => "TWQ", "杭州" => "HZH", "清河" => "QIP", "莱芜西" => "UXK", "临城" => "UUP", "迎春" => "YYB", "青堆" => "QET", "深井子" => "SWT", "晋城北" => "JEF", "石城" => "SCT", "白芨沟" => "BJJ", "阳泉北" => "YPP", "固始" => "GXN", "梁底下" => "LDP", "永福南" => "YBZ", "万发屯" => "WFB", "巴东" => "BNN", "赤峰西" => "CID", "商河" => "SOK", "仙游" => "XWS", "东淤地" => "DBV", "伊林" => "YLB", "磁县" => "CIP", "赵城" => "ZCV", "六合镇" => "LEX", "余姚北" => "CTH", "费县" => "FXK", "肇庆东" => "FCQ", "泰安" => "TMK", "犀浦东" => "XAW", "平田" => "PTM", "石河子" => "SZR", "南峪" => "NUP", "海伦" => "HLB", "陶赖昭" => "TPT", "广安南" => "VUW", "郑州东" => "ZAF", "沈家" => "OJB", "磁西" => "CRP", "博鳌" => "BWQ", "武清" => "WWP", "南部" => "NBE", "土牧尔台" => "TRC", "三十里堡" => "SST", "靖远西" => "JXJ", "归流河" => "GHT", "明城" => "MCL", "南宁东" => "NFZ", "兴义" => "XRZ", "新华屯" => "XAX", "望都" => "WDP", "大王滩" => "DZZ", "祁东" => "QMQ", "徘徊北" => "PHP", "天祝" => "TZJ", "武胜" => "WSE", "新乡东" => "EGF", "营口" => "YKT", "李石寨" => "LET", "介休东" => "JDV", "庐江" => "UJH", "杨林" => "YLM", "盐城" => "AFH", "泰州" => "UTH", "化德" => "HGC", "息县" => "ENN", "泰康" => "TKX", "兴安北" => "XDZ", "湛江" => "ZJZ", "德兴" => "DWG", "安溪" => "AXS", "白石山" => "BAL", "丹霞山" => "IRQ", "施秉" => "AQW", "哈拉苏" => "HAX", "长庆桥" => "CQJ", "江边村" => "JBG", "安庆" => "AQH", "海石湾" => "HSO", "上海虹桥" => "AOH", "富海" => "FHX", "南桥" => "NQD", "亮甲店" => "LRT", "子长" => "ZHY", "泰山" => "TAK", "临沂北" => "UYK", "凤县" => "FXY", "贵定南" => "IDW", "棠海" => "THM", "吐鲁番" => "TFR", "威海北" => "WHK", "彰武" => "ZWD", "牡丹江" => "MDB", "鄄城" => "JCK", "沙桥" => "SQM", "麻尾" => "VAW", "阿南庄" => "AZM", "大官屯" => "DTT", "二道湾" => "RDX", "东通化" => "DTL", "淮南" => "HAH", "魏杖子" => "WKD", "沥林北" => "KBQ", "玛纳斯" => "MSR", "重庆南" => "CRW", "革居" => "GEM", "香坊" => "XFB", "农安" => "NAT", "贵定北" => "FMW", "宜春" => "YEG", "荆州" => "JBN", "阜新" => "FXD", "韶关" => "SNQ", "葵潭" => "KTQ", "达州" => "RXW", "长汀" => "CES", "库车" => "KCR", "银滩" => "CTQ", "松原" => "VYT", "南木" => "NMX", "和什托洛盖" => "VSR", "白沙" => "BSW", "福州" => "FZS", "锡林浩特" => "XTC", "龙川" => "LUQ", "吉文" => "JWX", "辽源" => "LYL", "磨刀石" => "MOB", "陇西" => "LXJ", "七营" => "QYJ", "黄柏" => "HBL", "雨格" => "VTM", "安广" => "AGT", "胶州" => "JXK", "许昌东" => "XVF", "嘉善南" => "EAH", "龙镇" => "LZA", "潮汕" => "CBQ", "怀柔北" => "HBP", "繁昌西" => "PUH", "石柱县" => "OSW", "庙庄" => "MZJ", "顺昌" => "SCS", "凤凰机场" => "FJQ", "虎什哈" => "HHP", "平邑" => "PIK", "杜家" => "DJL", "伊图里河" => "YEX", "六合" => "KLH", "安阳" => "AYF", "枣庄" => "ZEK", "三关口" => "OKJ", "红彦" => "VIX", "孤山口" => "GSP", "大英东" => "IAW", "淮滨" => "HVN", "仙人桥" => "XRL", "五原" => "WYC", "丰水村" => "FSJ", "银浪" => "YJX", "涿州东" => "ZAP", "苏州园区" => "KAH", "福山口" => "FKP", "下社" => "XSV", "三门峡南" => "SCF", "威箐" => "WAM", "古田会址" => "STS", "资溪" => "ZXS", "西乡" => "XQY", "扎赉诺尔西" => "ZXX", "大涧" => "DFP", "共青城" => "GAG", "大通西" => "DTO", "吴圩" => "WYZ", "南翔北" => "NEH", "定南" => "DNG", "海安县" => "HIH", "王瞳" => "WTP", "泗县" => "GPH", "天义" => "TND", "海拉尔" => "HRX", "佳木斯" => "JMB", "龙游" => "LMH", "东营" => "DPK", "德安" => "DAG", "根河" => "GEX", "田东" => "TDZ", "长山屯" => "CVT", "龙泉寺" => "UQJ", "祥云" => "EXM", "免渡河" => "MDX", "范镇" => "VZK", "晋州" => "JXP", "宣威" => "XWM", "阳谷" => "YIK", "巨宝" => "JRT", "福鼎" => "FES", "商城" => "SWN", "石家庄北" => "VVP", "春阳" => "CAL", "孤家子" => "GKT", "黑河" => "HJB", "云梦" => "YMN", "那罗" => "ULZ", "郫县西" => "PCW", "绩溪北" => "NRH", "长治" => "CZF", "桑根达来" => "OGC", "汕头" => "OTQ", "一面坡" => "YPB", "灵宝西" => "LPF", "沙河口" => "SKT", "蚌埠" => "BBH", "花园" => "HUN", "洛湾三江" => "KRW", "兰州东" => "LVJ", "滨海" => "FHP", "彭泽" => "PZG", "安图" => "ATL", "昆明" => "KMM", "宁海" => "NHH", "河间西" => "HXP", "上海" => "SHH", "蔡山" => "CON", "汉中" => "HOY", "南朗" => "NNQ", "白鸡坡" => "BBM", "淮安南" => "AMH", "广元" => "GYW", "韩府湾" => "HXJ", "鲅鱼圈" => "BYT", "茂舍祖" => "MOM", "白河东" => "BIY", "琼海" => "QYQ", "大石头南" => "DAL", "奎山" => "KAB", "蔡家沟" => "CJT", "黄花筒" => "HUD", "福泉" => "VMW", "涡阳" => "GYH", "尼木" => "NMO", "悬钟" => "XRP", "春湾" => "CQQ", "盖州" => "GXT", "马三家" => "MJT", "沧州西" => "CBP", "门源" => "MYO", "临海" => "UFH", "舒兰" => "SLL", "师宗" => "SEM", "那曲" => "NQO", "水源" => "OYJ", "洛阳龙门" => "LLF", "燕郊" => "AJP", "攀枝花" => "PRW", "连山关" => "LGT", "大旺" => "WWQ", "龙山镇" => "LAS", "广州" => "GZQ", "月山" => "YBF", "梅河口" => "MHL", "绥中北" => "SND", "庄河北" => "ZUT", "南头" => "NOQ", "丽水" => "USH", "长沙南" => "CWQ", "吐列毛杜" => "TMD", "河边" => "HBV", "青龙" => "QIB", "北井子" => "BRT", "石桥子" => "SQT", "江源" => "SZL", "图强" => "TQX", "小哨" => "XAM", "岳家井" => "YGJ", "溆浦南" => "EMQ", "田林" => "TFZ", "阿尔山" => "ART", "孝西" => "XOV", "关林" => "GLF", "鸡东" => "JOB", "伊宁" => "YMR", "资中北" => "WZW", "读书铺" => "DPM", "茅岭" => "MLZ", "麻城" => "MCN", "滨海北" => "FCP", "东镇" => "DNV", "宝林" => "BNB", "平河口" => "PHM", "宜耐" => "YVM", "武隆" => "WLW", "朝阳地" => "CDD", "镇江南" => "ZEH", "三穗" => "QHW", "美兰" => "MHQ", "左岭" => "ZSN", "磁山" => "CSP", "鲁番" => "LVM", "荣昌北" => "RQW", "安达" => "ADX", "汐子" => "XZD", "旺苍" => "WEW", "江永" => "JYZ", "嘉祥" => "JUK", "蒲城" => "PCY", "正定机场" => "ZHP", "双河镇" => "SEL", "辰溪" => "CXQ", "无锡" => "WXH", "常平" => "DAQ", "东至" => "DCH", "土溪" => "TSW", "枣强" => "ZVP", "明港" => "MGN", "五女山" => "WET", "大武口" => "DFJ", "小西庄" => "XXP", "哈尔滨" => "HBB", "西乌旗" => "XWC", "罗江东" => "IKW", "从江" => "KNW", "云霄" => "YBS", "杭州东" => "HGH", "滦平" => "UPP", "绍兴" => "SOH", "济南" => "JNK", "贵港" => "GGZ", "巩义" => "GXF", "桃村北" => "TOK", "温州南" => "VRH", "唐山北" => "FUP", "旌德" => "NSH", "长治北" => "CBF", "孙镇" => "OZY", "忻州" => "XXV", "紫荆关" => "ZYP", "茂林" => "MLD", "虎门" => "IUQ", "重庆" => "CQW", "萍乡" => "PXG", "三汇镇" => "OZW", "玉舍" => "AUM", "坂田" => "BTQ", "嵯岗" => "CAX", "襄阳东" => "XWN", "安定" => "ADP", "东胜西" => "DYC", "灯塔" => "DGT", "柴河" => "CHB", "阿尔山北" => "ARX", "四会" => "AHQ", "库尔勒" => "KLR", "衡水" => "HSP", "黄泥河" => "HHL", "和田" => "VTR", "统军庄" => "TZP", "营城子" => "YCT", "常平东" => "FQQ", "禄丰南" => "LQM", "广南卫" => "GNM", "苍石" => "CST", "无锡东" => "WGH", "海湾" => "RWH", "龙井" => "LJL", "咋子" => "ZAL", "华山" => "HSY", "阳新" => "YON", "南城" => "NDG", "汾河" => "FEV", "扎兰屯" => "ZTX", "豆庄" => "ROP", "高台南" => "GAJ", "南充" => "NCW", "通安驿" => "TAJ", "马皇" => "MHZ", "水洞" => "SIL", "祁家堡" => "QBT", "宜州" => "YSZ", "襄河" => "XXB", "长武" => "CWY", "蒙自" => "MZM", "济南东" => "JAK", "祁县" => "QXV", "大埔" => "DPI", "凌海" => "JID", "新津南" => "ITW", "九台" => "JTL", "鞍山" => "AST", "滕州东" => "TEK", "神树" => "SWB", "新华" => "XHB", "燕山" => "AOP", "隆昌北" => "NWW", "扶绥" => "FSZ", "咸宁东" => "XKN", "富锦" => "FIB", "光山" => "GUN", "牛心台" => "NXT", "临湘" => "LXQ", "峡江" => "EJG", "和龙" => "HLL", "修武" => "XWF", "什里店" => "OMP", "呼和浩特" => "HHC", "鞍山西" => "AXT", "古交" => "GJV", "山海关" => "SHD", "武乡" => "WVV", "大磴沟" => "DKJ", "桂平" => "GAZ", "临高南" => "KGQ", "布海" => "BUT", "赤壁北" => "CIN", "克一河" => "KHX", "海城西" => "HXT", "株洲西" => "ZAQ", "濮阳" => "PYF", "车转湾" => "CWM", "太湖" => "TKH", "泗水" => "OSK", "落垡" => "LOP", "苏州" => "SZH", "开鲁" => "KLC", "登沙河" => "DWT", "建阳" => "JYS", "东海县" => "DQH", "沈阳东" => "SDT", "本溪" => "BXT", "江宁" => "JJH", "濑湍" => "LVZ", "利津南" => "LNK", "伊敏" => "YMX", "喀喇其" => "KQX", "新化" => "EHQ", "淮北" => "HRH", "军粮城北" => "JMP", "洞庙河" => "DEP", "讷河" => "NHX", "司家岭" => "OLK", "巴中" => "IEW", "松滋" => "SIN", "皮山" => "PSR", "渠旧" => "QJZ", "炎陵" => "YAG", "立志" => "LZX", "漠河" => "MVX", "长汀南" => "CNS", "昭通" => "ZDW", "沂南" => "YNK", "磁窑" => "CYK", "宣和" => "XWJ", "黄村" => "HCP", "金山北" => "EGH", "兴隆县" => "EXP", "古镇" => "GNQ", "六盘山" => "UPJ", "前苇塘" => "QWP", "田师府" => "TFT", "杨陵" => "YSY", "乐东" => "UQQ", "水家湖" => "SQH", "开原" => "KYT", "毛坝关" => "MGY", "沙岭子" => "SLP", "新沂" => "VIH", "阜南" => "FNH", "聊城" => "UCK", "背荫河" => "BYB", "精河南" => "JIR", "绥棱" => "SIB", "新会" => "EFQ", "乃林" => "NLD", "海宁" => "HNH", "红砂岘" => "VSJ", "武陟" => "WIF", "渭南南" => "WVY", "郁南" => "YKQ", "孝感" => "XGN", "英德" => "YDQ", "索图罕" => "SHX", "东边井" => "DBB", "武穴" => "WXN", "红寺堡" => "HSJ", "宁安" => "NAB", "茶陵南" => "CNG", "凤州" => "FZY", "黔江" => "QNW", "松江镇" => "OZL", "抚顺" => "FST", "王团庄" => "WZJ", "贵阳" => "GIW", "玉溪" => "YXM", "迤资" => "YQM", "枣林" => "ZIV", "九江" => "JJG", "怀仁东" => "HFV", "乐平市" => "LPG", "陶家屯" => "TOT", "宝坻" => "BPP", "路口铺" => "LKQ", "巴楚" => "BCR", "东台" => "DBH", "林东" => "LRC", "燕岗" => "YGW", "银瓶" => "KPQ", "兰州" => "LZJ", "娘子关" => "NIP", "宁武" => "NWV", "应县" => "YZV", "营盘水" => "YZJ", "云彩岭" => "ACP", "五台山" => "WSV", "嘉善" => "JSH", "呼鲁斯太" => "VTJ", "沙湾县" => "SXR", "阳曲" => "YQV", "罗源" => "LVS", "王安镇" => "WVP", "孟家岗" => "MGB", "光泽" => "GZS", "交城" => "JNV", "武安" => "WAP", "大雁" => "DYX", "黄山北" => "NYH", "崔黄口" => "CHP", "迁安" => "QQP", "册亨" => "CHZ", "口前" => "KQL", "石磷" => "SPB", "子洲" => "ZZY", "二连" => "RLC", "洛门" => "LMJ", "商丘南" => "SPF", "王府" => "WUT", "开江" => "KAW", "东湾" => "DRJ", "本溪新城" => "BVT", "张桥" => "ZQY", "汝阳" => "RYF", "杭锦后旗" => "HDC", "南靖" => "NJS", "沈阳南" => "SOT", "博乐" => "BOR", "黑台" => "HQB", "抚松" => "FSL"
];

if (array_key_exists($from, $stationList) && array_key_exists($to, $stationList)) {
$res = json_decode(file_get_contents(
"https://kyfw.12306.cn/otn/lcxxcx/query?purpose_codes=ADULT&queryDate=$date&from_station={$stationList[$from]}&to_station={$stationList[$to]}",
false,
stream_context_create(['ssl' => ['verify_peer' => false,]])
), true);
} else {
if ($output) {
return json(['status' => 404], 404);
} else {
return ['status' => 404];
}
}

//dump($res);

if ($res['data']['flag']) {
$json['result'] = $res['data']['datas'];
$json['status'] = 200;

} else {
$json['status'] = 404;
}

if ($output) {
return json($json, $json['status']);
} else {
return $json;
}

}

public function price($from = null, $to = null, $date = null)
{
$seatType = [
'A9' => '商务座',
'P' => '特等座',
'M' => '一等座',
'O' => '二等座',
'A6' => '高级软卧',
'A4' => '软卧',
'A3' => '硬卧',
'A2' => '软座',
'A1' => '硬座',
'WZ' => '无座',
];

$date = $date ?: date('Y-m-d');

$ticket = $this->ticket($from, $to, $date, false);

//dump($ticket);

if (!isset($ticket['result'])) {
return json(['status' => 404], 404);
}

foreach ($ticket['result'] as $key => $each) {
$res = json_decode(file_get_contents("https://kyfw.12306.cn/otn/leftTicket/queryTicketPrice?train_no={$each['train_no']}&from_station_no={$each['from_station_no']}&to_station_no={$each['to_station_no']}&seat_types={$each['seat_types']}&train_date=$date",
false,
stream_context_create(['ssl' => ['verify_peer' => false,]])
), true);

$price_list = [];
foreach ($res['data'] as $k => $v) {
if (array_key_exists($k, $seatType)) {
$price_list[$seatType[$k]] = $v;
}
}
//dump($price_list);
$ticket['result'][$key]['price_list'] = $price_list;
}

//dump($ticket);
return json($ticket, $ticket['status']);

}
}