Skip to main content
Question

Route from several points in one workbench?


Forum|alt.badge.img+1

Hello! I've been working on a project for a few weeks now and finally got a good enought network. Now I want to calculate the distance from every school to every adress point. This is to later create polygons from set distances.

 

Is it possiable to do this in the same shortest path finder? I've been looking at list but can't figure out how to do it. Can anyone help me?

 

I have attached my workbench and the data.

 

Best regards

Jesper

12 replies

redgeographics
Celebrity
Forum|alt.badge.img+50

This should be possible, if you create a separate From-To line for every school/address point combination. If you want to create drivetime polygons you might want to consider the NetworkCostCalculator instead. It does sound like performance might be a key factor here.


Forum|alt.badge.img+1
  • Author
  • April 22, 2022
redgeographics wrote:

This should be possible, if you create a separate From-To line for every school/address point combination. If you want to create drivetime polygons you might want to consider the NetworkCostCalculator instead. It does sound like performance might be a key factor here.

I need to route 2000, 3000, 5000 meter from each school. I have a total of 55 schools. It's not possiable to loop somehow and make one analyze per school automatic?


Forum|alt.badge.img+2

@flugan87​ Can you confirm whether you want the shortest paths form every school to every address or whether you want the drive time polygons of 2000,3000,5000 meters? Thx


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • April 22, 2022

I think the answer will be in editing your "FromToBuilder" transformer. You will need to create an additional parameter to choose between all schools or single schools. I've attached the workbench for what I believe will work. The FeatureMerger will allow you to get the x,y for all schools into a list. Then exploding the list afterwards will get a From-To line from every school to every address.

 

imageimage


Forum|alt.badge.img+1
  • Author
  • April 25, 2022
dustin wrote:

I think the answer will be in editing your "FromToBuilder" transformer. You will need to create an additional parameter to choose between all schools or single schools. I've attached the workbench for what I believe will work. The FeatureMerger will allow you to get the x,y for all schools into a list. Then exploding the list afterwards will get a From-To line from every school to every address.

 

imageimage

Hello

Thank you for taking the time to answer my question!

Will try this solution but where can I find the attached workbench?

 

Best regards

Jesper


Forum|alt.badge.img+1
  • Author
  • April 25, 2022
markatsafe wrote:

@flugan87​ Can you confirm whether you want the shortest paths form every school to every address or whether you want the drive time polygons of 2000,3000,5000 meters? Thx

what I need to do is calculate how far you get from the schools with the distances 2000, 3000, 5000 meters. This will mean that the surfaces will overlap. So there is total distance from each school with these parameters.

 

best regards

Jesper


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • April 25, 2022
flugan87 wrote:

Hello

Thank you for taking the time to answer my question!

Will try this solution but where can I find the attached workbench?

 

Best regards

Jesper

Sorry, I meant the screen shot of the workbench.


hanskoudijs
Forum|alt.badge.img

Probably the attached zip (workbench and sample data) will help you. It's a workbench finding the shortest route on a given network from adresses to a POI 9e.g. a school).


Forum|alt.badge.img+1
  • Author
  • April 26, 2022
flugan87 wrote:

Hello

Thank you for taking the time to answer my question!

Will try this solution but where can I find the attached workbench?

 

Best regards

Jesper

Okej I understand! Looks promising. How do you set up the parameter "all schools"? Looks like a good solution but can't figure out how to create this user parameter.

 

This will be very useful to know in this project and projects to come.

 

/Jesper


dustin
Influencer
Forum|alt.badge.img+31
  • Influencer
  • April 26, 2022
flugan87 wrote:

Hello

Thank you for taking the time to answer my question!

Will try this solution but where can I find the attached workbench?

 

Best regards

Jesper

In the Navigator panel, you will see User Parameters. Right click, and depending on which version of FME you are working in, choose Manage User Parameters or Create User Parameter.


Forum|alt.badge.img+1
  • Author
  • April 27, 2022
flugan87 wrote:

Hello

Thank you for taking the time to answer my question!

Will try this solution but where can I find the attached workbench?

 

Best regards

Jesper

Yeah I know how to use the User Parameter in general. I meant how do I create a user parameter for all attributes?

I often use the parameter "choise" but then I create one choise for each attribute.

 

In the example you sent you somehow make the parameter "all schools" and that's whats im very intrestred how to use.


Forum|alt.badge.img+1
  • Author
  • April 27, 2022
hanskoudijs wrote:

Probably the attached zip (workbench and sample data) will help you. It's a workbench finding the shortest route on a given network from adresses to a POI 9e.g. a school).

Thank you for your answer and that you attached your workbench! But what I need to do is to find adresses that are witnin a distance from a school. The adress can be in serveral schools because it depands on what school they have choosen. So I need to somehow loop the school to run one by one and then find all addresses witin that school.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings