این محصول یا ویژگی در وضعیت Legacy است. برای اطلاعات بیشتر درباره وضعیت Legacy به محصولات و ویژگی های Legacy مراجعه کنید. برای انتقال به Places API (جدید)، به راهنمای مهاجرت مراجعه کنید.
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
توسعه دهندگان منطقه اقتصادی اروپا (EEA).
مقدمه
Places API به شما امکان می دهد با استفاده از یک رشته متنی یا نزدیکی، اطلاعات انواع مکان ها را جستجو و بازیابی کنید. Places API (Legacy) نسخه قدیمی Places API (جدید) است.
جدول زیر نسخه های مربوط به هر دو API را فهرست می کند. از این راهنما برای درک تفاوت های کلیدی بین این دو و مهاجرت به Places API (جدید) استفاده کنید.
همه درخواستهایی که از API قدیمی استفاده میکنند و شامل عبارت جستجوی متنی هستند باید از جستجوی متن (جدید) استفاده کنند زیرا جستجوی نزدیک (جدید) از ورودی متن پشتیبانی نمیکند.
این بخش ویژگی های کلیدی اضافه شده به Places API (جدید) را پوشش می دهد.
بر روی پلت فرم استاندارد Google Cloud پیاده سازی شده است
Places API (جدید) در زیرساخت خدمات در Google Cloud پیاده سازی شده است. این پیاده سازی یک پلت فرم امن تر و قابل اعتماد با گزینه های امنیتی پیشرفته مانند OAuth را به همراه دارد. این طراحی استاندارد API سطحی از سازگاری را در بین APIها به ارمغان می آورد که کارایی توسعه را با Places API (جدید) بهبود می بخشد.
عملکرد بهبود یافته است
Places API (جدید) عملکرد بهبود یافته ای را ارائه می دهد و جایگزینی برنامه هایی که از Places API موجود استفاده می کنند ارزشمند است.
قیمت گذاری ساده شده
قیمت گذاری با Places API (جدید) ساده شده است به طوری که شما فقط برای داده هایی که استفاده می کنید پرداخت می کنید. قیمت گذاری ساده با استفاده از یک ماسک فیلد اجرا می شود.
با جزئیات مکان (جدید)، جستجوی نزدیک (جدید)، و جستجوی متن (جدید) از ماسک فیلد برای کنترل لیست فیلدهایی که باید در پاسخ بازگردانده شوند استفاده میکنید. سپس فقط برای داده های درخواستی صورتحساب دریافت می کنید. استفاده از پوشاندن میدان یک روش طراحی خوب است تا اطمینان حاصل شود که دادههای غیرضروری درخواست نمیکنید، که به جلوگیری از زمان پردازش غیر ضروری و هزینههای صورتحساب کمک میکند.
دادههای پاسخ منسجم برای یک مکان
با APIهای قدیمی، APIهای جزئیات مکان (میراث)، جستجوی نزدیک (میراث)، و جستجوی متن (میراث) داده های پاسخ متفاوتی را برای یک مکان برمی گرداندند. Places API (جدید) پاسخ را استاندارد می کند، بنابراین همه این APIها داده های یکسانی را برای یک مکان برمی گرداند.
انواع مکان های گسترده
پاسخ API اکنون می تواند حاوی نوع اصلی مکان باشد. هر مکان می تواند یک مقدار نوع واحد داشته باشد که به عنوان نوع اصلی مکان مشخص شده است، همانطور که در جدول A فهرست شده است.
API جدید همچنین شامل چندین نوع جدید است. می توانید از این انواع جدید و انواع موجود در جستجو با جستجوی نزدیک (جدید) و جستجوی متن (جدید) استفاده کنید. انواع جدید همه در جدول A گنجانده شده است.
داده های مکان پویا
Places API (جدید) از دادههای پاسخ پویا، مانند در دسترس بودن ایستگاه شارژ EV یا آخرین قیمت سوخت برای پمپ بنزین پشتیبانی میکند. از این فیلدهای پاسخ برای ایجاد تجربیات کاربر پویا استفاده کنید.
تاریخ آخرین بهروزرسانی 2025-08-27 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-08-27 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]