ขณะนี้
เส้นทาง API ที่ต้องการมีให้บริการเฉพาะลูกค้าบางรายเท่านั้น
ติดต่อฝ่ายขายเพื่อดูข้อมูลเพิ่มเติม
เริ่มต้นใช้งาน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณต้องเปิดใช้เมธอด Routes Preferred API ในโค้ดก่อนจึงจะใช้ได้
วิธีเปิดใช้เมธอด Routes Preferred API กับโปรเจ็กต์
เข้าสู่ระบบคอนโซลระบบคลาวด์ แล้วเลือกแท็บการเลือกโปรเจ็กต์

ในหน้าต่างเลือกจาก ให้เลือกโปรเจ็กต์ใหม่

ระบุชื่อและตำแหน่งของโปรเจ็กต์ แล้วเลือกสร้าง

โปรดติดต่อตัวแทนของ Google
หากยังไม่ได้เปิดใช้ Routes Preferred API สําหรับโปรเจ็กต์ ให้ไปที่ไลบรารี API และบริการในคอนโซล Google Cloud
คุณข้ามขั้นตอนนี้ได้หากเปิดใช้ "เส้นทางที่ต้องการ" ไว้แล้ว

จากนั้นค้นหา Routes Preferred เพื่อเปิด Routes Preferred API

หากต้องการเปิดใช้ API ให้เลือกเปิดใช้
หากยังไม่มีคีย์ API ที่เชื่อมโยงกับโปรเจ็กต์ ให้ไปที่แท็บข้อมูลเข้าสู่ระบบ คุณข้ามขั้นตอนนี้ได้หากมีคีย์ API อยู่แล้ว

เลือกสร้างข้อมูลเข้าสู่ระบบ แล้วเลือกคีย์ API

เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-04-24 UTC
[null,null,["อัปเดตล่าสุด 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**."]]