1회 환승 경로 찾기
find_transfer_routesFinds one-transfer bus routes when no direct route exists by checking stop sequences and directions, returning only valid connections with same-stop or nearby walking transfers.
Instructions
직통 노선이 없을 때, 한 번 갈아타서 가는 경로를 찾습니다(두 구간 이동 정류장 수 합이 적은 순). 출발 정류소를 지나는 노선과 도착 정류소를 지나는 노선의 경유 순서·방향을 대조해서, 실제로 이어지는 경로만 돌려줍니다. 같은 정류소에서 갈아타면 sameStop=true, 근처 정류소로 걸어가 갈아타면 walkM(직선거리, m)을 줍니다. 먼저 find_direct_routes를 쓰고, 결과가 비었을 때 같은 후보 목록으로 호출하세요. 정류장 수 기준이라 실제 소요 시간과는 다를 수 있습니다.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cityCode": "<cityCode>",
"fromNodeIds": "<fromNodeIds>",
"toNodeIds": "<toNodeIds>"
},
"name": "find_transfer_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 최대 결과 수. 기본 5 | |
| cityCode | Yes | list_cities로 얻은 도시 코드. 예: 25(대전) | |
| maxWalkM | No | 갈아탈 때 걸어서 이동해도 되는 최대 직선거리(m). 0이면 같은 정류소 환승만. 기본 200 | |
| toNodeIds | Yes | 정류소 ID 목록. 이름이 같은 정류소(길 건너편 등)가 여러 개면 모두 넣으세요. 최대 5개 | |
| fromNodeIds | Yes | 정류소 ID 목록. 이름이 같은 정류소(길 건너편 등)가 여러 개면 모두 넣으세요. 최대 5개 |