Question

calculate the distance between points base on the road line on each side

  • 4 December 2019
  • 3 replies
  • 10 views

Badge

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


3 replies

Userlevel 4

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.

Userlevel 2
Badge +12

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.

Badge +3

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