Uncaught ReferenceError: google is not defined when trying to use Google Places API without a map

From my reading, async and defer aren’t meant to be used at the same time. While your <script> that loads the API from google is deferred, your <script> with your code is not deferred. (If you remove async and defer your code works, but is theoretically slower.) If you defer your code execution until the document is loaded (and the google api instantiated), then your code should … Read more

How to get all place details from a Place Details Request using Google Places API Web Service?

The phone number is missing in the Google Places API because Google Maps doesn’t have a phone number for that particular place. If you request the details for a place with a phone number on Google Maps, it will be returned. Take a closer look at ChIJ8UadyjeuEmsRDt5QbiDg720. It’s an office building called “Workplace 6” — notice … Read more