You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mapbox/libjava-services-rx/src/main/java/com/mapbox/services/api/rx/directionsmatrix/v1/DirectionsMatrixServiceRx.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ public interface DirectionsMatrixServiceRx {
29
29
* @param sources Array of waypoint objects. Each waypoints is an input coordinate snapped to the road and path
30
30
* network. The waypoints appear in the array in the order of the input coordinates, or in the
31
31
* order as specified in the sources query parameter.
Copy file name to clipboardExpand all lines: mapbox/libjava-services/src/main/java/com/mapbox/services/api/directions/v5/models/DirectionsResponse.java
+36Lines changed: 36 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,9 +13,22 @@ public class DirectionsResponse {
13
13
privateList<DirectionsRoute> routes;
14
14
privateList<DirectionsWaypoint> waypoints;
15
15
16
+
/**
17
+
* Empty constructor
18
+
*
19
+
* @since 2.1.0
20
+
*/
16
21
publicDirectionsResponse() {
17
22
}
18
23
24
+
/**
25
+
* Constructor taking in both a list of {@link DirectionsRoute} and a list of {@link DirectionsWaypoint}s.
26
+
*
27
+
* @param routes list of routes you can pass in while building this object.
28
+
* @param waypoints list of waypoints you can pass in while building this object. Ideally these should match what was
Copy file name to clipboardExpand all lines: mapbox/libjava-services/src/main/java/com/mapbox/services/api/directions/v5/models/DirectionsWaypoint.java
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,17 @@ public class DirectionsWaypoint {
12
12
privateStringname;
13
13
privatedouble[] location;
14
14
15
+
/**
16
+
* Empty constructor
17
+
*
18
+
* @since 2.0.0
19
+
*/
15
20
publicDirectionsWaypoint() {
16
21
}
17
22
18
23
/**
24
+
* Provides the way name which the waypoint's coordinate is snapped to.
25
+
*
19
26
* @return String with the name of the way the coordinate snapped to.
20
27
* @since 1.0.0
21
28
*/
@@ -24,15 +31,18 @@ public String getName() {
24
31
}
25
32
26
33
/**
27
-
* Sets String with the name of the way the coordinate snapped to.
34
+
* Provide a way name which the waypoint's coordinate is snapped to.
28
35
*
29
-
* @since 2.0.1
36
+
* @param name a String with the name of the way the coordinate snapped to.
37
+
* @since 2.1.0
30
38
*/
31
39
publicvoidsetName(Stringname) {
32
40
this.name = name;
33
41
}
34
42
35
43
/**
44
+
* an array with two double values reresenting the maneuver locations coordinate.
45
+
*
36
46
* @return double array of [longitude, latitude] for the snapped coordinate.
37
47
* @since 1.0.0
38
48
*/
@@ -43,7 +53,8 @@ public double[] getLocation() {
43
53
/**
44
54
* Sets double array of [longitude, latitude] for the snapped coordinate.
45
55
*
46
-
* @since 2.0.1
56
+
* @param location array with the order [longitude, latitude].
0 commit comments