Security notice: We have become aware of a security issue that may be affecting websites using specific third-party libraries (including polyfill.io). This issue can sometimes redirect visitors away from the intended website without website owner knowledge or permission. Many of our JavaScript samples previously included a polyfill.io script declaration. We have removed this from our samples. If you have used our JavaScript samples that contain this declaration, we recommend removing the declaration.
Announcement: New basemap styling is coming soon to Google Maps Platform. This update to map styling includes a new default color palette, modernized pins, and improvements to map experiences and usability. All map styles will be automatically updated in March 2025. For more information on availability and how to opt in earlier, see New map style for Google Maps Platform.
The Place class provides an API for using the Places library,
and supports modern usage patterns such as Promises.
With the Place class, you can create location-aware features in your
app and make detailed location data available to your users through an intelligent search feature
you customize to your needs. The data from the Places service is one of the most accurate,
up-to-date, and comprehensive place models of the real world.
What you can do with the Place class
The Place class has following features:
Search for places
Text Search (New)
lets you search for place data using a text query.