Skip to main content

Hi everyone,

 

I'm trying to receive the itinerary from a private website to my fme workbench. As you can see in the image below, the user enter the the starting and ending point. After, they click the ASPVHN button, which start the workflow of my fme workbench which display data. We are currently able to push the data to the website. But, i'm not able to retreive the coordinate from custom itinerary. The GEOJSON link that I'm using is also below. From what I was able to read, I need to make a webhook. Anybody can point me in the right direction?

 

Thank you.

This is the start of my fme workbench. My HTTPCaller is set to get.


I'm not quite sure why you'll need a webhook, it seems like a GET https://geoegl.msp.gouv.qc.ca/services/itineraire/route/v1/driving/-73.535056,45.523849;-71.295712,46.715801?geometries=geojson&overview=full will return the JSON describing the route. To me it looks mostly like you'll need to parse the JSON to get the result in whatever format you need.

Or maybe I'm misunderstanding something?


I'm not quite sure why you'll need a webhook, it seems like a GET https://geoegl.msp.gouv.qc.ca/services/itineraire/route/v1/driving/-73.535056,45.523849;-71.295712,46.715801?geometries=geojson&overview=full will return the JSON describing the route. To me it looks mostly like you'll need to parse the JSON to get the result in whatever format you need.

Or maybe I'm misunderstanding something?

Yes it will describe the route, i but need the coordinate to change the to user demand. The JSON you link was just a sample to test my workbench. Like, I need that JSON to update everytime the user ask for a different route automatically.


Yes it will describe the route, i but need the coordinate to change the to user demand. The JSON you link was just a sample to test my workbench. Like, I need that JSON to update everytime the user ask for a different route automatically.

@david_r​ is right, all it needs to be is a GET request. That url you're calling, in the workbench, you need to place the chosen start/end points in the url. Something to the effect of:

https://geoegl.msp.gouv.qc.ca/services/itineraire/route/v1/driving/@Value(StartPair);@Value(EndPair)?geometries=geojson&overview=full


Reply