https://developers.google.com/maps/documentation/places/web-...
You could use an LLM to pick the right API.
which is, of course, what i mean by "how does it work"