Show List of Cities based on Country

Ok so this is actually way easier than I thought :grinning_face_with_smiling_eyes:

Google-Places-API-Cities
All I have done is configure the Google Places API and then on the page itself put an input box and a repeating group.

The repeating group uses the API as a data source and feeds in whatever is in the input as a parameter, so of course, whenever you change what’s in the input box it’ll automatically trigger the API to fetch new results

API

Here is the GET request: https://maps.googleapis.com/maps/api/place/autocomplete/json?input=[input]&types=(cities)&key=[key]

You will need to ensure you have an API key from Google that has the relevant permissions. And if you want to alter this to show something other than cities then you can read this documentation. It’s really easy to modify this for loads of different use cases. Note: the URL shown in those boxes on the documentation is just one long URL broken into different lines. There’s no trickery :grinning:

Input Box

Repeating Group

Text Box in Repeating Group

Of course then you can set a workflow that when you click on the items within the repeating group you take that data and do whatever you want to do with it. Enjoy


Josh @ Support Dept
Helping no-code founders get unstuck fast :rocket:save hours, & ship faster with an expert :man_technologist: on-demand

6 Likes