Class Place menyediakan API untuk menggunakan library Places, dan mendukung pola penggunaan modern seperti Promises.
Dengan class Place, Anda dapat membuat fitur yang mengetahui lokasi di aplikasi dan menyediakan data lokasi yang mendetail kepada pengguna melalui fitur penelusuran cerdas yang Anda sesuaikan dengan kebutuhan Anda. Data dari layanan Places adalah salah satu model tempat di dunia nyata yang paling akurat, terbaru, dan komprehensif.
Yang dapat Anda lakukan dengan class Place
Class Place memiliki fitur berikut:
Menelusuri tempat
Text Search (Baru)
memungkinkan Anda menelusuri data tempat menggunakan kueri teks.
Nearby Search (Baru)
memungkinkan Anda menelusuri tempat terdekat menurut jenis tempat.
Place Autocomplete
memberi aplikasi Anda fitur prediksi penelusuran dari kolom penelusuran Google Maps.
Mendapatkan data tempat
Place Details (Baru)
memberikan informasi mendetail tentang tempat, termasuk ringkasan teks, jam buka, alamat,
ulasan pengguna, foto, dan lainnya.
Foto Tempat memberikan akses ke
gambar fotografi berkualitas tinggi dari database Places.
Ulasan Tempat memberikan akses ke
ulasan dan rating tempat.
[null,null,["Terakhir diperbarui pada 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)"]]