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)	Nominatim)	PickPointc                       sF   e Zd ZdZdZdZeedddedd fdd
Z fd	d
Z  Z	S )r   z~PickPoint geocoder is a commercial version of Nominatim.

    Documentation at:
       https://pickpoint.io/api-reference
    z/v1/forwardz/v1/reversezapi.pickpoint.ioNtimeoutproxiesdomainscheme
user_agentssl_contextadapter_factoryc          	   	      s$   t  j|||||||d || _dS )ak  

        :param str api_key: PickPoint API key obtained at
            https://pickpoint.io.

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

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

        :param str domain: Domain where the target Nominatim service
            is hosted.

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

        :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
        r   N)super__init__api_key)	selfr   r   r   r   r	   r
   r   r   	__class__ U/var/www/html/django/DPS/env/lib/python3.9/site-packages/geopy/geocoders/pickpoint.pyr      s    *	zPickPoint.__init__c                    s   | j |d< t ||S )z
        Construct geocoding request url. Overridden.

        :param str base_api: Geocoding function base address - self.api
            or self.reverse_api.

        :param dict params: Geocoding params.

        :return: string URL.
        key)r   r   _construct_url)r   Zbase_apiparamsr   r   r   r   F   s    
zPickPoint._construct_url)
__name__
__module____qualname____doc__Zgeocode_pathZreverse_pathr   r   r   __classcell__r   r   r   r   r      s   5r   N)Zgeopy.geocoders.baser   Zgeopy.geocoders.nominatimr   __all__r   r   r   r   r   <module>   s   