Places UI Kit
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คลังคอมโพเนนต์ของ Places UI Kit ช่วยให้คุณนำประสบการณ์ของผู้ใช้ Google Maps ที่คุ้นเคยสำหรับ
สถานที่ต่างๆ มายังแอปและหน้าเว็บได้ โดยใช้ข้อมูลเดียวกันกับที่ขับเคลื่อน Places API ซึ่งประกอบด้วย
ชุดคอมโพเนนต์ UI แต่ละรายการที่ใช้แยกกัน ร่วมกัน และใช้ร่วมกับ
API อื่นๆ ของแพลตฟอร์ม Google Maps เพื่อมอบประสบการณ์เกี่ยวกับสถานที่ที่สมบูรณ์โดยมีค่าใช้จ่ายและโค้ดน้อยที่สุด
UI Kit ของ Places มีองค์ประกอบ HTML ต่อไปนี้สำหรับการแสดงข้อมูล Places
องค์ประกอบรายละเอียดสถานที่
(รายละเอียดสถานที่และรายละเอียดสถานที่แบบย่อ) แสดงรายละเอียดต่างๆ เช่น เวลาทําการ เว็บไซต์ และ
รีวิวของสถานที่ที่เลือก
องค์ประกอบการค้นหาสถานที่
(การค้นหาสถานที่ใกล้เคียงและการค้นหาสถานที่ด้วยข้อความ) แสดงรายการสถานที่เพื่อตอบสนองต่อคำค้นหา
การค้นหาใกล้เคียงหรือการค้นหาด้วยข้อความ
องค์ประกอบการเติมข้อความอัตโนมัติของสถานที่พื้นฐาน
แสดงช่องป้อนข้อความ ให้คำแนะนำเกี่ยวกับสถานที่ในรายการเลือก UI และแสดงรหัสสถานที่
สำหรับสถานที่ที่เลือก
ระดับความสูง (ทดลอง)
แสดงข้อมูลระดับความสูงเป็นค่าตัวเลขสำหรับจุดเดียว หรือเป็นแผนภาพสำหรับ
เส้นทาง
ฟีเจอร์และความสามารถหลัก
- ผสานรวมประสบการณ์การใช้งานที่เชื่อถือได้ของ Google โดยเริ่มจากโค้ดขั้นต่ำ
- นำ UI ของ Google Maps สำหรับสถานที่มาไว้ในแอปของคุณด้วยต้นทุนที่ต่ำกว่า Places API
- เลือกตัวเลือกข้อมูลและการแสดงผลที่เหมาะกับความต้องการของคุณมากที่สุด
การเรียกเก็บเงิน
ระบบจะเรียกเก็บเงินคำขอ Places UI Kit ตาม
อัตรา API ของ Places UI Kit เสมอ ไม่ว่าคำขอจะใช้วิธีการค้นหาใดหรือส่งคืนข้อมูลประเภทใด
ก็ตาม เช่น การค้นหาใกล้เคียงใน Places UI Kit จะไม่มีค่าใช้จ่ายเพิ่มเติมสำหรับการค้นหาใกล้เคียงใน Places API Pro
ในทำนองเดียวกัน คำขอรายละเอียดสถานที่ของ Places UI Kit อาจแสดงรูปภาพ ราคา และคะแนนของสถานที่ที่เลือก แต่ระบบจะเรียกเก็บเงินจากคุณสำหรับคำขอรายละเอียดสถานที่ของ Places UI Kit เท่านั้น
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-29 UTC
[null,null,["อัปเดตล่าสุด 2025-08-29 UTC"],[[["\u003cp\u003eThe Places UI Kit offers pre-built UI components for integrating Google Maps Places functionality into your apps and web pages.\u003c/p\u003e\n"],["\u003cp\u003eIt includes components like Place Details, Place List, and Elevation for displaying place information and elevation data.\u003c/p\u003e\n"],["\u003cp\u003eThis kit is cost-effective compared to the Places API and allows customization of data and display options.\u003c/p\u003e\n"],["\u003cp\u003eThis product or feature is currently in the Experimental (pre-GA) phase, which means it has limited support and potential for incompatibility.\u003c/p\u003e\n"]]],[],null,["Select platform: [Android](/maps/documentation/places/android-sdk/places-ui-kit-overview \"View this page for the Android platform docs.\") [iOS](/maps/documentation/places/ios-sdk/places-ui-kit-overview \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/places-ui-kit/overview \"View this page for the JavaScript platform docs.\")\n\n\nThe Places UI Kit component library lets you bring the familiar Google Maps user experience for\nPlaces to your apps and web pages, using the same data that powers the Places API. It includes a\nset of individual UI components that can be used independently, together, and in conjunction with\nother Google Maps Platform APIs to deliver a Places-rich experience with minimal cost and code.\n\n\nThe Places UI Kit includes the following HTML elements for rendering Places data:\n- [Place Details Elements](/maps/documentation/javascript/places-ui-kit/place-details) (Place Details and Place Details Compact) render details such as opening hours, website, and reviews for a selected place.\n- [Place Search Elements](/maps/documentation/javascript/places-ui-kit/place-list) (Place Nearby Search and Place Text Search) render a list of places in response to either a nearby search or text search query.\n- [Basic Place Autocomplete Element](/maps/documentation/javascript/places-ui-kit/basic-autocomplete) renders a text input field, supplies place predictions in a UI pick list, and returns a place ID for the selected place.\n- [Elevation](/maps/documentation/javascript/places-ui-kit/elevation) (experimental) renders elevation data as a numerical value for a single point, or as a visual plot for a path.\n| **Tip:** The Places UI Kit offers extensive visual customization options at no extra charge. See [Places UI Kit Custom Styling](/maps/documentation/javascript/places-ui-kit/custom-styling) for more information.\n\nKey features and capabilities\n - Incorporate Google's trusted experience starting with minimal code.\n - Bring Google Maps UI for Places to your apps at a lower cost than the Places API.\n - Choose the data and display options that best suit your needs.\n\nBilling\n- Places UI Kit requests are always billed at the [Places UI Kit API rate](/maps/billing-and-pricing/sku-details#places_ui-kit-request-ess-sku), regardless of which search method they use or what data types they return. For example, a Places UI Kit Nearby Search won't incur any additional charges for Places API Nearby Search Pro. Similarly, a Places UI Kit Place Details request may return photos, price, and rating for a selected place, but you will only be billed for the Places UI Kit Place Details request.\n\nNext step:\n[Get started with the Places UI Kit](/maps/documentation/javascript/places-ui-kit/get-started)"]]