Routes Preferred API는 현재 일부 고객만 이용할 수 있습니다. 자세한 내용은
영업팀에 문의하세요.
Waypoint
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
웨이포인트를 캡슐화합니다. 경유지는 경로의 시작과 끝을 모두 표시하며 경로 중간의 중간 정류소도 포함합니다.
JSON 표현 |
{
"via": boolean,
"vehicleStopover": boolean,
"sideOfRoad": boolean,
// Union field location_type can be only one of the following:
"location": {
object (Location )
},
"placeId": string
// End of list of possible types for union field location_type .
} |
필드 |
via |
boolean
이 웨이포인트를 중지 지점이 아닌 주요 기록으로 표시합니다. 요청에 포함된 각 비경유 경유지의 경우 응답은 legs 배열에 항목을 추가하여 해당 이동 구간의 중간 기착 세부정보를 제공합니다. 경로가 경유지 없이 이 경유지를 통과하기를 원하는 경우 이 값을 true로 설정합니다. 통과 경유지는 legs 배열에 항목이 추가되지는 않지만, 경유지를 통과하는 여정은 전달합니다. 이 값은 중간 지점인 웨이포인트에서만 설정할 수 있습니다. 터미널 경유지에 이 필드를 설정하면 요청이 실패합니다. ComputeRoutesRequest.optimize_waypoint_order 가 true로 설정되면 이 필드를 true로 설정할 수 없습니다. 그렇지 않으면 요청이 실패합니다.
|
vehicleStopover |
boolean
차량이 정차하여 승하차할 수 있는 위치에 있는 중간 지점임을 나타냅니다. 이 값을 설정하면 계산된 경로에 승하차에 적합하지 않은 도로의 via 가 아닌 중간 지점이 포함되지 않습니다. 이 옵션은 DRIVE 및 TWO_WHEELER 이동 모드에서만 작동하며 locationType 이 location 인 경우에만 작동합니다.
|
sideOfRoad |
boolean
이 경유지의 위치가 차량이 도로의 특정 측면에 정차하는 것을 선호한다는 것을 나타냅니다. 이 값을 설정하면 경로가 해당 위치를 통과하여 차량이 위치가 도로의 중심에서 편중된 도로 쪽에 정차할 수 있습니다. 이 옵션은 'DRIVE' 및 'TWO_WHEELER' 이동 모드에서만 작동합니다.
|
통합 필드 location_type . 위치를 나타내는 다양한 방법 location_type 은 다음 중 하나여야 합니다. |
location |
object (Location )
선택사항인 방위를 포함하여 지리 좌표를 사용하여 지정된 지점입니다.
|
placeId |
string
경로 지점과 연결된 관심 장소 장소 ID입니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-10(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-11-10(UTC)"],[[["Waypoints define the start, end, and intermediate stops of a route."],["Waypoints can be specified using geographic coordinates or a Place ID."],["You can customize waypoint behavior, like marking them as pass-through points or vehicle stops."],["`vehicleStopover` helps optimize routes for pickup/drop-off, avoiding unsuitable roads for vehicles."],["The `sideOfRoad` field allows specifying a preference for the vehicle to stop at a particular side of the road."]]],["Waypoints, marking route beginnings, ends, and intermediate stops, are defined by several fields. `via` determines if it's a stop or a milestone. `vehicleStopover` indicates suitability for vehicle stops (pickup/drop-off). `sideOfRoad` specifies a preferred side for the vehicle to stop. The location can be represented as either geographic coordinates (`location`) or by a Place ID (`placeId`). Waypoints can affect the `legs` array. Only `location` is applicable to `vehicleStopover`.\n"]]