-
Notifications
You must be signed in to change notification settings - Fork 3
경로찾기
Sim Jung Uk edited this page Dec 28, 2019
·
1 revision
메소드 | 경로 | 설명 |
---|---|---|
GET | /searchPath?SX={SX}&SY={SY}&EX={EX}&EY={EY} | 경로 찾기 |
{
"Content-Type": "application/json"
}
{
"SX" : "Double",
"SY" : "Double",
"EX" : "Double",
"EY" : "Double",
}
{
"status": 200,
"success": true,
"message": "경로 찾기 성공",
"data": {
"subwayCount": 1,
"subwayBusCount": 5,
"path": [
{
"pathType": 3,
"totalTime": 65,
"totalPay": 1550,
"transitCount": 1,
"totalWalkTime": 6,
"subPath": [
{
"trafficType": 3,
"distance": 121,
"sectionTime": 2
},
{
"trafficType": 1,
"distance": 12900,
"sectionTime": 32,
"stationCount": 15,
"lane": [
{
"name": "수도권 6호선",
"subwayCode": 6,
"subwayCityCode": 1000
}
],
"startName": "화랑대",
"startX": 127.083614,
"startY": 37.619831,
"endName": "한강진",
"endX": 127.001762,
"endY": 37.539831,
"way": "한강진",
"wayCode": 1,
"door": "null",
"startID": 646,
"endID": 631,
"startExitNo": "2",
"startExitX": 127.083885072609,
"startExitY": 37.62035555361119,
"endExitNo": "2",
"endExitX": 127.00200807237235,
"endExitY": 37.54059005352947,
"passStopList": {
"stations": [
{
"index": 0,
"stationID": 646,
"stationName": "화랑대",
"x": "127.083617",
"y": "37.619833"
},
//경유 역들
{
"index": 15,
"stationID": 631,
"stationName": "한강진",
"x": "127.001766",
"y": "37.539838"
}
]
}
},
{
"trafficType": 3,
"distance": 115,
"sectionTime": 2
},
{
"trafficType": 2,
"distance": 8450,
"sectionTime": 27,
"stationCount": 11,
"lane": [
{
"busNo": "400",
"type": 11,
"busID": 500
}
],
"startName": "한강진역.블루스퀘어",
"startX": 127.002021,
"startY": 37.540842,
"endName": "시민의숲",
"endX": 127.038387,
"endY": 37.47306,
"startID": 105237,
"endID": 106700,
"passStopList": {
"stations": [
{
"index": 0,
"stationID": 105237,
"stationName": "한강진역.블루스퀘어",
"x": "127.002021",
"y": "37.540842"
},
//경유 정류장들
{
"index": 11,
"stationID": 106700,
"stationName": "시민의숲",
"x": "127.038387",
"y": "37.47306"
}
]
}
},
{
"trafficType": 3,
"distance": 143,
"sectionTime": 2
}
]
}
//...다른 경로들
]
}
]
}
}
{
"status": 400,
"success": false,
"message": "입력되지 않은 값이 있습니다"
}