There's a spatial table in Postgis with polygon geometry, a column with id and a column with the needed value. There are several users who input points in a website
The coordinates of these points fall within a certain polygon in this table, the website needs the values from the polygon table.
In other words, the input would be lat, lon. And the output would be a 5 letter value reference.
Is it possible for Geoserver to return this value reference? and if so how to do it? Or is it better to build a function on the database?