Home › Forums › ACF PRO › ACF Pro Address Field Replacement › Reply To: ACF Pro Address Field Replacement
Hi guys
I’ve just been running some ideas over the google map field on how to allow extra data to be saved with no luck.
The data that Google provides about a ‘place’ is not consistent and not formatted in a way that can be used very well.
Please note there is a JS action available called ‘google_map_change’ which sends through the map and map marker objects each time the map is changed.
Info here: https://www.advancedcustomfields.com/resources/adding-custom-javascript-fields/
This could be used to lookup map marker data and then create extra hidden inputs to save the data quite easily. The issue is I can’t see how to easily obtain place data from google in all scenarios:
1. Search for an address
2. Search for lat/lng
3. Drag drop / click to place marker
Please try out the JS action and let me know what you find.
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.