-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from TheECanyon/develop
Develop
- Loading branch information
Showing
17 changed files
with
376 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package klib.trackr; | ||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ "start", "end", "length", "travelTime", "maneuver" }) | ||
public class Leg { | ||
|
||
@JsonProperty("length") | ||
private Integer length; | ||
@JsonProperty("travelTime") | ||
private Integer travelTime; | ||
@JsonProperty("maneuver") | ||
private List<Maneuver> maneuver = null; | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
|
||
@JsonProperty("length") | ||
public Integer getLength() { | ||
return length; | ||
} | ||
|
||
@JsonProperty("length") | ||
public void setLength(Integer length) { | ||
this.length = length; | ||
} | ||
|
||
@JsonProperty("travelTime") | ||
public Integer getTravelTime() { | ||
return travelTime; | ||
} | ||
|
||
@JsonProperty("travelTime") | ||
public void setTravelTime(Integer travelTime) { | ||
this.travelTime = travelTime; | ||
} | ||
|
||
@JsonProperty("maneuver") | ||
public List<Maneuver> getManeuver() { | ||
return maneuver; | ||
} | ||
|
||
@JsonProperty("maneuver") | ||
public void setManeuver(List<Maneuver> maneuver) { | ||
this.maneuver = maneuver; | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return maneuver.toString(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
package klib.trackr; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ "position", "instruction", "travelTime", "length", "id", "_type" }) | ||
public class Maneuver { | ||
|
||
@JsonProperty("position") | ||
private Position position; | ||
@JsonProperty("instruction") | ||
private String instruction; | ||
@JsonProperty("travelTime") | ||
private Integer travelTime; | ||
@JsonProperty("length") | ||
private Integer length; | ||
@JsonProperty("id") | ||
private String id; | ||
@JsonProperty("_type") | ||
private String type; | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
@JsonProperty("position") | ||
public Position getPosition() { | ||
return position; | ||
} | ||
|
||
@JsonProperty("position") | ||
public void setPosition(Position position) { | ||
this.position = position; | ||
} | ||
|
||
@JsonProperty("instruction") | ||
public String getInstruction() { | ||
return instruction; | ||
} | ||
|
||
@JsonProperty("instruction") | ||
public void setInstruction(String instruction) { | ||
this.instruction = instruction; | ||
} | ||
|
||
@JsonProperty("travelTime") | ||
public Integer getTravelTime() { | ||
return travelTime; | ||
} | ||
|
||
@JsonProperty("travelTime") | ||
public void setTravelTime(Integer travelTime) { | ||
this.travelTime = travelTime; | ||
} | ||
|
||
@JsonProperty("length") | ||
public Integer getLength() { | ||
return length; | ||
} | ||
|
||
@JsonProperty("length") | ||
public void setLength(Integer length) { | ||
this.length = length; | ||
} | ||
|
||
@JsonProperty("id") | ||
public String getId() { | ||
return id; | ||
} | ||
|
||
@JsonProperty("id") | ||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
@JsonProperty("_type") | ||
public String getType() { | ||
return type; | ||
} | ||
|
||
@JsonProperty("_type") | ||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return id.toString() + " " + length.toString(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package klib.trackr; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ "latitude", "longitude" }) | ||
public class Position { | ||
|
||
@JsonProperty("latitude") | ||
private Double latitude; | ||
@JsonProperty("longitude") | ||
private Double longitude; | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
@JsonProperty("latitude") | ||
public Double getLatitude() { | ||
return latitude; | ||
} | ||
|
||
@JsonProperty("latitude") | ||
public void setLatitude(Double latitude) { | ||
this.latitude = latitude; | ||
} | ||
|
||
@JsonProperty("longitude") | ||
public Double getLongitude() { | ||
return longitude; | ||
} | ||
|
||
@JsonProperty("longitude") | ||
public void setLongitude(Double longitude) { | ||
this.longitude = longitude; | ||
} | ||
|
||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,46 @@ | ||
package klib.trackr; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
import com.fasterxml.jackson.annotation.JsonAnyGetter; | ||
import com.fasterxml.jackson.annotation.JsonAnySetter; | ||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
|
||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
@JsonPropertyOrder({ "response" }) | ||
public class Response { | ||
|
||
|
||
private Route route; | ||
@JsonProperty("response") | ||
private Response_ response; | ||
@JsonIgnore | ||
private Map<String, Object> additionalProperties = new HashMap<String, Object>(); | ||
|
||
@JsonProperty("response") | ||
public Response_ getResponse() { | ||
return response; | ||
} | ||
|
||
public Response() { | ||
} | ||
@JsonProperty("response") | ||
public void setResponse(Response_ response) { | ||
this.response = response; | ||
} | ||
|
||
public Route getRoute() { | ||
return route; | ||
} | ||
@JsonAnyGetter | ||
public Map<String, Object> getAdditionalProperties() { | ||
return this.additionalProperties; | ||
} | ||
|
||
public void setRoute(Route route) { | ||
this.route = route; | ||
} | ||
@JsonAnySetter | ||
public void setAdditionalProperty(String name, Object value) { | ||
this.additionalProperties.put(name, value); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Response:{" + | ||
route + | ||
'}'; | ||
} | ||
@Override | ||
public String toString() { | ||
return response.toString(); | ||
} | ||
} |
Oops, something went wrong.