AdvancedCustomFields / AdvancedCustomFields/acf
New Google Maps Places API not supported
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Google Map field type shows This API project is not authorized to use this API. Places API error: ApiNotActivatedMapError when trying to search for address
To Reproduce
- Go to Map field type
- Click on 'Search for address' input field
- Type anything
- See error
Expected behavior
Expecting an address autocomplete suggestions
Code
{ "key": "field_67cc6e723b42d", "label": "Latitude and Longitude", "name": "latitude_and_longitude", "aria-label": "", "type": "google_map", "instructions": "", "required": 0, "conditional_logic": 0, "wrapper": { "width": "", "class": "", "id": "" }, "center_lat": "39.82969643112383", "center_lng": "-98.5791350902826", "zoom": 4, "height": "", "allow_in_bindings": 0, "show_in_graphql": 1, "graphql_description": "", "graphql_field_name": "latitudeAndLongitude", "graphql_non_null": 0, "parent_repeater": "field_67cc6a5b3b422" },
Version Information:
- WordPress Version 6.7.2
- PHP Version 8.2
- ACF PRO 6.3.12
- Any Browser
Additional context
It's not possible to activate legacy Places API service on Google, so until this is fixed new API keys won't support Map field type fully.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Google Map field type and its address autocomplete integration, using the reproduction steps with a new Google API key. Verify the Places API error and compare the current integration with the new Google Maps Places API; done means address autocomplete suggestions work without the ApiNotActivatedMapError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100