def geocode(
            self,
            query,
            exactly_one=True,
            timeout=None,
        ):
        params = {
            'q': self.format_string % query,
        }

        if self.api_key is not None:
            params["api_key"] = self.api_key

        url = "?".join((self.geocode_api, urlencode(params)))

        logger.debug("%s.geocode: %s", self.__class__.__name__, url)
        return self._parse_json_geocode(
            self._call_geocoder(url, timeout=timeout), exactly_one
        )
Geocode a location query.
dataset/ETHPy150Open geopy/geopy/geopy/geocoders/navidata.py/NaviData.geocode