parameters: (xy)
return_statement: return (lon, lat)
docstring: Given coordinates in spherical mercator, return a lon,lat tuple.
docstring_summary: Given coordinates in spherical mercator, return a lon,lat tuple.
docstring_tokens: Given coordinates in spherical mercator return a lon lat tuple .
function: def inverse_mercator(xy):
      """
      Given coordinates in spherical mercator, return a lon,lat tuple.
      """
      lon = (xy[0] / 20037508.34) * 180
      lat = (xy[1] / 20037508.34) * 180
      lat = 180 / math.pi * (2 * math.atan(math.exp(lat * math.pi / 180)) - math.pi / 2)
      return (lon, lat)
function_tokens: def inverse_mercator ( xy ) : lon = ( xy [ 0 ] / 20037508.34 ) * 180 lat = ( xy [ 1 ] / 20037508.34 ) * 180 lat = 180 / math . pi * ( 2 * math . atan ( math . exp ( lat * math . pi / 180 ) ) - math . pi / 2 ) return ( lon , lat )