a
    }c                     @   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__)	selfZsubscription_keyr   r   r   r   r	   r
   r   	__class__ Q/var/www/html/django/DPS/env/lib/python3.9/site-packages/geopy/geocoders/azure.pyr      s    'zAzureMaps.__init__c                 C   s   d| j |dS Nz1.0)zapi-versionzsubscription-keyqueryr   )r   Zformatted_queryr   r   r   _geocode_paramsC   s    zAzureMaps._geocode_paramsc                 C   s   d| j |dS r   r   )r   positionr   r   r   _reverse_paramsJ   s    zAzureMaps._reverse_params)__name__
__module____qualname____doc__Zgeocode_pathZreverse_pathr   r   r   r   __classcell__r   r   r   r   r      s   2r   N)Zgeopy.geocoders.baser   Zgeopy.geocoders.tomtomr   __all__r   r   r   r   r   <module>   s   