Skip to content

Commit 4c95c12

Browse files
authored
Remove coordinate limit from MapboxMapMatching (#940)
1 parent f80e493 commit 4c95c12

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

services-matching/src/main/java/com/mapbox/api/matching/v5/MapboxMapMatching.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -697,10 +697,6 @@ public MapboxMapMatching build() {
697697
+ " request.");
698698
}
699699

700-
if (coordinates.size() > 100) {
701-
throw new ServicesException("Maximum of 100 coordinates are allowed for this API.");
702-
}
703-
704700
if (radiuses != null && radiuses.length != coordinates.size()) {
705701
throw new ServicesException(
706702
"There must be as many radiuses as there are coordinates.");

services-matching/src/test/java/com/mapbox/api/matching/v5/MapboxMapMatchingTest.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -116,23 +116,6 @@ public void build_exceptionThrownWhenLessThanTwoCoordsProvided() throws Exceptio
116116
mapMatching.executeCall();
117117
}
118118

119-
@Test
120-
public void build_throwsExceptionWhenCoordsOverOneHundred() throws Exception {
121-
thrown.expect(ServicesException.class);
122-
thrown.expectMessage(
123-
startsWith("Maximum of 100 coordinates are allowed for this API."));
124-
List<Point> coordinates = new ArrayList<>();
125-
for (int i = 0; i < 101; i++) {
126-
coordinates.add(Point.fromLngLat(1.0 + i, 2.0 + i));
127-
}
128-
MapboxMapMatching mapMatching = MapboxMapMatching.builder()
129-
.coordinates(coordinates)
130-
.baseUrl("https://foobar.com")
131-
.accessToken(ACCESS_TOKEN)
132-
.build();
133-
mapMatching.executeCall();
134-
}
135-
136119
@Test
137120
public void build_throwsExceptionWhenNotMatchingRadiusesForEachCoord() throws Exception {
138121
thrown.expect(ServicesException.class);

0 commit comments

Comments
 (0)