Place Search
Places API ช่วยให้คุณค้นหาข้อมูลสถานที่ได้โดยใช้หมวดหมู่ต่างๆ ซึ่งรวมถึงสถานประกอบการ จุดที่น่าสนใจ และสถานที่ทางภูมิศาสตร์ คุณสามารถค้นหาสถานที่ตามบริเวณใกล้เคียงหรือสตริงข้อความก็ได้ การค้นหาสถานที่จะแสดงรายการสถานที่พร้อมกับข้อมูลสรุปเกี่ยวกับสถานที่แต่ละแห่ง โดยคุณดูข้อมูลเพิ่มเติมได้โดยใช้การค้นหารายละเอียดสถานที่
เปรียบเทียบประเภทการค้นหา
มีปลายทางการค้นหา 3 รายการที่มีลักษณะแตกต่างกัน ตารางต่อไปนี้จะไฮไลต์ความแตกต่างบางส่วน
การเลือกช่อง
คุณไม่สามารถจํากัดการค้นหาในพื้นที่หรือการค้นหาข้อความให้แสดงเฉพาะบางช่องได้ หากไม่ต้องการขอ (และชำระเงินสำหรับ) ข้อมูลที่คุณไม่ต้องการ ให้ใช้คำขอค้นหาสถานที่แทน
ข้อความที่ไม่ชัดเจน
ฟีเจอร์ค้นหาสถานที่และการค้นหาข้อความได้รับการเพิ่มประสิทธิภาพให้จับคู่ข้อความที่คลุมเครือในช่องต่างๆ ขณะที่การค้นหาใกล้เคียงจะจำกัดการจับคู่ที่ตรงกันทั้งหมดในช่องบางส่วน
ตัวกรองเพิ่มเติม
การค้นหาในพื้นที่และการค้นหาข้อความอนุญาตให้ใช้พารามิเตอร์เพิ่มเติมเพื่อกรองผลลัพธ์ (เช่น minprice
, maxprice
, opennow
และ type
)
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-02-28 UTC
[null,null,["อัปเดตล่าสุด 2025-02-28 UTC"],[[["The Places API allows you to search for places using categories like establishments, points of interest, and geographic locations by proximity or text string."],["You can utilize the Places API with various platforms, including JavaScript, Web Service, and client libraries for server-side applications."],["For client-side development, consider the Places SDK for Android, iOS, and the Places Library for the Maps JavaScript API."],["Three search endpoints are available: Find Place, Nearby Search, and Text Search, each with unique characteristics like field selection and ambiguous text handling."],["Nearby Search and Text Search offer additional filters such as `minprice`, `maxprice`, `opennow`, and `type` to refine results."]]],["The Places API allows searching for places using categories, proximity, or text strings, returning a list with summary information. Three search endpoints are available: Find Place, Nearby Search, and Text Search. Find Place uses `input` and is best for specific field requests. Text Search uses `query` and Nearby Search uses `keyword`. Text Search and Find place are optimized for ambiguous text. Nearby search and text search can be filtered using parameters like `minprice` or `opennow`. The API is intended for server-side applications.\n"]]