Correction: it should be buffer_in_meters.The function input is <lon>, <lat> and <buffer_in_meters>, output should be xmin, xmax, ymin, ymax.I can think of a way to get the AsText for the box, but I need xmin, xmax, ymin, ymax. how to get the xmin, xmax, ymin, ymax?SELECT ST_AsText(ST_Envelope(
ST_Transform(ST_Buffer(ST_Transform(SetSRID(ST_Point({lon}, {lat}), 4326), 3857),{buffer_in_meters}),4326))