Routes API
routes.googleapis.com API
บริการ: routes.googleapis.com
หากต้องการเรียกใช้บริการนี้ เราขอแนะนำให้ใช้ไลบรารีของไคลเอ็นต์ที่ Google มีให้ หากแอปพลิเคชันของคุณต้องใช้ไลบรารีของคุณเองเพื่อเรียกใช้บริการนี้ ให้ใช้ข้อมูลต่อไปนี้เมื่อส่งคำขอ API
เอกสารการค้นพบ
เอกสาร Discovery คือข้อกำหนดเฉพาะที่เครื่องอ่านได้สำหรับอธิบายและใช้ REST API โดยใช้ในการสร้างไลบรารีของไคลเอ็นต์ ปลั๊กอิน IDE และเครื่องมืออื่นๆ ที่โต้ตอบกับ Google API บริการหนึ่งๆ อาจให้เอกสารการค้นพบได้หลายรายการ บริการนี้มีเอกสารการค้นพบต่อไปนี้
ปลายทางของบริการ
ปลายทางบริการคือ URL พื้นฐานที่ระบุที่อยู่เครือข่ายของบริการ API บริการหนึ่งๆ อาจมีปลายทางบริการหลายรายการ บริการนี้มีปลายทางบริการดังต่อไปนี้ และ URI ทั้งหมดด้านล่างจะเกี่ยวข้องกับปลายทางบริการนี้
https://routes.googleapis.com
ทรัพยากร REST: v2
เมธอด |
computeRouteMatrix |
POST /distanceMatrix/v2:computeRouteMatrix
รับรายการต้นทางและปลายทาง และแสดงผลสตรีมที่มีข้อมูลเส้นทางสําหรับการรวมกันของต้นทางและปลายทางแต่ละรายการ |
computeRoutes |
POST /directions/v2:computeRoutes
ส่งคืนเส้นทางหลักพร้อมกับเส้นทางอื่น (ไม่บังคับ) โดยพิจารณาจากจุดแวะพักปลายทางและจุดแวะพักกลาง |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-26 UTC
[null,null,["อัปเดตล่าสุด 2024-11-26 UTC"],[[["The Routes API provides access to functionalities for calculating distances and routes using the Google Maps platform."],["Developers can interact with the API using Google-provided client libraries or by directly making RESTful API requests."],["Two core methods offered are `computeRouteMatrix` for calculating distances between multiple origins and destinations, and `computeRoutes` for generating detailed route information."],["The API utilizes a RESTful architecture and documentation is available through a discovery document."],["The service endpoint for the Routes API is `https://routes.googleapis.com`."]]],["The routes.googleapis.com API offers two primary methods: `computeRouteMatrix` and `computeRoutes`. `computeRouteMatrix` takes a list of origins and destinations, outputting route data for each combination. `computeRoutes` calculates the primary route and optional alternatives between specified waypoints. The service endpoint is `https://routes.googleapis.com`, and a discovery document is available at `https://routes.googleapis.com/$discovery/rest?version=v2` to facilitate building client tools. Google-provided client libraries are recommended.\n"]]