بحث الأماكن
اختيار النظام الأساسي:
JavaScript
خدمة الويب
تتيح لك Places API البحث عن معلومات الأماكن
باستخدام مجموعة متنوعة من الفئات، بما في ذلك المؤسسات ونقاط ملفتة للاهتمام
والمواقع الجغرافية. يمكنك البحث عن الأماكن إما عن طريق
قربها أو باستخدام سلسلة نصية. يعرض "بحث عن مكان" قائمة بالأماكن بالإضافة إلى
معلومات موجزة عن كل مكان، وتتوفّر معلومات إضافية باستخدام
طلب بحث تفاصيل المكان.
مقارنة أنواع البحث
تتوفّر ثلاث نقاط نهاية للبحث بخصائص مختلفة. يوضّح الجدول التالي
بعض هذه الاختلافات.
اختيار الحقل
لا تتوفّر طريقة لتقييد "البحث عن الأماكن القريبة" أو "البحث النصي" لعرض حقول معيّنة فقط. لتجنُّب طلب بيانات لا تحتاج إليها (ودفع رسومها)، استخدِم طلب "العثور على مكان" بدلاً من ذلك.
نصّ غير واضح
تم تحسين ميزة "العثور على مكان" وميزة "البحث عن نص" لمطابقة النصوص الغامضة في عدد من الحقول،
في حين أنّ ميزة "البحث عن الأماكن المجاورة" تقتصر على المطابقات الصارمة في مجموعة فرعية من الحقول.
فلاتر إضافية
يتيح كلّ من "البحث عن الأماكن القريبة" و"البحث النصي" استخدام مَعلمات إضافية لفلترة النتائج،
(مثل minprice
وmaxprice
وopennow
وtype
).
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-01-14 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-01-14 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]