تتوفر
واجهة برمجة تطبيقات المسارات المفضلة حاليًا لعملاء محددين فقط. يمكنك
التواصل مع فريق المبيعات لمعرفة المزيد من المعلومات.
الخطوات الأولى
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
قبل أن تتمكّن من استخدام طرق Routes Preferred API في الرمز البرمجي، عليك تفعيلها.
لتفعيل طرق Routes Preferred API مع مشروعك، اتّبِع الخطوات التالية:
سجِّل الدخول إلى Cloud Console
واختَر علامة التبويب الخاصة باختيار المشروع:

في نافذة الاختيار من، انقر على مشروع جديد.

حدِّد اسمًا وموقعًا جغرافيًا للمشروع، ثم انقر على إنشاء.

يُرجى التواصل مع ممثّل Google الذي تتعامل معه.
إذا لم تكن واجهة Routes Preferred API مفعّلة لمشروعك، انتقِل إلى مكتبة "واجهات برمجة التطبيقات والخدمات " في Google Cloud Console.
يمكنك تخطّي هذه الخطوة إذا كانت ميزة "الطرق المفضّلة" مفعّلة.

بعد ذلك، ابحث عن Routes Preferred لفتح واجهة برمجة التطبيقات Routes Preferred API.

لتفعيل واجهة برمجة التطبيقات، انقر على تفعيل.
إذا لم يكن لديك مفتاح واجهة برمجة تطبيقات مرتبط بمشروعك، انتقِل إلى علامة التبويب "بيانات الاعتماد". يمكنك تخطّي هذه الخطوة إذا كان لديك مفتاح واجهة برمجة تطبيقات.

انقر على إنشاء بيانات اعتماد، ثم على مفتاح واجهة برمجة التطبيقات.

إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-09-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-09-10 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eTo utilize Routes Preferred API, you must first enable it for your project through the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eEnabling the API involves creating a new project, contacting your Google representative, and enabling the Routes Preferred API in the API library.\u003c/p\u003e\n"],["\u003cp\u003eMake sure to check and adjust your quota limits as needed and create an API key for your project to use the Routes Preferred API.\u003c/p\u003e\n"]]],[],null,["# Getting Started\n\nBefore you can use Routes Preferred API methods in your\ncode, you must enable them.\n\nTo enable Routes Preferred API methods with your project:\n\n1. Log in to [Cloud console](https://console.cloud.google.com)\n and select the project selection tab:\n\n2. In the **Select from** window, select **New Project**.\n\n3. Specify a name and location for the project, and then select **Create**.\n\n4. Contact your Google representative.\n\n5. If you don't already have the Routes Preferred API enabled for\n your project, navigate to the APIs \\& Services Library in Google Cloud console.\n You can skip this step if Routes Preferred is already enabled.\n\n Then search for *Routes Preferred* to open the Routes Preferred API.\n\n To enable the API, select **Enable**.\n | **Important:** Check your quota limits for Routes Preferred API methods. If you need to increase your quota limits, contact support by filing a case on the [Google Maps Platform support page](https://console.cloud.google.com/google/maps-apis/support) in the Google Cloud Console, or by calling the [Google Cloud Support Hotline](/maps/documentation/routes_preferred/support#support_hotline).\n6. If you don't already have an API key associated with your project,\n navigate to the Credentials tab. You can skip this step if you already\n have an API key.\n\n Select **Create Credentials** , and then **API Key**."]]