Input Field: Address Autocomplete with Google Maps in Editor X

Thanks for this, it’s been really helpful for what I’ve needed.
My problem is slightly different, in that I’m using a different external API (not Google) to get address details, then displaying them in the repeater. The API I’m using returns 3 fields - address, city and postal code. I’m displaying this in the repeater text like so (using basic javascript):
address, city, postal code
However, when the user selects an option from my repeater dropdown, I want three different inputs to be populated - one with the address, one with the city, one with the postal code. Currently, it’s putting all of that text ( address, city, postal code) into the “Address” input and the other two are blank.
Any ideas how I can get this to work?