API Limitations
Expand table
Max matrix size | Max number of origins | Max number of destinations | Additional limits |
---|---|---|---|
2500 | 1000 | 1000 | All origins and destinations should be contained in an axis-aligned 400 km x 400 km bounding box. Otherwise some matrix cells will be resolved as OUT_OF_REGION. |
50,000 | 10,000 | 10,000 | - departAt or arriveAt must be any. - traffic must be historical. - optimizeRoute must be fastest. - travelMode must be either driving or truck. - No other parameters can be used explicitly. |
Answer:
It seems when using avoid
parameter, it falls within the 1st category. So, all the places need to be within 400km x 400 km bounding box. That was causing the issue.
Once I removed that parameter from the request, the issue was fixed (as it came in the 2nd category where bounding box restriction is not there).