ST_Y is a PostGIS function that returns the Y coordinate of a point geometry. Together with ST_X, it extracts coordinates for queries and downstream formatting. section 10.5.1
Generate an OpenStreetMap URL
WITH tampa_city_point AS (\n SELECT ST_Transform(way, 4326) AS coordinate\n FROM florida.planet_osm_point\n WHERE name = 'Tampa' AND place = 'city'\n)\nSELECT 'https://www.openstreetmap.org/?mlat=' ||\n ST_Y(coordinate) || '&mlon=' || ST_X(coordinate) AS osm_url\nFROM tampa_city_point;\n\nResult: https://www.openstreetmap.org/?mlat=27.947759499952074&mlon=-82.458444
