

def geocode(self, query, exactly_one=True, timeout=None):
    "\n        Geocode a location query.\n\n        :param string query: The address or query you wish to geocode.\n\n        :param bool exactly_one: Return one result or a list of results, if\n            available.\n\n        :param int timeout: Time, in seconds, to wait for the geocoding service\n            to respond before raising a :class:`geopy.exc.GeocoderTimedOut`\n            exception. Set this only if you wish to override, on this call\n            only, the value set during the geocoder's initialization.\n\n        "
    params = {
        'ak': self.api_key,
        'output': 'json',
        'address': (self.format_string % query),
    }
    url = '?'.join((self.api, urlencode(params)))
    logger.debug('%s.geocode: %s', self.__class__.__name__, url)
    return self._parse_json(self._call_geocoder(params, timeout=timeout), exactly_one=exactly_one)

dataset/ETHPy150Open geopy/geopy/geopy/geocoders/baidu.py Baidu.geocode/VarMisuse@93/316 `url`->`params`