I have a table of pgrouting nodes, structured like this:
CREATE TABLE ways_vertices_pgr
(
id bigserial NOT NULL,
cnt integer,
chk integer,
ein integer,
eout integer,
the_geom geometry(Point,4326),
CONSTRAINT ways_vertices_pgr_pkey PRIMARY KEY (id)
)
PGrouting requires the node id, before it can route in-between two locations. My Input are two points(i.e. with Lat & long).
How do I get the node id from the Lat-long? How do I select the closest node?