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.
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.
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!