Upon moving to a new location, it should be checked whether a border was crossed. In case a new country is viewed, the local specializations and supported filters will change.
This endpoint is meant to solve this problem by checking the old and new coordinates and converting both the filters and the filter values to the target country. Upon conversion unsupported filter types will be removed and supported ones will be added.
When the filters change, the specialization select values are modified. The converted filter values mark the new selection based on the previous one.
Request
Request Header additional fields
|
Parameter name |
Parameter type |
Parameter description |
|---|---|---|
|
|
The expected language of the response |
Request body parameters
|
Parameter name |
Parameter type |
Parameter description |
|---|---|---|
|
|
The previous and the current country code |
|
|
|
||
|
|
The previous and current latitude-longitude pairs |
|
|
|
||
|
|
Generic specialization types for the same purpose than on GET /v1/services/filters endpoint |
|
|
|
Object |
The currently used filter values, that need to be converted to be compatible with the new filters |
Exactly one pair of fromCountryCode and toCountryCode or fromLocation and toLocation parameters is mandatory.
Response
Response Body data structure
|
Property name |
Property type |
Property description |
|---|---|---|
|
|
boolean |
Marks whether filter conversion is required |
|
|
The response of GET /v1/services/filters endpoint for the new location |
|
|
|
Object? |
The currently used filter values converted to be compatible with the new |
When conversion is not required, only { isFilterChanged: false } will be returned.