Routes Preferred API는 현재 일부 고객만 이용할 수 있습니다. 자세한 내용은
영업팀에 문의하세요.
차량 정차 한정자 사용
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
차량 중간 정차 지정자를 사용하여 중간 지점이 승차 또는 하차를 위해 정차하는 데 사용됨을 지정할 수 있습니다. 이렇게 하면 계산된 경로가 승차 및 하차에 적합하지 않은 도로 (예: 고속도로 또는 터널)에서 시작하거나 끝나지 않습니다.
사용 사례
지상 도로가 터널 내부의 도로를 교차하는 상황을 예로 들어보겠습니다.
두 도로가 교차하는 지점에 있는 경로 지점을 지정하면 (지도 참고) 결과 경로는 일반 도로 또는 터널에서 시작하거나 끝납니다. 터널에서는 승하차를 위해 정차할 수 없으므로 문제가 됩니다.
경유지를 승차 또는 하차에 사용하려면 vehicleStopover
필드를 설정하면 됩니다. 그러면 결과 경로가 승차 및 하차가 가능한 도로 (즉, 일반 도로)에서 시작하거나 끝납니다.
예
다음 예는 vehicleStopover
한정자를 설정하는 방법을 보여줍니다.
{
"vehicleStopover": true,
"location": {
"latLng": {
"latitude":37.419734,
"longitude":-122.0827784
}
}
}
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-23(UTC)
[null,null,["최종 업데이트: 2024-11-23(UTC)"],[[["\u003cp\u003eThe Vehicle Stop-over qualifier ensures routes start and end at locations suitable for pickups and drop-offs, avoiding unsuitable roads like highways or tunnels.\u003c/p\u003e\n"],["\u003cp\u003eBy setting \u003ccode\u003evehicleStopover\u003c/code\u003e to true for a waypoint, the calculated route will prioritize accessible roads for pickup and drop-off points.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is particularly useful when a waypoint is located near restricted areas like tunnels, ensuring the route directs to a safe and accessible nearby road.\u003c/p\u003e\n"]]],["The `vehicleStopover` qualifier designates a waypoint for pick-up or drop-off. Setting `vehicleStopover` to `true` ensures the route begins or ends on a suitable road, avoiding unsuitable locations like highways or tunnels. Without this, a waypoint at an intersection (e.g., surface road over a tunnel) could lead to a route beginning or ending in the tunnel. The example demonstrates setting `vehicleStopover` to `true` within a waypoint's definition.\n"],null,["# Use the Vehicle Stop-over Qualifier\n\nYou can use the Vehicle Stop-over qualifier to specify that a waypoint is meant\nto be used for stopping for picking-up or dropping-off. This ensures that the\ncalculated route won't begin or end on a road that is unsuitable for pickup and\ndrop-off (for example, a highway or tunnel).\n\nExample use case\n----------------\n\nConsider the situation where a surface road crosses over a road inside a tunnel.\nIf you were to specify a waypoint located where the two roads intersect (as seen\non a map), then the resulting route would begin or end on either the surface\nroad or the tunnel. This presents a problem because you can't stop in tunnels to\nmake pickups or drop-offs.\n\nIf you want to use the waypoint for a pickup or drop-off, then you could set the\n`vehicleStopover` field, which ensures that the resulting route begins or ends\non a road that allows pickups and drop-offs (that is, on the surface road).\n\nExample\n-------\n\nThe following example demonstrates how to set the\n[`vehicleStopover`](/maps/documentation/routes_preferred/reference/rest/v1alpha/TopLevel/computeRoutes#Waypoint.FIELDS.vehicle_stopover) qualifier. \n\n```cplint\n{\n \"vehicleStopover\": true,\n \"location\": {\n \"latLng\": {\n \"latitude\":37.419734,\n \"longitude\":-122.0827784\n }\n }\n}\n```"]]