

def __init__(self, api_key, domain='api.opencagedata.com', scheme=DEFAULT_SCHEME, timeout=DEFAULT_TIMEOUT, proxies=None, user_agent=None):
    '\n        Initialize a customized Open Cage Data geocoder.\n\n        :param string api_key: The API key required by Open Cage Data\n            to perform geocoding requests. You can get your key here:\n            https://developer.opencagedata.com/\n\n        :param string domain: Currently it is \'api.opencagedata.com\', can\n            be changed for testing purposes.\n\n        :param string scheme: Use \'https\' or \'http\' as the API URL\'s scheme.\n            Default is https. Note that SSL connections\' certificates are not\n            verified.\n\n        :param dict proxies: If specified, routes this geocoder\'s requests\n            through the specified proxy. E.g., {"https": "192.0.2.0"}. For\n            more information, see documentation on\n            :class:`urllib2.ProxyHandler`.\n\n        '
    super(OpenCage, self).__init__(scheme=scheme, timeout=timeout, proxies=proxies, user_agent=user_agent)
    self.api_key = api_key
    self.domain = domain.strip('/')
    self.scheme = scheme
    self.api = ('%s://%s/geocode/v1/json' % (self.scheme, self.domain))

dataset/ETHPy150Open geopy/geopy/geopy/geocoders/opencage.py OpenCage.__init__/original