Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import java.util.List;

/**
* Gives detailed information about an individual route such as the duration, distance and geometry.
* Detailed information about an individual route such as the duration, distance and geometry.
*
* @since 1.0.0
*/
Expand All @@ -27,6 +27,17 @@ public double getDistance() {
return distance;
}

/**
* The distance traveled from origin to destination.
* <p>
* Sets a double number with unit meters.
*
* @since 2.0.1
*/
public void setDistance(double distance) {
this.distance = distance;
}

/**
* The estimated travel time from origin to destination.
*
Expand All @@ -37,6 +48,17 @@ public double getDuration() {
return duration;
}

/**
* The estimated travel time from origin to destination.
* <p>
* Sets a double number with unit seconds.
*
* @since 2.0.1
*/
public void setDuration(double duration) {
this.duration = duration;
}

/**
* Gives the geometry of the route. Commonly used to draw the route on the map view.
*
Expand All @@ -47,6 +69,18 @@ public String getGeometry() {
return geometry;
}

/**
* Sets the geometry of the route. Commonly used to draw the route on the map view.
* <p>
* Sets An encoded polyline string.
*
* @since 2.0.1
*/
public void setGeometry(String geometry) {
this.geometry = geometry;
}


/**
* A Leg is a route between only two waypoints
*
Expand All @@ -56,4 +90,18 @@ public String getGeometry() {
public List<RouteLeg> getLegs() {
return legs;
}


/**
* A Leg is a route between only two waypoints
* <p>
* Sets List of {@link RouteLeg} objects.
*
* @since 2.0.1
*/
public void setLegs(List<RouteLeg> legs) {
this.legs = legs;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ public String getName() {
return name;
}

/**
* Sets String with the name of the way the coordinate snapped to.
*
* @since 2.0.1
*/
public void setName(String name) {
this.name = name;
}

/**
* @return double array of [longitude, latitude] for the snapped coordinate.
* @since 1.0.0
Expand All @@ -31,6 +40,15 @@ public double[] getLocation() {
return location;
}

/**
* Sets double array of [longitude, latitude] for the snapped coordinate.
*
* @since 2.0.1
*/
public void setLocation(double[] location) {
this.location = location;
}

/**
* Converts double array {@link #getLocation()} to a {@link Position}. You'll typically want to
* use this format instead of {@link #getLocation()} as it's easier to work with.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ public boolean getValid() {
return valid;
}

/**
* Sets Boolean value for whether this lane can be taken to complete the maneuver. For
* instance, if the lane array has four objects and the first two are marked as valid, then the
* driver can take either of the left lanes and stay on the route.
*
* @since 2.0.1
*/
public void setValid(boolean valid) {
this.valid = valid;
}

/**
* @return Array of signs for each turn lane. There can be multiple signs. For example, a turning
* lane can have a sign with an arrow pointing left and another sign with an arrow pointing
Expand All @@ -37,4 +48,14 @@ public String[] getIndications() {
return indications;
}

/**
* Sets Array of signs for each turn lane. There can be multiple signs. For example, a turning
* lane can have a sign with an arrow pointing left and another sign with an arrow pointing
* straight.
*
* @since 2.0.1
*/
public void setIndications(String[] indications) {
this.indications = indications;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,17 @@ public double getDistance() {
return distance;
}

/**
* The distance traveled from the maneuver to the next {@link LegStep}.
* <p>
* Sets a double number with unit meters.
*
* @since 2.0.1
*/
public void setDistance(double distance) {
this.distance = distance;
}

/**
* The estimated travel time from the maneuver to the next {@link LegStep}.
*
Expand All @@ -59,6 +70,17 @@ public double getDuration() {
return duration;
}

/**
* The estimated travel time from the maneuver to the next {@link LegStep}.
* <p>
* Sets a double number with unit seconds.
*
* @since 2.0.1
*/
public void setDuration(double duration) {
this.duration = duration;
}

/**
* Gives the geometry of the leg step.
*
Expand All @@ -69,6 +91,17 @@ public String getGeometry() {
return geometry;
}

/**
* Sets the geometry of the leg step.
* <p>
* Sets An encoded polyline string.
*
* @since 2.0.1
*/
public void setGeometry(String geometry) {
this.geometry = geometry;
}

/**
* @return String with the name of the way along which the travel proceeds.
* @since 1.0.0
Expand All @@ -77,6 +110,15 @@ public String getName() {
return name;
}

/**
* Sets String with the name of the way along which the travel proceeds.
*
* @since 2.0.0
*/
public void setName(String name) {
this.name = name;
}

/**
* @return String with reference number or code of the way along which the travel proceeds.
* Optionally included, if data is available.
Expand All @@ -86,6 +128,16 @@ public String getRef() {
return ref;
}

/**
* Sets String with reference number or code of the way along which the travel proceeds.
* Optionally included, if data is available.
*
* @since 2.0.1
*/
public void setRef(String ref) {
this.ref = ref;
}

/**
* @return String with the destinations of the way along which the travel proceeds.
* Optionally included, if data is available.
Expand All @@ -95,6 +147,17 @@ public String getDestinations() {
return destinations;
}

/**
* Sets String with the destinations of the way along which the travel proceeds.
* Optionally included, if data is available.
*
* @since 2.0.1
*/

public void setDestinations(String destinations) {
this.destinations = destinations;
}

/**
* @return String indicating the mode of transportation.
* @since 1.0.0
Expand All @@ -103,6 +166,15 @@ public String getMode() {
return mode;
}

/**
* Sets String indicating the mode of transportation.
*
* @since 2.0.1
*/
public void setMode(String mode) {
this.mode = mode;
}

/**
* @return One {@link StepManeuver} object.
* @since 1.0.0
Expand All @@ -111,6 +183,15 @@ public StepManeuver getManeuver() {
return maneuver;
}

/**
* Sets One {@link StepManeuver} object.
*
* @since 2.0.1
*/
public void setManeuver(StepManeuver maneuver) {
this.maneuver = maneuver;
}

/**
* @return Array of objects representing all intersections along the step.
* @since 1.3.0
Expand All @@ -119,6 +200,14 @@ public List<StepIntersection> getIntersections() {
return intersections;
}

/**
* Sets {@code List} of objects representing all intersections along the step.
*
* @since 2.0.1
*/
public void setIntersections(List<StepIntersection> intersections) {
this.intersections = intersections;
}

/**
* An optional string indicating the name of the rotary.
Expand All @@ -130,6 +219,17 @@ public String getRotaryName() {
return rotaryName;
}

/**
* An optional string indicating the name of the rotary.
* <p>
* Sets String with the rotary name
*
* @since 2.0.1
*/
public void setRotaryName(String rotaryName) {
this.rotaryName = rotaryName;
}

/**
* An optional string indicating the pronunciation of the name of the rotary.
*
Expand All @@ -140,6 +240,17 @@ public String getRotaryPronunciation() {
return rotaryPronunciation;
}

/**
* An optional string indicating the pronunciation of the name of the rotary.
* <p>
* Sets String in IPA with the rotary name's pronunciation
*
* @since 2.0.1
*/
public void setRotaryPronunciation(String rotaryPronunciation) {
this.rotaryPronunciation = rotaryPronunciation;
}

/**
* The pronunciation hint of the way name. Will be undefined if no pronunciation is hit.
*
Expand All @@ -150,4 +261,14 @@ public String getPronunciation() {
return pronunciation;
}

/**
* The pronunciation hint of the way name. Will be undefined if no pronunciation is hit.
* <p>
* Sets String with the pronunciation
*
* @since 2.0.1
*/
public void setPronunciation(String pronunciation) {
this.pronunciation = pronunciation;
}
}
Loading