경로를 따라 경유지 설정
경로(예: 픽업 또는 하차)에 정류장을 설정하려면 경유지를 경유지로 지정합니다. 이렇게 하려면 경유지의 vehicleStopover
속성인 Waypoint (REST) 또는 Waypoint (gRPC)를 사용합니다.
이 설정을 사용하면 고속도로나 터널과 같이 승차 및 하차에 적합하지 않은 도로에서 계산된 경로가 시작되거나 끝나지 않습니다.
지상 도로가 터널 내부의 도로를 교차하는 상황을 예로 들어보겠습니다.
두 도로가 교차하는 지점에 있는 경유지를 지정하면 (지도 참고) 결과 경로는 일반 도로 또는 터널에서 시작하거나 끝납니다. 이로 인해 터널에서 승하차할 수 없어 문제가 발생합니다.
픽업 또는 하차에 중간 지점을 사용하려면 vehicleStopover
필드를 true
로 설정하여 결과 경로가 픽업 및 하차가 가능한 도로에서 시작하거나 끝나도록 합니다.
다음 예는 vehicleStopover
속성을 설정하는 방법을 보여줍니다.
{
"origin":{
"location":{
"latLng":{
"latitude": 37.419734,
"longitude": -122.0827784
}
},
"vehicleStopover": true
},
...
}
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-02-06(UTC)
[null,null,["최종 업데이트: 2025-02-06(UTC)"],[[["Use the `vehicleStopover` property to designate a waypoint as a stopover for pickups or drop-offs, ensuring the route avoids unsuitable roads like highways or tunnels."],["Requests utilizing the `vehicleStopover` property incur higher billing rates compared to standard route requests."],["Setting `vehicleStopover` to `true` guarantees the route starts or ends on a road suitable for pickups and drop-offs, avoiding issues with waypoints located near tunnels or highways."],["The `vehicleStopover` property is crucial for optimizing routes for vehicles that require specific pickup and drop-off locations."]]],[]]