@@ -42,7 +42,7 @@ class JourneyApiClient(ApiBaseClient):
42
42
wheelchair: bool = False,
43
43
direct_path: str = "indifferent",
44
44
direct_path_mode: Optional[Sequence[str]] = None,
45
- add_poi_infos: Sequence[str] = [] ,
45
+ add_poi_infos: Optional[ Sequence[str]] = None ,
46
46
debug: bool = False,
47
47
free_radius_from: int = 0,
48
48
free_radius_to: int = 0,
@@ -79,7 +79,7 @@ class JourneyApiClient(ApiBaseClient):
79
79
wheelchair: bool = False,
80
80
direct_path: str = "indifferent",
81
81
direct_path_mode: Optional[Sequence[str]] = None,
82
- add_poi_infos: Sequence[str] = [] ,
82
+ add_poi_infos: Optional[ Sequence[str]] = None ,
83
83
debug: bool = False,
84
84
free_radius_from: int = 0,
85
85
free_radius_to: int = 0,
@@ -116,7 +116,7 @@ class JourneyApiClient(ApiBaseClient):
116
116
wheelchair: bool = False,
117
117
direct_path: str = "indifferent",
118
118
direct_path_mode: Optional[Sequence[str]] = None,
119
- add_poi_infos: Sequence[str] = [] ,
119
+ add_poi_infos: Optional[ Sequence[str]] = None ,
120
120
debug: bool = False,
121
121
free_radius_from: int = 0,
122
122
free_radius_to: int = 0,
@@ -173,7 +173,7 @@ def list_journeys(
173
173
wheelchair : bool = False ,
174
174
direct_path : str = "indifferent" ,
175
175
direct_path_mode : Optional [Sequence [str ]] = None ,
176
- add_poi_infos : Sequence [str ] = [] ,
176
+ add_poi_infos : Optional [ Sequence [str ]] = None ,
177
177
debug : bool = False ,
178
178
free_radius_from : int = 0 ,
179
179
free_radius_to : int = 0 ,
@@ -274,7 +274,6 @@ def list_journeys(
274
274
"max_duration" : max_duration ,
275
275
"wheelchair" : wheelchair ,
276
276
"direct_path" : direct_path ,
277
- "add_poi_infos[]" : add_poi_infos ,
278
277
"debug" : debug ,
279
278
"free_radius_from" : free_radius_from ,
280
279
"free_radius_to" : free_radius_to ,
@@ -299,6 +298,9 @@ def list_journeys(
299
298
if last_section_mode :
300
299
filters ["last_section_mode[]" ] = last_section_mode
301
300
301
+ if add_poi_infos :
302
+ filters ["add_poi_infos[]" ] = add_poi_infos
303
+
302
304
if any ([direct_path_mode , first_section_mode ]):
303
305
filters ["direct_path_mode[]" ] = direct_path_mode or first_section_mode
304
306
@@ -333,7 +335,7 @@ def list_journeys_with_region_id(
333
335
wheelchair : bool = False ,
334
336
direct_path : str = "indifferent" ,
335
337
direct_path_mode : Optional [Sequence [str ]] = None ,
336
- add_poi_infos : Sequence [str ] = [] ,
338
+ add_poi_infos : Optional [ Sequence [str ]] = None ,
337
339
debug : bool = False ,
338
340
free_radius_from : int = 0 ,
339
341
free_radius_to : int = 0 ,
@@ -436,7 +438,6 @@ def list_journeys_with_region_id(
436
438
"max_duration" : max_duration ,
437
439
"wheelchair" : wheelchair ,
438
440
"direct_path" : direct_path ,
439
- "add_poi_infos[]" : add_poi_infos ,
440
441
"debug" : debug ,
441
442
"free_radius_from" : free_radius_from ,
442
443
"free_radius_to" : free_radius_to ,
@@ -461,6 +462,9 @@ def list_journeys_with_region_id(
461
462
if last_section_mode :
462
463
filters ["last_section_mode[]" ] = last_section_mode
463
464
465
+ if add_poi_infos :
466
+ filters ["add_poi_infos[]" ] = add_poi_infos
467
+
464
468
if any ([direct_path_mode , first_section_mode ]):
465
469
filters ["direct_path_mode[]" ] = direct_path_mode or first_section_mode
466
470
@@ -495,7 +499,7 @@ def list_journeys_with_resource_path(
495
499
wheelchair : bool = False ,
496
500
direct_path : str = "indifferent" ,
497
501
direct_path_mode : Optional [Sequence [str ]] = None ,
498
- add_poi_infos : Sequence [str ] = [] ,
502
+ add_poi_infos : Optional [ Sequence [str ]] = None ,
499
503
debug : bool = False ,
500
504
free_radius_from : int = 0 ,
501
505
free_radius_to : int = 0 ,
@@ -598,7 +602,6 @@ def list_journeys_with_resource_path(
598
602
"max_duration" : max_duration ,
599
603
"wheelchair" : wheelchair ,
600
604
"direct_path" : direct_path ,
601
- "add_poi_infos[]" : add_poi_infos ,
602
605
"debug" : debug ,
603
606
"free_radius_from" : free_radius_from ,
604
607
"free_radius_to" : free_radius_to ,
@@ -623,6 +626,9 @@ def list_journeys_with_resource_path(
623
626
if last_section_mode :
624
627
filters ["last_section_mode[]" ] = last_section_mode
625
628
629
+ if add_poi_infos :
630
+ filters ["add_poi_infos[]" ] = add_poi_infos
631
+
626
632
if any ([direct_path_mode , first_section_mode ]):
627
633
filters ["direct_path_mode[]" ] = direct_path_mode or first_section_mode
628
634
0 commit comments