code: def get_woeid(lat, lon):
      
      yql = _YQL_WOEID.format(lat, lon)
  
      # send request
      tmpData = _yql_query(yql)
  
      if tmpData is None:
          _LOGGER.error("No woid is received!")
          return None
  
      # found woid?
      return tmpData.get("place", {}).get("woeid", None)
docs: Ask Yahoo! who is the woeid from GPS position.