

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# 모달 간 경로를 찾는 방법
<a name="calculate-routes-intermodal-route"></a>

CalculateRoutes API는 단일 여정에서 여러 전송 유형을 결합하는 경로를 계산하는 `Intermodal` 이동 모드를 지원합니다. 예를 들어park-and-ride차 장소로 주행한 다음 목적지로 대중 교통을 이용합니다. 보행자 레그는 항상 다른 전송 유형 간에 연결할 수 있습니다.

## 잠재적 사용 사례
<a name="intermodal-potential-use-cases"></a>
+ **주차 및 주행:** 도시 중심에서 정체 및 주차 비용을 방지하기 위해 대중교통역으로 운전하고, 주차하고, 대중교통을 이용합니다. 및 `Rental` `FirstLeg`에서에 대해 `Vehicle` 사용 활성화`Taxi`됨.
+ **택시 및 승차:** 출발점에서 택시를 이용해 잘 연결된 이동역으로 이동한 다음 나머지 여정 동안 대중교통으로 전환합니다. 이는 대중교통으로 잘 연결되지 않은 영역이나 주차를 완전히 피하려는 경우에 유용합니다. 및 `Rental` `FirstLeg`에서에 대해 `Taxi` 사용 활성화`Vehicle`됨.
+ **라스트 마일 전송:** 대부분의 여정에서 대중교통을 이용하고 마지막 구간에서 택시 또는 렌터카를 사용하여 최종 목적지에 도착합니다.

## 예제
<a name="calculate-routes-intermodal-examples"></a>

### 공원 및 승차 모달 간 경로 계산
<a name="calculate-routes-intermodal-park-and-ride"></a>

------
#### [ Sample request ]

```
{
    "Origin": [
        -122.3088,
        47.4502
    ],
    "Destination": [
        -122.3331,
        47.6097
    ],
    "TravelMode": "Intermodal",
    "TravelModeOptions": {
        "Intermodal": {
            "Vehicle": {
                "EnabledFor": ["FirstLeg"]
            },
            "Taxi": {
                "EnabledFor": ["None"]
            },
            "Rental": {
                "EnabledFor": ["None"]
            }
        }
    },
    "DepartNow": true
}
```

------
#### [ Sample response ]

```
{
    "LegGeometryFormat": "FlexiblePolyline",
    "Notices": [],
    "Routes": [
        {
            "Legs": [
                {
                    "Geometry": {
                        "Polyline": "Redacted"
                    },
                    "TravelMode": "Car",
                    "Type": "Vehicle",
                    "VehicleLegDetails": {
                        "AfterTravelSteps": [
                            {
                                "Duration": 300,
                                "Type": "Park"
                            }
                        ],
                        "Arrival": {
                            "Place": {
                                "Name": "Ipm Lot",
                                "Position": [
                                    -122.3264,
                                    47.58003
                                ],
                                "Type": "ParkingLot"
                            },
                            "Time": "2026-05-19T15:32:00-07:00"
                        },
                        "Departure": {
                            "Place": {
                                "Position": [
                                    -122.3088,
                                    47.4502
                                ]
                            },
                            "Time": "2026-05-19T15:12:00-07:00"
                        },
                        "Summary": {
                            "Overview": {
                                "Distance": 20493,
                                "Duration": 1500
                            },
                            "TravelOnly": {
                                "Duration": 1200
                            }
                        }
                    }
                },
                {
                    "Geometry": {
                        "Polyline": "Redacted"
                    },
                    "PedestrianLegDetails": {
                        "Arrival": {
                            "Place": {
                                "Name": "Sodo Station Northeast Entrance",
                                "Position": [
                                    -122.327329,
                                    47.580637
                                ],
                                "Type": "AccessPoint"
                            },
                            "Time": "2026-05-19T15:39:00-07:00"
                        },
                        "Departure": {
                            "Place": {
                                "Name": "Ipm Lot",
                                "Position": [
                                    -122.3264,
                                    47.58003
                                ],
                                "Type": "ParkingLot"
                            },
                            "Time": "2026-05-19T15:37:00-07:00"
                        }
                    },
                    "TravelMode": "Pedestrian",
                    "Type": "Pedestrian"
                },
                {
                    "Geometry": {
                        "Polyline": "Redacted"
                    },
                    "TravelMode": "LightRail",
                    "Type": "Transit",
                    "TransitLegDetails": {
                        "Agency": {
                            "Name": "Sound Transit",
                            "Url": "https://www.soundtransit.org"
                        },
                        "Arrival": {
                            "Place": {
                                "Name": "Symphony",
                                "Position": [
                                    -122.33602,
                                    47.60781
                                ],
                                "Type": "Station"
                            },
                            "Time": "2026-05-19T15:48:00-07:00"
                        },
                        "Departure": {
                            "Place": {
                                "Name": "Sodo",
                                "Position": [
                                    -122.32739,
                                    47.581074
                                ],
                                "Type": "Station"
                            },
                            "Time": "2026-05-19T15:40:00-07:00"
                        },
                        "Summary": {
                            "Overview": {
                                "Distance": 3174,
                                "Duration": 480
                            },
                            "TravelOnly": {
                                "Duration": 480
                            }
                        },
                        "Transport": {
                            "Color": "#28813F",
                            "Headsign": "Lynnwood City Center",
                            "Mode": "LightRail",
                            "RouteName": "1 Line",
                            "ShortRouteName": "1 Line",
                            "TextColor": "#FFFFFF"
                        }
                    }
                },
                {
                    "Geometry": {
                        "Polyline": "Redacted"
                    },
                    "PedestrianLegDetails": {
                        "Arrival": {
                            "Place": {
                                "Position": [
                                    -122.3331,
                                    47.6097
                                ]
                            },
                            "Time": "2026-05-19T15:55:00-07:00"
                        },
                        "Departure": {
                            "Place": {
                                "Name": "Symphony Station Entrance A1",
                                "Position": [
                                    -122.335875,
                                    47.607929
                                ],
                                "Type": "AccessPoint"
                            },
                            "Time": "2026-05-19T15:49:00-07:00"
                        }
                    },
                    "TravelMode": "Pedestrian",
                    "Type": "Pedestrian"
                }
            ],
            "Summary": {
                "Distance": 24183,
                "Duration": 2280
            }
        }
    ]
}
```

------
#### [ cURL ]

```
curl --request POST \
  --url 'https://routes.geo.us-east-1.amazonaws.com/v2/routes?key=Your_key' \
  --header 'Content-Type: application/json' \
  --data '{
  "Origin": [
    -122.3088,
    47.4502
  ],
  "Destination": [
    -122.3331,
    47.6097
  ],
  "TravelMode": "Intermodal",
  "TravelModeOptions": {
    "Intermodal": {
      "Vehicle": {
        "EnabledFor": ["FirstLeg"]
      },
      "Taxi": {
        "EnabledFor": ["None"]
      },
      "Rental": {
        "EnabledFor": ["None"]
      }
    }
  },
  "DepartNow": true
}'
```

------
#### [ AWS CLI ]

```
aws geo-routes calculate-routes \
--origin -122.3088 47.4502 \
--destination -122.3331 47.6097 \
--travel-mode "Intermodal" \
--travel-mode-options '{"Intermodal": {"Vehicle": {"EnabledFor": ["FirstLeg"]}, "Taxi": {"EnabledFor": ["None"]}, "Rental": {"EnabledFor": ["None"]}}}' \
--depart-now
```

------