X-Goog-Fieldmask는 쉼표로 구분된 필드 목록으로 설정해야 합니다.
응답에서 요구하는 메시지를 표시합니다. 예를 들어
X-Goog-FieldMask: originIndex,destinationIndex,duration,distanceMeters,status를 참조하세요.
와일드 카드 문자 (*)를 사용하여 모든 필드를 나타낼 수 있지만
이는 권장되지 않습니다. 와일드 카드 문자를 사용하여
API 응답이지만 필드 마스크에 원하는 필드를 명시적으로 나열합니다.
사용할 수 있습니다
routespreferred.googleapis.com:443(으)로 요청을 보냅니다. 다음을 사용해야 합니다.
전송하려고 합니다
ComputeRouteMatrix 메서드 사용 예는 다음을 참조하세요.
경로 행렬 계산 (베타) 예시를 참조하세요.
ComputeRouteMatrix 메서드의 한 가지 두드러진 특징은
오류 코드는 전체 스트림 또는
요소 예를 들어 요청이
잘못된 형식입니다 (예: 출처가 없음). 하지만 오류가
스트림의 일부 요소에만 적용할 수 있습니다 (예: 잘못된 장소 ID 설정
오류의 영향을 받은 요소에만 오류 코드가 표시됩니다.
스트림에서 반환한 요소는 반환되리라는 보장이 없습니다.
어떤 순서로든 말이죠. 따라서 각 요소에 origin_index
및 destination_index입니다. 지정된 출발지 및 목적지
요청에 따라 경로 출발지가 origins[origin_index]와 같음
경로 목적지가 동일한 경우
destinations[destination_index]에게 전송합니다. 이러한 배열은 0으로 색인이 생성됩니다. 그것은
출발지 및 목적지 목록 주문을 저장하는 것이 중요합니다.
[[["이해하기 쉬움","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-08-05(UTC)"],[[["The `ComputeRouteMatrix` method in the Routes Preferred API calculates distances and durations for multiple origin-destination pairs, offering advantages like streaming results and traffic calculation options."],["It's necessary to enable the `ComputeRouteMatrix` method and understand quota limits before implementation, ensuring compliance with Google Maps Platform terms."],["The method can be accessed through gRPC or REST, with specific steps outlined for using gRPC, including generating protobuffer code and configuring requests."],["Responses include `origin_index` and `destination_index` to correlate results with input data since the order of elements is not guaranteed."],["Toll fee calculation functionality is available within `ComputeRouteMatrix`, allowing developers to incorporate toll costs into route planning."]]],["The `ComputeRouteMatrix` method of the Routes Preferred API calculates route distance and duration for multiple origins and destinations via streaming gRPC or REST HTTP calls. It offers lower latency, fine-grained traffic options, higher availability, waypoint specifications, and toll information. To use it, enable the method, and send requests with API key and field mask. The method returns elements with `origin_index` and `destination_index`. Error codes can be returned for the entire stream or per individual element.\n"]]