File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Unreleased
2
2
3
+ - add 'intersections'-parameter to isochrones
4
+
3
5
## 2.2.0
4
6
5
7
- restrict optimize_waypoints parameter to not trigger when options or 'shortest' is used
Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ def isochrones(
28
28
intervals = None ,
29
29
segments = None ,
30
30
interval = None ,
31
+ intersections = None ,
31
32
units = None ,
32
33
location_type = None ,
33
34
options = None ,
@@ -68,6 +69,9 @@ def isochrones(
68
69
In meters or seconds.
69
70
:type interval: integer
70
71
72
+ :param intersections: Specifies whether to return intersecting polygons.
73
+ :type intersections: boolean
74
+
71
75
:param units: Specifies the unit system to use when displaying results.
72
76
One of ["m", "km", "m"]. Default "m".
73
77
:type units: string
@@ -127,6 +131,9 @@ def isochrones(
127
131
if units : # pragma: no cover
128
132
params ["units" ] = units
129
133
134
+ if intersections :
135
+ params ["intersections" ] = intersections
136
+
130
137
if location_type : # pragma: no cover
131
138
params ["location_type" ] = location_type
132
139
Original file line number Diff line number Diff line change 52
52
"location_type" : "destination" ,
53
53
"attributes" : ["area" , "reachfactor" ],
54
54
"interval" : [PARAM_INT_SMALL ],
55
+ "intersections" : "true" ,
55
56
"options" : {"avoid_features" : ["highways" , "tollways" ]},
56
57
},
57
58
"distance_matrix" : {
You can’t perform that action at this time.
0 commit comments