I am using the Google Maps field in combination with the MB Geolocation extension. Since the API key is a required field in the Google Maps settings, I have added it both in the Google Maps field settings and in the Field Group “Address” settings.
I have also configured fields with the following IDs:
• lng
• lat
• street_address
• locality
These fields are set up to automatically populate data from Google Maps autocomplete. Additionally, I have created a text field and linked it in the “Address Field” option of the Google Maps field, which is also set as a required field.
The API key itself is functioning correctly.
However, I have encountered an issue:
- When the API key is added to both the Google Maps field settings and the Field Group settings, the lng and lat fields work correctly. However, the address autocomplete feature does not function. When I move the pointer on the map, I receive live updates for the lng and lat fields, which is exactly what I want.
- When the API key is added only to the Google Maps field settings, the address autocomplete works, but the lng and lat fields do not populate.
My ultimate goal is:
I want to use the autocomplete feature for the initial data population. After that, I would like to manually adjust the data, and finally, move the pointer on the map to the exact location so it remains there. While Google Maps data is helpful, it is often inaccurate in my country, so I need the ability to fine-tune the data manually.
Thank you in advance for your help!