Добавлен tomtom
This commit is contained in:
@@ -60,6 +60,12 @@ class YandexGeosuggestAddressSuggestionsConfig(BaseModel):
|
||||
timeout_seconds: float = Field(default=10.0, gt=0)
|
||||
|
||||
|
||||
class TomTomAddressSuggestionsConfig(BaseModel):
|
||||
url: str = "https://api.tomtom.com/search/2/search"
|
||||
api_key: str = ""
|
||||
timeout_seconds: float = Field(default=10.0, gt=0)
|
||||
|
||||
|
||||
class AddressSuggestionsConfig(BaseModel):
|
||||
country_to_provider: dict[str, str] = Field(default_factory=dict)
|
||||
dadata: DadataAddressSuggestionsConfig = Field(
|
||||
@@ -68,6 +74,9 @@ class AddressSuggestionsConfig(BaseModel):
|
||||
yandex_geosuggest: YandexGeosuggestAddressSuggestionsConfig = Field(
|
||||
default_factory=YandexGeosuggestAddressSuggestionsConfig
|
||||
)
|
||||
tomtom: TomTomAddressSuggestionsConfig = Field(
|
||||
default_factory=TomTomAddressSuggestionsConfig
|
||||
)
|
||||
|
||||
@field_validator("country_to_provider")
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user