Skip to content

Commit

Permalink
Merge pull request #506 from VorTECHsa/search-congestion-filters
Browse files Browse the repository at this point in the history
chore: add congestion filters to search enriched
  • Loading branch information
cojdev committed Jul 31, 2024
2 parents 85724d1 + 6ae00ee commit fdf71de
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions vortexasdk/endpoints/voyages_search_enriched.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def search(
destination_behaviour: DestinationBehaviour = None,
event_types: Union[str, List[str]] = None,
event_types_excluded: Union[str, List[str]] = None,
congestion_target_location: Union[ID, List[ID]] = None,
congestion_target_location_excluded: Union[ID, List[ID]] = None,
) -> Union[
VoyagesSearchEnrichedFlattenedResult, VoyagesSearchEnrichedListResult
]:
Expand Down Expand Up @@ -239,6 +241,10 @@ def search(
`'first_origin'`,`'first_origin_shipping_region'`,`'first_origin_country'`,`'first_origin_port'`,`'first_origin_terminal'`,
`'final_destination'`,`'final_destination_shipping_region'`,`'final_destination_country'`,`'final_destination_port'`,`'final_destination_terminal'`.
congestion_target_location: A list of geographical identifiers to apply to the location filter.
congestion_target_location_excluded: A list of geographical identifiers to exclude from the location filter.
# Returns
`VoyagesSearchEnrichedListResult` or `VoyagesSearchEnrichedFlattenedResult`
Expand Down Expand Up @@ -351,6 +357,12 @@ def search(
"event_types": convert_to_list(event_types),
"event_types_excluded": convert_to_list(event_types_excluded),
"intra_movements": intra_movements,
"congestion_target_location": convert_to_list(
congestion_target_location
),
"congestion_target_location_excluded": convert_to_list(
congestion_target_location_excluded
),
}

if columns is None:
Expand Down
2 changes: 1 addition & 1 deletion vortexasdk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.72.7"
__version__ = "0.72.8"

0 comments on commit fdf71de

Please sign in to comment.