class_docstr: Geocoder using Photon geocoding service (data based on OpenStreetMap
  and service provided by Komoot on https://photon.komoot.io).
  
  Documentation at:
      https://github.com/komoot/photon
  
  Photon/Komoot geocoder aims to let you `search as you type with
  OpenStreetMap`. No API Key is needed by this platform.
  
  .. versionchanged:: 2.2
      Changed default domain from ``photon.komoot.de``
      to ``photon.komoot.io``.
class_docstr_tok: ["Geocoder","using","Photon","geocoding","service","(","data","based","on","OpenStreetMap","and","service","provided","by","Komoot","on","https",":","\/\/photon.komoot.io",")",".","Documentation","at",":","https",":","\/\/github.com\/komoot\/photon","Photon\/Komoot","geocoder","aims","to","let","you","`","search","as","you","type","with","OpenStreetMap","`",".","No","API","Key","is","needed","by","this","platform",".","..","versionchanged",":",":","2.2","Changed","default","domain","from","``","photon.komoot.de","``","to","``","photon.komoot.io","``","."]
docstr: Return an address by location point.
  
  :param query: The coordinates for which you wish to obtain the
      closest human-readable addresses.
  :type query: :class:`geopy.point.Point`, list or tuple of ``(latitude,
      longitude)``, or string as ``"%(latitude)s, %(longitude)s"``.
  
  :param bool exactly_one: Return one result or a list of results, if
      available.
  
  :param int timeout: Time, in seconds, to wait for the geocoding service
      to respond before raising a :class:`geopy.exc.GeocoderTimedOut`
      exception. Set this only if you wish to override, on this call
      only, the value set during the geocoder's initialization.
  
  :param str language: Preferred language in which to return results.
  
  :param int limit: Limit the number of returned results, defaults to no
      limit.
  
  :rtype: ``None``, :class:`geopy.location.Location` or a list of them, if
      ``exactly_one=False``.
docstr_tok: ["Return","an","address","by","location","point",".",":","param","query",":","The","coordinates","for","which","you","wish","to","obtain","the","closest","human-readable","addresses",".",":","type","query",":",":","class",":","`","geopy.point.Point","`",",","list","or","tuple","of","``","(","latitude",",","longitude",")","``",",","or","string","as","``","``","%","(","latitude",")","s",",","%","(","longitude",")","s","''","``",".",":","param","bool","exactly_one",":","Return","one","result","or","a","list","of","results",",","if","available",".",":","param","int","timeout",":","Time",",","in","seconds",",","to","wait","for","the","geocoding","service","to","respond","before","raising","a",":","class",":","`","geopy.exc.GeocoderTimedOut","`","exception",".","Set","this","only","if","you","wish","to","override",",","on","this","call","only",",","the","value","set","during","the","geocoder","'s","initialization",".",":","param","str","language",":","Preferred","language","in","which","to","return","results",".",":","param","int","limit",":","Limit","the","number","of","returned","results",",","defaults","to","no","limit",".",":","rtype",":","``","None","``",",",":","class",":","`","geopy.location.Location","`","or","a","list","of","them",",","if","``","exactly_one=False","``","."]
code: def reverse(
      self,
      query,
      *,
      exactly_one=True,
      timeout=DEFAULT_SENTINEL,
      language=False,
      limit=None,
  ):
      """
      Return an address by location point.
  
      :param query: The coordinates for which you wish to obtain the
          closest human-readable addresses.
      :type query: :class:`geopy.point.Point`, list or tuple of ``(latitude,
          longitude)``, or string as ``"%(latitude)s, %(longitude)s"``.
  
      :param bool exactly_one: Return one result or a list of results, if
          available.
  
      :param int timeout: Time, in seconds, to wait for the geocoding service
          to respond before raising a :class:`geopy.exc.GeocoderTimedOut`
          exception. Set this only if you wish to override, on this call
          only, the value set during the geocoder's initialization.
  
      :param str language: Preferred language in which to return results.
  
      :param int limit: Limit the number of returned results, defaults to no
          limit.
  
      :rtype: ``None``, :class:`geopy.location.Location` or a list of them, if
          ``exactly_one=False``.
      """
      try:
          lat, lon = self._coerce_point_to_string(query).split(",")
      except ValueError:
          raise ValueError("Must be a coordinate pair or Point")
      params = {
          "lat": lat,
          "lon": lon,
      }
      if limit:
          params["limit"] = int(limit)
      if exactly_one:
          params["limit"] = 1
      if language:
          params["lang"] = language
      url = "?".join((self.reverse_api, urlencode(params)))
      logger.debug("%s.reverse: %s", self.__class__.__name__, url)
      callback = partial(self._parse_json, exactly_one=exactly_one)
      return self._call_geocoder(url, callback, timeout=timeout)
  
file_path: geopy/geopy/geocoders/photon.py
imports: import collections.abc
  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 3 for calling the Photon obj's underlying member method code with example usage: obj.reverse(query) and returns: self