I fixed the templates to work with 2.3. But the JavaScript is a mess. (I hate JavaScript with a passion.)
Here are the warnings from the console:
As of March 1st, 2025, google.maps.places.Autocomplete is not available to new customers. Please use google.maps.places.PlaceAutocompleteElement instead. At this time, google.maps.places.Autocomplete is not scheduled to be discontinued, but google.maps.places.PlaceAutocompleteElement is recommended over google.maps.places.Autocomplete. While google.maps.places.Autocomplete will continue to receive bug fixes for any major regressions, existing bugs in google.maps.places.Autocomplete will not be addressed. At least 12 months notice will be given before support is discontinued. Please see https://developers.google.com/maps/legacy for additional details and https://developers.google.com/maps/documentation/javascript/places-migration-overview for the migration guide.
Also:
Google Maps JavaScript API has been loaded directly without loading=async. This can result in suboptimal performance. For best-practice loading patterns please see https://goo.gle/js-api-loading
Error:
Invalid place type: regions
The absolute worst part of this is having to poke through Google's mind-numbingly obtuse and confusing cloud dashboard to dig down and try to find any of this nonsense. Rather than using Places API, we're now supposed to be using Places API (New). And I wasted an hour digging through their finding absolutely no way to use this with a URL as we're doing right now. Instead, piles of code. Google searches do no good.
All I want is the old Autocomplete with regions. That's it. Nobody seems to know how to do this apparently.