여기 내 정신을 의심하고 누군가가 도울 수 있기를 바랍니다.Google지도 2 개 이상의 요소가있는 거리 매트릭스가 반환됩니다. OVER_QUERY_LIMIT
2 개 요소와 구글지도 거리 행렬은 잘 작동 쿼리 (1 원, 2 개 대상) :
$ curl "https://maps.googleapis.com/maps/api/distancematrix/json?origins=Seattle&destinations=Victoria+BC|San+Francisco|New+York&key=$GOOGLE_MAPS_API_KEY"
{
"destination_addresses" : [],
"error_message" : "You have exceeded your rate-limit for this API.",
"origin_addresses" : [],
"rows" : [],
"status" : "OVER_QUERY_LIMIT"
}
: 3 개 이상의 요소와
$ curl "https://maps.googleapis.com/maps/api/distancematrix/json?origins=Seattle&destinations=Victoria+BC|San+Francisco&key=$GOOGLE_MAPS_API_KEY"
, 나는 항상 OVER_QUERY_LIMIT 오류가 standard usage limits (아래에 붙여 넣음)을 기반으로 3 개 요소 (원점 1 개와 목적지 3 개)의 단일 요청으로이 오류가 표시되지 않아야합니다.
Each query sent to the Google Maps Distance Matrix API is limited by the number of allowed elements, where the number of origins times the number of destinations defines the number of elements.
- 2,500 free elements per day, calculated as the sum of client-side and server-side queries.
- Maximum of 25 origins or 25 destinations per request.
- 100 elements per request.
- 100 elements per second, calculated as the sum of client-side and server-side queries.
패턴은 2 개의 쿼리 순서에 관계없이 유지됩니다. 2 요소 조회는 항상 성공하며 3 요소 조회는 항상 실패합니다. 어떤 아이디어?
편집 : 3 개의 원점과 1 개의 대상을 동일한 결과로 시도 했으므로 요청의 요소 수와 관련이있는 것 같습니다.