خدمة "الإكمال التلقائي للأماكن" هي ميزة من ميزات مكتبة "الأماكن" في واجهة برمجة التطبيقات JavaScript للخرائط. يمكنك استخدام ميزة "الإكمال التلقائي" لمنح تطبيقاتك سلوك البحث أثناء الكتابة في حقل البحث في "خرائط Google". يمكن أن تتطابق خدمة الإكمال التلقائي مع الكلمات الكاملة والسلسلة الفرعية، ما يؤدي إلى حلّ أسماء الأماكن والعناوين ورموز Plus Codes. وبالتالي، يمكن للتطبيقات إرسال طلبات بحث أثناء كتابة المستخدمين، لتقديم توقعات بشأن الأماكن أثناء التنقل.
يمكنك إضافة ميزة "الإكمال التلقائي" إلى تطبيقك أو صفحة الويب باستخدام "أداة الإكمال التلقائي للأماكن" أو Place Autocomplete Data API.
يمكنك إضافة ميزة "الإكمال التلقائي" إلى تطبيقك أو صفحة الويب باستخدام تطبيق "أداة الإكمال التلقائي للأماكن".
التطبيق المصغّر للإكمال التلقائي للأماكن
تُنشئ شريحة شاشة "الإكمال التلقائي للأماكن" حقل إدخال نص، وتوفّر توقّعات الأماكن في قائمة اختيار واجهة المستخدم، وتُعرِض تفاصيل الأماكن استجابةً لاختيار المستخدم. استخدِم تطبيق Place Autocomplete Widget لتضمين واجهة مستخدم كاملة ومكتفية ذاتيًا للإكمال التلقائي على صفحة الويب.
واجهة برمجة التطبيقات الخاصة بميزة "الإكمال التلقائي للأماكن"
تتيح لك Place Autocomplete Data API جلب الاقتراحات المتعلّقة بالمواقع الجغرافية آليًا، ما يمنحك درجة تحكّم أدق مما هو ممكن باستخدام تطبيق Place Autocomplete Widget. استخدِم واجهة برمجة التطبيقات Place Autocomplete Data API إذا كنت تريد إنشاء واجهة مستخدم مخصّصة أكثر شمولاً لخدمة "الإكمال التلقائي للأماكن".
تاريخ التعديل الأخير: 2025-08-10 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-10 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003ePlace Autocomplete, a feature of the Places library within the Maps JavaScript API, provides a type-ahead search function similar to the Google Maps search field, matching place names, addresses, and plus codes.\u003c/p\u003e\n"],["\u003cp\u003eYou can implement Place Autocomplete using either the Place Autocomplete Widget, which offers a pre-built UI, or the Place Autocomplete Data API, which allows for more customization.\u003c/p\u003e\n"],["\u003cp\u003eThe Place Autocomplete Widget creates a text input with place predictions in a dropdown, returning details upon selection, ideal for a self-contained autocomplete interface on your webpage.\u003c/p\u003e\n"],["\u003cp\u003eThe Place Autocomplete Data API enables programmatic retrieval of place predictions, granting greater flexibility for building custom user interfaces.\u003c/p\u003e\n"]]],["Place Autocomplete offers type-ahead search capabilities for place names, addresses, and plus codes. It's available through the Place Autocomplete Widget or the Place Autocomplete Data API. The Widget creates a text input field with a UI pick list for user selection. The Data API allows for programmatic fetching of predictions, enabling custom UI development. Applications send user queries to get on-the-fly place predictions. The service is part of the Places library in the Maps JavaScript API.\n"],null,["Select platform: [Android](/maps/documentation/places/android-sdk/place-autocomplete \"View this page for the Android platform docs.\") [iOS](/maps/documentation/places/ios-sdk/place-autocomplete \"View this page for the iOS platform docs.\") [JavaScript](/maps/documentation/javascript/place-autocomplete-overview \"View this page for the JavaScript platform docs.\") [Web Service](/maps/documentation/places/web-service/place-autocomplete \"View this page for the Web Service platform docs.\") \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\nPlace Autocomplete is a feature of the Places library in the Maps JavaScript API.\nYou can use autocomplete to give your applications the type-ahead-search behavior of the Google\nMaps search field. The autocomplete service can match on full words and substrings, resolving\nplace names, addresses, and [plus codes](https://plus.codes).\nApplications can therefore send queries as the user types, to provide on-the-fly place\npredictions.\n\nYou can add autocomplete to your app or web page using either the Place Autocomplete Widget,\nor the Place Autocomplete Data API.\n\nYou can add autocomplete to your app or web page using the Place Autocomplete Widget.\n\nPlace Autocomplete Widget\n\nThe [Place Autocomplete Widget](/maps/documentation/javascript/place-autocomplete-new)\ncreates a text input field, supplies place predictions in a UI pick list, and returns place\ndetails in response to the user's selection. Use the Place Autocomplete Widget to embed a complete\nself-contained autocomplete user interface on your web page.\n\nPlace Autocomplete Data API\n\nThe [Place Autocomplete Data API](/maps/documentation/javascript/place-autocomplete-data)\nlets you fetch place predictions programmatically, providing a finer degree of control than is\npossible with the Place Autocomplete Widget. Use the Place Autocomplete Data API\nif you want to build a more comprehensive custom user interface for Place Autocomplete."]]