original_docstring: 
      convert latitude, longitude and zoom into tile in x and y axis
      referencing http://www.cnblogs.com/Tangf/archive/2012/04/07/2435545.html
  
      Keyword arguments:
      lat_deg -- latitude in degree
      lng_deg -- longitude in degree
      zoom    -- map scale (0-18)
  
      Return two parameters as tile numbers in x axis and y axis
      
docstring: 
  
  
  
  Return two parameters as tile numbers in x axis and y axis
docstring_tokens: Return two parameters as tile numbers in x axis and y axis
code: def latlng2tilenum(lat_deg, lng_deg, zoom):
      """
      convert latitude, longitude and zoom into tile in x and y axis
      referencing http://www.cnblogs.com/Tangf/archive/2012/04/07/2435545.html
  
      Keyword arguments:
      lat_deg -- latitude in degree
      lng_deg -- longitude in degree
      zoom    -- map scale (0-18)
  
      Return two parameters as tile numbers in x axis and y axis
      """
      n = math.pow(2, int(zoom))
      xtile = ((lng_deg + 180) / 360) * n
      lat_rad = lat_deg / 180 * math.pi
      ytile = (1 - (math.log(math.tan(lat_rad) + 1 / math.cos(lat_rad)) / math.pi)) / 2 * n
      return math.floor(xtile), math.floor(ytile)
code_tokens: def latlng2tilenum ( lat_deg , lng_deg , zoom ) : n = math . pow ( 2 , int ( zoom ) ) xtile = ( ( lng_deg + 180 ) / 360 ) * n lat_rad = lat_deg / 180 * math . pi ytile = ( 1 - ( math . log ( math . tan ( lat_rad ) + 1 / math . cos ( lat_rad ) ) / math . pi ) ) / 2 * n return math . floor ( xtile ) , math . floor ( ytile )
short_docstring: convert latitude, longitude and zoom into tile in x and y axis
  referencing http://www.cnblogs.com/Tangf/archive/2012/04/07/2435545.html
short_docstring_tokens: convert latitude longitude and zoom into tile in x and y axis referencing http : // www . cnblogs . com / Tangf / archive / 2012 / 04 / 07 / 2435545 . html
comment: """
      convert latitude, longitude and zoom into tile in x and y axis
      referencing http://www.cnblogs.com/Tangf/archive/2012/04/07/2435545.html
  
      Keyword arguments:
      lat_deg -- latitude in degree
      lng_deg -- longitude in degree
      zoom    -- map scale (0-18)
  
      Return two parameters as tile numbers in x axis and y axis
      """