Hi all,
I'm building a flow that sends an API request via HTTP GET to google's maps API in order to get a trip duration from one destination to another.
Everything works so far, however when i get the response back from google i get the JSON in a schema that doesn't seem to let me select the particular property that I'm after.
What I'm trying to isolate is the duration_in_traffic element from the JSON. Can anyone help me out with this? I've tried PARSE JSON without success.
Here is the output from the HTTP request:
How can i get the value of 14 mins?
Thanks.
Solved! Go to Solution.
Hi!
I would try withthe following WDL expression
first(first(body('HTTP')?['rows'])?['elements'])?['duration']?['text']
Hope this helps
Proud to be a Flownaut!
Hi!
I would try withthe following WDL expression
first(first(body('HTTP')?['rows'])?['elements'])?['duration']?['text']
Hope this helps
Proud to be a Flownaut!
Thank you!
Worked perfectly
Muito obrigado
User | Count |
---|---|
95 | |
39 | |
25 | |
22 | |
16 |
User | Count |
---|---|
129 | |
51 | |
48 | |
35 | |
24 |