17
Views
6
Comments
Solved
Making google places api call and parsing the response
Question

I need to make a call to google places api using client action to compare address details of entities in my excel file with the address google provides.

This is the URL I am using: https://maps.googleapis.com/maps/api/place/textsearch/json?query={query}&key={key}.

Here 'query' is the address that I have stored locally.

So, I consumed the rest API and used the get method on the URL. How do I parse the response?

2018-08-27 08-29-35
Fábio Vaz
Solution

Go to the Test Tab

Test it and then Copy to response body

2018-08-27 08-29-35
Fábio Vaz

Hello,

Can you explain how you consume the API?

Give more detail please, Outsystems do the parse "by default"  when we consume the API:

UserImage.jpg
Agamdeep Jammu

It did not generate a structure or parse anything, I clicked consume rest api and added a single method. It only asked for a url.

2023-08-28 07-00-10
Paulo Torres
Champion

As @Fábio Vaz said, consuming by Outsystems you will have a structure ready-made.

UserImage.jpg
Agamdeep Jammu

It did not generate a structure, I clicked consume rest api and added a single method. It only asked for a url.

2018-08-27 08-29-35
Fábio Vaz
Solution

Go to the Test Tab

Test it and then Copy to response body

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.