I'm doing the following query to get the distance between two points with pgrouting:
SELECT
sum(cost) AS cost
FROM pgr_dijkstra(
'SELECT id, source, target, km as cost FROM at_2po_4pgr',
50347, 32988, false, false
);
It turns out that the source and destination comes from nominatim geocode coordinates in, and I do not know how to use the coordinates as parameter in sql.
Can anyone help me?