I have the path data labeled tabel_roads, I want to find the nearest road using coordinates. this is the script I have, but it does not work.
select id from tabel_roads ORDER BY geom <-> st_makepoint(-6.1688009873927925,106.8256151676178) LIMIT 1
ST_MakePoint,xis longitude,yis latitude - switch the ordinates! – geozelot Jun 06 '18 at 08:40