o
    ÔèFhÎ  ã                   @   s0   d dl mZ d dlmZ dZG dd„ deƒZdS )é    )ÚDEFAULT_SENTINEL)ÚTomTom)Ú	AzureMapsc                       sJ   e Zd ZdZdZdZdeededddœ‡ fdd„
Zd	d
„ Zdd„ Z	‡  Z
S )r   zAzureMaps geocoder based on TomTom.

    Documentation at:
        https://docs.microsoft.com/en-us/azure/azure-maps/index
    z/search/address/jsonz/search/address/reverse/jsonNzatlas.microsoft.com)ÚschemeÚtimeoutÚproxiesÚ
user_agentÚssl_contextÚadapter_factoryÚdomainc          	   
      s    t ƒ j||||||||d� dS )aQ  
        :param str subscription_key: Azure Maps subscription key.

        :param str scheme:
            See :attr:`geopy.geocoders.options.default_scheme`.

        :param int timeout:
            See :attr:`geopy.geocoders.options.default_timeout`.

        :param dict proxies:
            See :attr:`geopy.geocoders.options.default_proxies`.

        :param str user_agent:
            See :attr:`geopy.geocoders.options.default_user_agent`.

        :type ssl_context: :class:`ssl.SSLContext`
        :param ssl_context:
            See :attr:`geopy.geocoders.options.default_ssl_context`.

        :param callable adapter_factory:
            See :attr:`geopy.geocoders.options.default_adapter_factory`.

            .. versionadded:: 2.0

        :param str domain: Domain where the target Azure Maps service
            is hosted.
        )Úapi_keyr   r   r   r   r	   r
   r   N)ÚsuperÚ__init__)	ÚselfÚsubscription_keyr   r   r   r   r	   r
   r   ©Ú	__class__© úN/var/www/html/loop/nvenv/lib/python3.10/site-packages/geopy/geocoders/azure.pyr      s   '
øzAzureMaps.__init__c                 C   ó   d| j |dœS ©Nz1.0)zapi-versionzsubscription-keyÚquery©r   )r   Úformatted_queryr   r   r   Ú_geocode_paramsC   ó   ýzAzureMaps._geocode_paramsc                 C   r   r   r   )r   Úpositionr   r   r   Ú_reverse_paramsJ   r   zAzureMaps._reverse_params)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Úgeocode_pathÚreverse_pathr   r   r   r   Ú__classcell__r   r   r   r   r      s    ö2r   N)Úgeopy.geocoders.baser   Úgeopy.geocoders.tomtomr   Ú__all__r   r   r   r   r   Ú<module>   s    