Hi all,
I’m working with the Places Autocomplete to get a place_id, but I then want to make a follow up call to the Google Places API with the place_id to get an accurate address format for my specific purpose (I need the long and short names for country, state and city).
I have the follow up API call working, as a result of the place_id I get from the Wappler Places Autocomplete.
I get an array of data back from Google’s API.
within this, ther are a varying amount of data points depending on the location, but what remains constant is the ‘type’.
So, for example, country ‘type’ is country, and state is ‘administrative_area_level_1’.
What i’m struggling with, is I want to only return for example the country short name.
In Wappler the schema just displays as
And in the actual data returned:
What would/should I write, say using a Set Value in Server connect to return only the ‘short_name’ of array data as that has a ‘types’ of “country” only?
Last updated: