Skip to content

Commit 2310f20

Browse files
authored
Clarify waypoint limit
PROFILE_DRIVING_TRAFFIC has a much lower limit of three waypoints.
1 parent a983cf4 commit 2310f20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mapbox/libjava-services/src/main/java/com/mapbox/services/api/directions/v5/MapboxDirections.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ public String getProfile() {
391391
* <p>
392392
* - Each coordinate is a pair of a longitude double and latitude double, which are separated by a ,
393393
* - Coordinates are separated by a ; from each other
394-
* - A query must at minimum have 2 coordinates and may at maximum have 25 coordinates
394+
* - A query must have at least 2 coordinates and at most 25 coordinates (at most 3 when the profile is {@link com.mapbox.services.api.directions.v5.DirectionsCriteria#PROFILE_DRIVING_TRAFFIC})
395395
*
396396
* @return String containing coordinates formatted.
397397
* @since 1.0.0

0 commit comments

Comments
 (0)