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/src/main/java/com/mapbox/services/api/directions/v5/models/DirectionsWaypoint.java
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,15 @@ public String getName() {
23
23
returnname;
24
24
}
25
25
26
+
/**
27
+
* Sets String with the name of the way the coordinate snapped to.
28
+
*
29
+
* @since 2.0.1
30
+
*/
31
+
publicvoidsetName(Stringname) {
32
+
this.name = name;
33
+
}
34
+
26
35
/**
27
36
* @return double array of [longitude, latitude] for the snapped coordinate.
28
37
* @since 1.0.0
@@ -31,6 +40,15 @@ public double[] getLocation() {
31
40
returnlocation;
32
41
}
33
42
43
+
/**
44
+
* Sets double array of [longitude, latitude] for the snapped coordinate.
45
+
*
46
+
* @since 2.0.1
47
+
*/
48
+
publicvoidsetLocation(double[] location) {
49
+
this.location = location;
50
+
}
51
+
34
52
/**
35
53
* Converts double array {@link #getLocation()} to a {@link Position}. You'll typically want to
36
54
* use this format instead of {@link #getLocation()} as it's easier to work with.
0 commit comments