How to get pin location in WIX

I am trying to implement a Google Map – So I can get the PIN location of users when they clicked on a button.
IDEA is that I will create a button “MY LOCATION” and have the address fields filled out.
I already have tried Wix input “address input” – https://bit.ly/3bNfC4K but it is not working in my case because It doesn’t give pin location.
It would be easier to have a locate me option automatically detect customers location
Welcome pointers from anyone who has implemented something similar.

This is all you will need to achieve your aim…
https://www.wix.com/velo/reference/wix-window/getcurrentgeolocation