|
6 | 6 | import com.mapbox.services.commons.ServicesException; |
7 | 7 | import com.mapbox.services.commons.models.Bearing; |
8 | 8 | import com.mapbox.services.commons.models.Position; |
| 9 | +import com.mapbox.services.commons.utils.TextUtils; |
9 | 10 | import com.mapbox.services.directions.v5.models.DirectionsResponse; |
10 | 11 |
|
11 | | -import org.apache.commons.lang3.StringUtils; |
12 | | - |
13 | 12 | import java.io.IOException; |
14 | 13 | import java.util.ArrayList; |
15 | 14 | import java.util.List; |
@@ -292,7 +291,7 @@ public String getCoordinates() { |
292 | 291 | coordinate.getLatitude())); |
293 | 292 | } |
294 | 293 |
|
295 | | - return StringUtils.join(coordinatesFormatted, ";"); |
| 294 | + return TextUtils.join(";", coordinatesFormatted.toArray()); |
296 | 295 | } |
297 | 296 |
|
298 | 297 | @Override |
@@ -324,7 +323,7 @@ public String getBearings() { |
324 | 323 | bearings[i].getRange()); |
325 | 324 | } |
326 | 325 |
|
327 | | - return StringUtils.join(bearingsFormatted, ";"); |
| 326 | + return TextUtils.join(";", bearingsFormatted); |
328 | 327 | } |
329 | 328 |
|
330 | 329 | public String getGeometries() { |
@@ -355,7 +354,7 @@ public String getRadiuses() { |
355 | 354 | radiusesFormatted[i] = String.format(Locale.US, "%f", radiuses[i]); |
356 | 355 | } |
357 | 356 |
|
358 | | - return StringUtils.join(radiusesFormatted, ";"); |
| 357 | + return TextUtils.join(";", radiusesFormatted); |
359 | 358 | } |
360 | 359 |
|
361 | 360 | public Boolean isSteps() { |
|
0 commit comments