תחילת העבודה
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי להשתמש בשיטות ה-API המועדפות של Routes בקוד, צריך להפעיל אותן.
כדי להפעיל את שיטות ה-API המועדפות של Routes בפרויקט:
מתחברים למסוף Cloud ובוחרים בכרטיסייה לבחירת פרויקט:

בחלון Select from, בוחרים באפשרות New Project.

נותנים שם למיקום של הפרויקט ובוחרים באפשרות Create.

אפשר לפנות לנציג Google.
אם עדיין לא הפעלתם את Routes Preferred API בפרויקט, עוברים לספריית ה-API והשירותים במסוף Google Cloud.
אם האפשרות 'מסלולים מועדפים' כבר מופעלת, אפשר לדלג על השלב הזה.

לאחר מכן מחפשים את Routes Preferred כדי לפתוח את Routes Preferred API.

כדי להפעיל את ה-API, בוחרים באפשרות Enable.
אם עדיין אין לכם מפתח API שמשויך לפרויקט, עוברים לכרטיסייה Credentials (פרטי כניסה). אם כבר יש לכם מפתח API, אתם יכולים לדלג על השלב הזה.

בוחרים באפשרות Create Credentials ואז באפשרות API Key.

אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-04-24 (שעון UTC).
[[["התוכן קל להבנה","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-04-24 (שעון UTC)."],[[["\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**."]]