Places API ช่วยให้คุณค้นหาและดึงข้อมูลสำหรับสถานที่ประเภทต่างๆ ได้โดยใช้สตริงข้อความหรือตามความใกล้เคียง Places API (เดิม) เป็นเวอร์ชันเดิมของ Places API (ใหม่)
ตารางต่อไปนี้แสดงเวอร์ชันที่เกี่ยวข้องของทั้ง 2 API ใช้คำแนะนำนี้เพื่อทำความเข้าใจความแตกต่างที่สำคัญระหว่างทั้ง 2 อย่างและย้ายข้อมูลไปยัง Places API (ใหม่)
ส่วนนี้จะครอบคลุมฟีเจอร์หลักๆ ที่เพิ่มลงใน Places API (ใหม่)
ใช้งานบนแพลตฟอร์มมาตรฐานของ Google Cloud
Places API (ใหม่) ได้รับการติดตั้งใช้งานในโครงสร้างพื้นฐานของบริการ
ใน Google Cloud การติดตั้งใช้งานนี้จะนำมาซึ่งแพลตฟอร์มที่ปลอดภัยและเชื่อถือได้มากขึ้น
พร้อมตัวเลือกด้านความปลอดภัยที่ได้รับการปรับปรุง เช่น
OAuth การออกแบบ API มาตรฐานนี้
จะช่วยให้ API มีความสอดคล้องกันในระดับหนึ่ง ซึ่งจะช่วยปรับปรุงประสิทธิภาพ
ของการพัฒนาด้วย Places API (ใหม่)
ประสิทธิภาพที่ดีขึ้น
Places API (ใหม่) มีประสิทธิภาพที่ดีขึ้น จึงคุ้มค่าที่จะ
แทนที่แอปที่ใช้ Places API ที่มีอยู่
ราคาที่เข้าใจง่าย
เราได้ปรับปรุงการกำหนดราคาด้วย Places API (ใหม่) เพื่อให้คุณชำระเงินเฉพาะ
ข้อมูลที่คุณใช้เท่านั้น การกำหนดราคาที่เข้าใจง่ายจะใช้ฟิลด์
มาสก์
API เดิมจะแสดงข้อมูลการตอบกลับที่แตกต่างกันสำหรับสถานที่หนึ่งๆ ใน API รายละเอียดสถานที่ (เดิม), Nearby Search (เดิม) และ Text Search (เดิม)
Places API (ใหม่) จะกำหนดการตอบกลับให้เป็นมาตรฐานเพื่อให้ API เหล่านี้ทั้งหมดแสดงผล
ข้อมูลเดียวกันสำหรับสถานที่หนึ่งๆ
ประเภทสถานที่ที่ขยายแล้ว
ตอนนี้การตอบกลับของ API สามารถมีประเภทหลักของสถานที่ได้แล้ว สถานที่ทุกแห่งจะมีค่าประเภทเดียวที่ระบุเป็นประเภทหลักของสถานที่ตามที่แสดงในตาราง ก
Places API (ใหม่) รองรับข้อมูลการตอบกลับแบบไดนามิก เช่น ความพร้อมให้บริการ
ของสถานีชาร์จ EV หรือราคาน้ำมันล่าสุดของปั๊มน้ำมัน ใช้ช่องการตอบกลับเหล่านี้เพื่อสร้างประสบการณ์ของผู้ใช้แบบไดนามิก
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-09-04 UTC"],[],[],null,["# Places API (Legacy) overview\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\nIntroduction\n------------\n\nThe Places API lets you search for and retrieve information for a variety of\nplace types using a text string or by proximity. Places API (Legacy) is the legacy\nversion of\n[Places API (New)](/maps/documentation/places/web-service/op-overview).\n\nThe following table lists the corresponding versions of both APIs. Use this\nguide to understand the key differences between the two and migrate to\nPlaces API (New).\n\n| Places API (Legacy) | Places API (New) | Notes |\n|------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Find Place (Legacy)](/maps/documentation/places/web-service/search-find-place) | [Text Search (New)](/maps/documentation/places/web-service/text-search) | There is no new version of Find Place (Legacy). Text Search (New) has replaced it. |\n| [Nearby Search (Legacy)](/maps/documentation/places/web-service/search-nearby) | [Nearby Search (New)](/maps/documentation/places/web-service/nearby-search) | All requests using the legacy API that include a text query should use [Text Search (New)](/maps/documentation/places/web-service/text-search) because Nearby Search (New) does not support text input. |\n| [Text Search (Legacy)](/maps/documentation/places/web-service/search-text) | [Text Search (New)](/maps/documentation/places/web-service/text-search) | |\n| [Place Details (Legacy)](/maps/documentation/places/web-service/details) | [Place Details (New)](/maps/documentation/places/web-service/place-details) | |\n| [Place Photos (Legacy)](/maps/documentation/places/web-service/photos) | [Place Photos (New)](/maps/documentation/places/web-service/place-photos) | |\n| [Place Autocomplete (Legacy)](/maps/documentation/places/web-service/autocomplete) | [Autocomplete (New)](/maps/documentation/places/web-service/place-autocomplete) | |\n| [Query Autocomplete (Legacy)](/maps/documentation/places/web-service/query) | [Autocomplete (New)](/maps/documentation/places/web-service/place-autocomplete) | Capabilities added to Autocomplete (New). |\n\nMigrate to the new APIs\n-----------------------\n\nTo migrate to the new APIs, see the following migration guides:\n\n- [Migrate to Nearby Search (New)](/maps/documentation/places/web-service/migrate-nearby)\n- [Migrate to Text Search (New)](/maps/documentation/places/web-service/migrate-text)\n- [Migrate to Place Details (New)](/maps/documentation/places/web-service/migrate-details)\n- [Migrate to Place Photos (New)](/maps/documentation/places/web-service/migrate-photo)\n- [Migrate to Autocomplete (New)](/maps/documentation/places/web-service/migrate-autocomplete)\n\nKey features added to Places API (New)\n--------------------------------------\n\nThis section covers key features added to Places API (New).\n\n### Implemented on the Google Cloud standard platform\n\nPlaces API (New) is implemented on the [service\ninfrastructure](https://cloud.google.com/service-infrastructure/docs/overview)\non Google Cloud. This implementation brings with it a more secure and trusted\nplatform with enhanced security options like\n[OAuth](/maps/documentation/places/web-service/oauth-token). This standard API\ndesign brings a level of consistency across the APIs that improve the efficiency\nof development with Places API (New).\n\n### Improved performance\n\nPlaces API (New) provides improved performance, making it worthwhile to\nreplace apps that use the existing Places API.\n\n### Simplified pricing\n\nPricing is simplified with Places API (New) so that you only pay for the\ndata you use. Simplified pricing is implemented using a [field\nmask](/maps/documentation/places/web-service/choose-fields).\n\nWith Place Details (New), Nearby Search (New), and\nText Search (New) you use the field mask to control the list of fields to\nreturn in the response. You are then only billed for the data requested. Using\nfield masking is a good design practice to ensure that you don't request\nunnecessary data, which helps to avoid unnecessary processing time and billing\ncharges.\n\n### Consistent response data for a place\n\nWith the legacy APIs, the Place Details (Legacy), Nearby Search (Legacy), and\nText Search (Legacy) APIs returned different response data for a place.\nPlaces API (New) standardizes the response so these APIs all return the\nsame data for a place.\n\n### Expanded place types\n\nThe API response can now contain a place's *primary type* . Every place can have\na single type value that is specified as the place's primary type, as listed in\n[Table A](/maps/documentation/places/web-service/place-types#table-a).\n\nThe new API also includes several new types. You can use these new types, and\nthe existing types, in a search with Nearby Search (New)\nand Text Search (New). The new types are all included in [Table\nA](/maps/documentation/places/web-service/place-types#table-a).\n\n### Dynamic place data\n\nPlaces API (New) supports dynamic response data, such as the availability\nof an EV charging station or the latest fuel prices for a gas station. Use these\nresponse fields to create dynamic user experiences."]]