Get nearest node following segment

المشرف العام

Administrator
طاقم الإدارة
I am trying to get the nearest node from a point(Id 1) . The coordinates (lat/long) are input by an user . I am using some functions like pgr_nearest_node() or get_nearest_node() from get_nearest_node function reference

1: http://www.sqlexamples.info/SPAT/postgis_nearest_point.htm. The Problem Is that the point take the nearest node using straight line between them(928-3670-317-929 Id nodes). How can i get the nearest node in the network ? . I am thinking about to use pgr_dijkstra function but it need to a source id so i return to functions commented before.





أكثر...
 
أعلى