class_docstr: Pelias geocoder.
  
  Documentation at:
      https://github.com/pelias/documentation
  
  See also :class:`geopy.geocoders.GeocodeEarth` which is a Pelias-based
  service provided by the developers of Pelias itself.
class_docstr_tok: ["Pelias","geocoder",".","Documentation","at",":","https",":","\/\/github.com\/pelias\/documentation","See","also",":","class",":","`","geopy.geocoders.GeocodeEarth","`","which","is","a","Pelias-based","service","provided","by","the","developers","of","Pelias","itself","."]
docstr: :param str domain: Specify a domain for Pelias API.
  
  :param str api_key: Pelias API key, optional.
  
  :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`.
  
  :param str scheme:
      See :attr:`geopy.geocoders.options.default_scheme`.
  
  :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
docstr_tok: [":","param","str","domain",":","Specify","a","domain","for","Pelias","API",".",":","param","str","api_key",":","Pelias","API","key",",","optional",".",":","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","`",".",":","param","str","scheme",":","See",":","attr",":","`","geopy.geocoders.options.default_scheme","`",".",":","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"]
code: def __init__(
      self,
      domain,
      api_key=None,
      *,
      timeout=DEFAULT_SENTINEL,
      proxies=DEFAULT_SENTINEL,
      user_agent=None,
      scheme=None,
      ssl_context=DEFAULT_SENTINEL,
      adapter_factory=None
      # Make sure to synchronize the changes of this signature in the
      # inheriting classes (e.g. GeocodeEarth).
  ):
      """
      :param str domain: Specify a domain for Pelias API.
  
      :param str api_key: Pelias API key, optional.
  
      :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`.
  
      :param str scheme:
          See :attr:`geopy.geocoders.options.default_scheme`.
  
      :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
  
      """
      super().__init__(
          scheme=scheme,
          timeout=timeout,
          proxies=proxies,
          user_agent=user_agent,
          ssl_context=ssl_context,
          adapter_factory=adapter_factory,
      )
  
      self.api_key = api_key
      self.domain = domain.strip("/")
  
      self.geocode_api = "%s://%s%s" % (
          self.scheme,
          self.domain,
          self.geocode_path,
      )
      self.reverse_api = "%s://%s%s" % (
          self.scheme,
          self.domain,
          self.reverse_path,
      )
  
file_path: geopy/geopy/geocoders/pelias.py
imports: import warnings
  from functools import partial
  from urllib.parse import urlencode
  from geopy.geocoders.base import DEFAULT_SENTINEL, Geocoder
  from geopy.location import Location
  from geopy.util import logger
label_desc: Use image node_id 1 to create a new Pelias object from inherited base classes: Geocoder with example: obj = Pelias(domain, api_key)