Produk atau fitur ini memiliki status Lama. Untuk informasi selengkapnya tentang status Lama, lihat
Produk dan fitur lama. Untuk bermigrasi ke Places API (Baru), lihat
Panduan migrasi.
Place Search
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Developer Wilayah Ekonomi Eropa (EEA)
Places API memungkinkan Anda menelusuri informasi tempat menggunakan berbagai kategori, termasuk tempat usaha, lokasi menarik terkemuka, dan lokasi geografis. Anda dapat menelusuri tempat berdasarkan jarak atau string teks. Place Search menampilkan daftar tempat beserta
informasi ringkasan tentang setiap tempat; informasi tambahan tersedia menggunakan
kueri Place Details (Legacy).
Membandingkan jenis penelusuran
Ada tiga endpoint penelusuran yang tersedia dengan karakteristik yang berbeda. Tabel berikut
menyoroti beberapa perbedaan ini.
Pemilihan kolom
Tidak ada cara untuk membatasi Nearby Search (Lama) atau Text Search (Lama) agar hanya menampilkan kolom tertentu. Agar tidak meminta (dan membayar) data yang tidak Anda perlukan, gunakan permintaan Find Place (Lama).
Teks ambigu
Find Place (Lama) dan Text Search (Lama) dioptimalkan untuk mencocokkan teks ambigu di sejumlah kolom, sedangkan Nearby Search (Lama) dibatasi untuk kecocokan ketat pada sebagian kolom.
Filter tambahan
Nearby Search (Lama) dan Text Search (Lama) mengizinkan parameter tambahan untuk memfilter hasil,
(misalnya, minprice
, maxprice
, opennow
, dan type
).
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-31 UTC.
[null,null,["Terakhir diperbarui pada 2025-08-31 UTC."],[],[],null,["# Place Search\n\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**Note: Server-side\nand client-side libraries**\n\nThe Places API is also available with the\n[Java Client,\nPython Client, Go Client and Node.js Client for Google Maps Services](/maps/documentation/places/web-service/client-library).\nThe Places API and the client libraries are for\nuse in server applications.\n\nIf you're building a client-side\napplication, take a look at the\n[Places SDK for Android (New)](/maps/documentation/places/android-sdk), the\n[Places SDK for iOS (New)](/maps/documentation/places/ios-sdk), and the\n[Places Library, Maps JavaScript API](/maps/documentation/javascript/places).\n\nThe Places API lets you search for place information\nusing a variety of categories, including establishments, prominent points of\ninterest, and geographic locations. You can search for places either by\nproximity or a text string. A Place Search returns a list of places along with\nsummary information about each place; additional information is available using\na [Place Details (Legacy)](/maps/documentation/places/web-service/details) query.\n\nCompare search types\n--------------------\n\nThere are three search endpoints available with different characteristics. The following table\nhighlights some of these differences.\n\n| Type | [Field selection](#field-selection) | Text Search (Legacy) | [Ambiguous text](#ambiguous-text) | Location filter | [Additional filters](#additional-filters) |\n|----------------------------------------------------------------------------------------|-------------------------------------|----------------------|-----------------------------------|-----------------|-------------------------------------------|\n| [Find Place (Legacy)](/maps/documentation/places/web-service/legacy/search-find-place) | | `input` | | | |\n| [Nearby Search (Legacy)](/maps/documentation/places/web-service/legacy/search-nearby) | | `keyword` | | | |\n| [Text Search (Legacy)](/maps/documentation/places/web-service/legacy/search-text) | | `query` | | | |\n\n### Field selection\n\nThere is no way to constrain Nearby Search (Legacy) or Text Search (Legacy) to only return specific fields. To\nkeep from requesting (and paying for) data that you don't need, use a Find Place (Legacy) request instead.\n\n### Ambiguous text\n\nFind Place (Legacy) and Text Search (Legacy) are optimized for matching ambiguous text across a number of fields\nwhile Nearby Search (Legacy) is constrained to strict matches on a subset of fields.\n\n### Additional filters\n\nNearby Search (Legacy) and Text Search (Legacy) allow additional parameters to filter results,\n(e.g. `minprice`, `maxprice`, `opennow`, and `type`)."]]