I am using a google API to auto-fill an address form. Right now i found code to fill out the full address, which auto-populates all of the fields in picture link #1 as shown. I have hidden the street number and route fields as they are not needed.
What i am looking for, is after i select the address, i want the address bar i was typing in to not display the city, state and country in that field bar. I want the auto-fill to look like what is shown in picture link #2, where the address field replaces the full address with only the number and street, and does not include the city, state, country. While typing i selected the address shown in picture link #3, and it autofills what is shown in picture link #2.
Does anyone know how to replace the full address with just the number & street after clicking on an address?
Picture Link #1: https://imgur.com/a/oCAAs4C
Picture Link #2: https://imgur.com/a/psaz3J4
Picture Link #3: https://imgur.com/a/xQMNjpy