Skip to main content
Question

is there any way i can calculate distance between points of gas station on highways on each side of road

  • December 4, 2019
  • 3 replies
  • 29 views

mehar
Participant
Forum|alt.badge.img+2
  • Participant
  • 8 replies

i have points for each gas stations on both side of highways and shape file of highways road network..

i want to caclulate the distance between gas stations on each side .. and side of gas station

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

becchr
Influencer
Forum|alt.badge.img+32
  • Influencer
  • 107 replies
  • December 4, 2019

hi @mehar if I understand your question well, the LeftRightSpatialCalculator is what you're looking for?

That can split your gas station dataset to a 'left' one and a 'right' one. Afterwards the NeighborFinder can get you the distances for each station of one side

Hope this gets you to the right direction?


mehar
Participant
Forum|alt.badge.img+2
  • Author
  • Participant
  • 8 replies
  • December 4, 2019

hi @mehar if I understand your question well, the LeftRightSpatialCalculator is what you're looking for?

That can split your gas station dataset to a 'left' one and a 'right' one. Afterwards the NeighborFinder can get you the distances for each station of one side

Hope this gets you to the right direction?

thanks @becchr , i tried leftrightcalculator but it didnot give me the accurate result,, also the distance i got from neighborfinder is in unknown units..

 


becchr
Influencer
Forum|alt.badge.img+32
  • Influencer
  • 107 replies
  • December 4, 2019

thanks @becchr , i tried leftrightcalculator but it didnot give me the accurate result,, also the distance i got from neighborfinder is in unknown units..

 

hi @mehar, for the first problem, you use one of the road sides as input? and the segments are all directed in the same direction?

 

for the second problem: seems you use unprojected data (geographical coordinates), there's a GeographicNeighborFinder on the hub or you can reproject your data first to a local coordinatesystem