Skip to main content
Question

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

  • December 4, 2019
  • 3 replies
  • 93 views

mehar
Participant
Forum|alt.badge.img+2

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

david_r
Celebrity
  • December 4, 2019

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.


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • December 4, 2019

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.


bwn
Evangelist
Forum|alt.badge.img+26
  • Evangelist
  • December 5, 2019

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.