1
xia0chun 2015-12-21 17:46:31 +08:00 1
用 Fiddler 抓到的,查询共分为两次:
第一次: Request URL: http://xxbs.sh.gov.cn:8080/weixinpage/HandlerOne.ashx?name=933%E8%B7%AF Request Method: GET Status Code: 200 Response:{"end_earlytime":"\n\t\t05:30\n\t","end_latetime":"\n\t\t22:30\n\t","end_stop":"\n\t\t 运光新村\n\t","line_id":"\n\t\t093300\n\t","line_name":"\n\t\t933\n\t","start_earlytime":"\n\t\t05:25\n\t","start_latetime":"\n\t\t22:25\n\t","start_stop":"\n\t\t 龙耀路云锦路\n\t"} 第二次: Request URL: http://xxbs.sh.gov.cn:8080/weixinpage/HandlerTwo.ashx?name=933%E8%B7%AF&lineid=%0A%09%09093300%0A%09 Request Method: GET Status Code: 200 Response:{"lineResults0":{"direction":"true","stops":[{"zdmc":"龙耀路云锦路","id":"1"},{"zdmc":"云锦路丰谷路","id":"2"},{"zdmc":"丰谷路云锦路","id":"3"},{"zdmc":"龙华","id":"4"},{"zdmc":"龙华路华容路","id":"5"},{"zdmc":"宛平南路龙华中路","id":"6"},{"zdmc":"中山南二路东安路","id":"7"},{"zdmc":"中山南二路船厂路","id":"8"},{"zdmc":"中山南二路大木桥路","id":"9"},{"zdmc":"中山南一路打浦路","id":"10"},{"zdmc":"鲁班路瞿溪路","id":"11"},{"zdmc":"鲁班路斜土路","id":"12"},{"zdmc":"重庆南路建国中路","id":"13"},{"zdmc":"重庆南路复兴中路","id":"14"},{"zdmc":"成都北路延安东路","id":"15"},{"zdmc":"成都北路南京西路","id":"16"},{"zdmc":"成都北路新闸路","id":"17"},{"zdmc":"共和新路中华新路","id":"18"},{"zdmc":"中山北路西宝兴路","id":"19"},{"zdmc":"中山北一路花园路","id":"20"},{"zdmc":"中山北一路广中路","id":"21"},{"zdmc":"玉田路中山北一路","id":"22"},{"zdmc":"玉田路曲阳路","id":"23"},{"zdmc":"中山北二路伊敏河路","id":"24"},{"zdmc":"运光新村","id":"25"}]},"lineResults1":{"direction":"false","stops":[{"zdmc":"运光新村","id":"1"},{"zdmc":"运光路松花江路","id":"2"},{"zdmc":"伊敏河路巴林路","id":"3"},{"zdmc":"东体育会路中山北二路","id":"4"},{"zdmc":"赤峰路中山北一路","id":"5"},{"zdmc":"中山北一路广中路","id":"6"},{"zdmc":"中山北一路花园路","id":"7"},{"zdmc":"中山北路西宝兴路","id":"8"},{"zdmc":"中山北路共和新路","id":"9"},{"zdmc":"共和新路中兴路","id":"10"},{"zdmc":"成都北路新闸路","id":"11"},{"zdmc":"成都北路北京西路","id":"12"},{"zdmc":"成都北路威海路","id":"13"},{"zdmc":"重庆南路淮海中路","id":"14"},{"zdmc":"重庆南路复兴中路","id":"15"},{"zdmc":"重庆南路建国中路","id":"16"},{"zdmc":"鲁班路斜土路","id":"17"},{"zdmc":"鲁班路瞿溪路","id":"18"},{"zdmc":"中山南一路打浦路","id":"19"},{"zdmc":"中山南二路大木桥路","id":"20"},{"zdmc":"中山南二路东安路","id":"21"},{"zdmc":"龙华路宛平南路","id":"22"},{"zdmc":"龙华路华容路","id":"23"},{"zdmc":"龙华","id":"24"},{"zdmc":"丰谷路云锦路","id":"25"},{"zdmc":"云锦路丰谷路","id":"26"},{"zdmc":"龙耀路云锦路","id":"27"}]}} |
2
greycell 2015-12-21 17:58:42 +08:00 1
type: 'GET',
contentType: 'application/json', url: 'HandlerThree.ashx', data: { "name": linename, "lineid": lineid, "stopid": stopid, "direction": status123 }, 实时车次 api |