Skip to content

Commit cd6c56c

Browse files
Stephan202amuramoto
authored andcommitted
Fix MaxRouteLengthExceededException documentation (#639)
The original documentation appears to have been copied from `MaxElementsExceededException`.
1 parent 67bdabd commit cd6c56c

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/main/java/com/google/maps/errors/MaxRouteLengthExceededException.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,13 @@
1616
package com.google.maps.errors;
1717

1818
/**
19-
* Indicates that the product of origins and destinations exceeds the per-query limit.
19+
* Indicates that the requested route is too long and cannot be processed.
2020
*
21-
* @see <a href="https://developers.google.com/maps/documentation/distance-matrix/usage-limits">
22-
* Limits</a>
21+
* <p>This error occurs when more complex directions are returned. Try reducing the number of
22+
* waypoints, turns, or instructions.
23+
*
24+
* @see <a href="https://developers.google.com/maps/documentation/directions/intro#StatusCodes">
25+
* Status Codes</a>
2326
*/
2427
public class MaxRouteLengthExceededException extends ApiException {
2528

0 commit comments

Comments
 (0)