La classe Place fornisce un'API per l'utilizzo della libreria Places e supporta pattern di utilizzo moderni come le promesse.
Con la classe Place, puoi creare funzionalità basate sulla posizione nella tua
app e rendere disponibili dati sulla posizione dettagliati per i tuoi utenti tramite una funzionalità di ricerca intelligente
che puoi personalizzare in base alle tue esigenze. I dati del servizio Places sono uno dei modelli di luoghi del mondo reale più precisi, aggiornati e completi.
Cosa puoi fare con la classe Place
La classe Place ha le seguenti funzionalità:
Cercare luoghi
Text Search (New)
ti consente di cercare dati sui luoghi utilizzando una query di testo.
Completamento automatico dei luoghi
fornisce alla tua app lo stesso comportamento di ricerca predittiva del campo di ricerca di Google Maps.
Recuperare i dati dei luoghi
Dettagli del luogo (nuovo)
fornisce informazioni dettagliate sui luoghi, tra cui riepilogo del testo, orari di apertura, indirizzo,
recensioni degli utenti, foto e altro ancora.
Foto del luogo fornisce l'accesso a
immagini fotografiche di alta qualità dal database Places.
[null,null,["Ultimo aggiornamento 2025-08-31 UTC."],[[["\u003cp\u003eThe Google Maps Places JavaScript library provides tools to search for places using text, proximity, or autocomplete, and retrieve details like photos, reviews, and operating hours.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage the Place class and modern usage patterns, such as Promises, to create location-aware features and access comprehensive place data.\u003c/p\u003e\n"],["\u003cp\u003eThe Places service offers highly accurate, up-to-date, and extensive data representing real-world locations.\u003c/p\u003e\n"],["\u003cp\u003eGet started with the Place class to integrate powerful place search and data retrieval into your JavaScript application.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/maps/documentation/places/android-sdk/overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/places/ios-sdk/overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/place \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/places/web-service/overview \"View this page for the Web Service platform docs.\") \n**European Economic Area (EEA) developers** If your billing address is in the European Economic Area, effective on 8 July 2025, the [Google Maps Platform EEA Terms of Service](https://cloud.google.com/terms/maps-platform/eea) will apply to your use of the Services. Functionality varies by region. [Learn more](/maps/comms/eea/faq).\n\nOverview\n\nThe Place class provides an API for using the Places library,\nand supports modern usage patterns such as [Promises](/maps/documentation/javascript/promises).\nWith the Place class, you can create location-aware features in your\napp and make detailed location data available to your users through an intelligent search feature\nyou customize to your needs. The data from the Places service is one of the most accurate,\nup-to-date, and comprehensive place models of the real world.\n\nWhat you can do with the Place class\n\nThe Place class has following features:\n\nSearch for places\n\n- [Text Search (New)](/maps/documentation/javascript/place-search) lets you search for place data using a text query.\n- [Nearby Search (New)](/maps/documentation/javascript/nearby-search) lets you search for nearby places by place type.\n- [Place Autocomplete](/maps/documentation/javascript/place-autocomplete-overview) provides your app with the same type-ahead-search behavior of the Google Maps search field.\n\nGet place data\n\n- [Place Details (New)](/maps/documentation/javascript/place-details) provides detailed information about places, including text summary, operating hours, address, user reviews, photos, and more.\n- [Place Photos](/maps/documentation/javascript/place-photos) provides access to high-quality photographic images from the Places database.\n- [Place Reviews](/maps/documentation/javascript/place-reviews) provides access to place reviews and ratings.\n\n**Next step:** [Get started](/maps/documentation/javascript/place-get-started)"]]