Skip to content

Commit bd169fc

Browse files
committed
added comments to matrix v2 and isochrones v2.
1 parent 4de9542 commit bd169fc

23 files changed

+165
-1
lines changed

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/IsochronesParameters.java

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,49 +11,96 @@
1111
@Setter
1212
public class IsochronesParameters {
1313

14+
/**
15+
* Specifies the route profile.
16+
*/
1417
@JsonIgnore
1518
private Profile profile;
1619

20+
/**
21+
* The locations to use for the route as an array of longitude/latitude pairs
22+
*/
1723
@JsonInclude(JsonInclude.Include.NON_NULL)
1824
@JsonProperty("locations")
1925
private Locations locations;
2026

27+
/**
28+
* Maximum range value of the analysis in seconds for time and metres for distance.Alternatively a comma separated
29+
* list of specific single range values if more than one location is set.
30+
*/
2131
@JsonInclude(JsonInclude.Include.NON_NULL)
2232
@JsonProperty("range")
2333
private Range range;
2434

35+
/**
36+
* List of isochrones attributes
37+
*/
2538
@JsonInclude(JsonInclude.Include.NON_NULL)
2639
@JsonProperty("attributes")
2740
private Attributes attributes;
2841

42+
/**
43+
* Arbitrary identification string of the request reflected in the meta information.
44+
*/
2945
@JsonInclude(JsonInclude.Include.NON_NULL)
3046
@JsonProperty("id")
3147
private Id id;
3248

49+
/**
50+
* Specifies whether to return intersecting polygons.
51+
*/
3352
@JsonInclude(JsonInclude.Include.NON_NULL)
3453
@JsonProperty("intersections")
3554
private Intersections intersections;
3655

56+
/**
57+
* Interval of isochrones or equidistants for one range value. Value in seconds for time and meters for distance.
58+
*/
3759
@JsonInclude(JsonInclude.Include.NON_NULL)
3860
@JsonProperty("interval")
3961
private Interval interval;
4062

63+
/**
64+
* start treats the location(s) as starting point, destination as goal.
65+
*/
4166
@JsonInclude(JsonInclude.Include.NON_NULL)
4267
@JsonProperty("location_type")
4368
private LocationType locationType;
4469

70+
/**
71+
* Specifies the isochrones reachability type.
72+
*/
4573
@JsonInclude(JsonInclude.Include.NON_NULL)
4674
@JsonProperty("range_type")
4775
private RangeType rangeType;
4876

77+
/**
78+
* Applies a level of generalisation to the isochrone polygons generated as a smoothing_factor between 0 and 100.0.
79+
* Generalisation is produced by determining a maximum length of a connecting line between two points found on
80+
* the outside of a containing polygon. If the distance is larger than a threshold value, the line between the
81+
* two points is removed and a smaller connecting line between other points is used. Note that the minimum length
82+
* of this connecting line is ~1333m, and so when the smoothing_factor results in a distance smaller than this, the
83+
* minimum value is used. The threshold value is determined as (maximum_radius_of_isochrone / 100) * smoothing_factor.
84+
* Therefore, a value closer to 100 will result in a more generalised shape. The polygon generation algorithm is
85+
* based on Duckham and al. (2008) "Efficient generation of simple polygons for characterizing the shape of a
86+
* set of points in the plane."
87+
*/
4988
@JsonInclude(JsonInclude.Include.NON_NULL)
5089
@JsonProperty("smoothing")
5190
private Smoothing smoothing;
5291

92+
/**
93+
* Specifies the area unit.
94+
* Default: m.
95+
*/
5396
@JsonInclude(JsonInclude.Include.NON_NULL)
5497
@JsonProperty("area_units")
5598
private AreaUnits areaUnits;
56-
99+
100+
/**
101+
* Specifies the distance units only if range_type is set to distance.
102+
* Default: m.
103+
*/
57104
@JsonInclude(JsonInclude.Include.NON_NULL)
58105
@JsonProperty("units")
59106
private Units units;

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/IsochronesRequest.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
import java.util.HashMap;
1515
import java.util.Map;
1616

17+
/**
18+
* The Isochrone Service supports time and distance analyses for one single or multiple locations.
19+
* You may also specify the isochrone interval or provide multiple exact isochrone range values.
20+
* This service allows the same range of profile options as the /directions endpoint,
21+
* which help you to further customize your request to obtain a more detailed reachability area response.
22+
*/
1723
@Getter
1824
public class IsochronesRequest implements Request<IsochronesResponse> {
1925

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/parameters/AreaUnits.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
import lombok.AllArgsConstructor;
66
import lombok.Getter;
77

8+
/**
9+
* Specifies the area unit.
10+
* Default: m.
11+
*/
812
@Getter
913
@AllArgsConstructor
1014
public class AreaUnits {

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/parameters/Attributes.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
import java.util.List;
99

10+
/**
11+
* List of isochrones attributes
12+
*/
1013
@Getter
1114
@AllArgsConstructor
1215
public class Attributes {

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/parameters/Id.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import lombok.AllArgsConstructor;
55
import lombok.Getter;
66

7+
/**
8+
* Arbitrary identification string of the request reflected in the meta information.
9+
*/
710
@Getter
811
@AllArgsConstructor
912
public class Id {

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/parameters/Intersections.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import lombok.AllArgsConstructor;
55
import lombok.Getter;
66

7+
/**
8+
* Specifies whether to return intersecting polygons.
9+
*/
710
@Getter
811
@AllArgsConstructor
912
public class Intersections {

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/parameters/Interval.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import lombok.AllArgsConstructor;
55
import lombok.Getter;
66

7+
/**
8+
* Interval of isochrones or equidistants for one range value. Value in seconds for time and meters for distance.
9+
*/
710
@Getter
811
@AllArgsConstructor
912
public class Interval {

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/parameters/LocationType.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
import lombok.AllArgsConstructor;
66
import lombok.Getter;
77

8+
/**
9+
* start treats the location(s) as starting point, destination as goal.
10+
*/
811
@Getter
912
@AllArgsConstructor
1013
public class LocationType {

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/parameters/Locations.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
@AllArgsConstructor
1414
public class Locations {
1515

16+
/**
17+
* The locations to use for the route as an array of longitude/latitude pairs
18+
*/
1619
@JsonValue
1720
@JsonSerialize(using = CoordinateListSerializer.class)
1821
private final List<Coordinate> value;

src/main/java/com/github/marcoshsc/orsApiTools/isochrones/parameters/Profile.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import lombok.AllArgsConstructor;
55
import lombok.Getter;
66

7+
/**
8+
* Specifies the route profile.
9+
*/
710
@Getter
811
@AllArgsConstructor
912
public class Profile {

0 commit comments

Comments
 (0)