Skip to main content

Hi @takashi

i am totally confused how to calculate the distance between the points of stations

i have tried the neighbor finder but didnt got the result what i am looking

can anyone tell me or help me to finish my task

1- side of the point

2- distance between the points (based on the roads line)

FILES

If you have proper a proper road topology (e.g. using the TopologyBuilder), you can project each station onto the closest highway segment and then use the ShortestPathFinder to calculate the distance between the petrol stations. That would give you the driving distance between stations.


For the calculation of the side of the road you can use the LeftRightSpatialCalculator transformer.

Then you should be able to use the NeighborFinder (group by the side of the road) or use the option mentioned by @david_r

Hope this helps.


If you have proper a proper road topology (e.g. using the TopologyBuilder), you can project each station onto the closest highway segment and then use the ShortestPathFinder to calculate the distance between the petrol stations. That would give you the driving distance between stations.

Was thinking similarly ShortestPathFinder for a topologically connected road, or otherwise use LengthToPointCalculator.


Reply