ขณะนี้
เส้นทาง API ที่ต้องการมีให้บริการเฉพาะลูกค้าบางรายเท่านั้น
ติดต่อฝ่ายขายเพื่อดูข้อมูลเพิ่มเติม
ใช้ตัวระบุการแวะพักรถ
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คุณสามารถใช้ตัวระบุจุดแวะพักของยานพาหนะเพื่อระบุว่าจุดแวะพักมีไว้เพื่อหยุดรับหรือส่งผู้โดยสาร เพื่อให้แน่ใจว่าเส้นทางที่คำนวณจะไม่เริ่มต้นหรือสิ้นสุดบนถนนที่ไม่เหมาะสำหรับการขึ้นหรือลงจากรถ (เช่น ทางหลวงหรืออุโมงค์)
ตัวอย่าง Use Case
ลองพิจารณาสถานการณ์ที่ถนนบนพื้นดินตัดผ่านถนนในอุโมงค์
หากคุณระบุจุดแวะพักที่อยู่ที่จุดตัดของถนน 2 สาย (ตามที่เห็นในแผนที่) เส้นทางที่ได้จะเริ่มต้นหรือสิ้นสุดบนถนนหรืออุโมงค์ ซึ่งทำให้เกิดปัญหาเนื่องจากคุณไม่สามารถหยุดในอุโมงค์เพื่อรับหรือส่งผู้โดยสาร
หากต้องการใช้จุดสังเกตสำหรับการรับหรือส่งผู้โดยสาร คุณสามารถตั้งค่าช่อง vehicleStopover
ซึ่งจะช่วยให้เส้นทางที่ได้เริ่มต้นหรือสิ้นสุดบนถนนที่อนุญาตให้รับหรือส่งผู้โดยสาร (กล่าวคือ บนถนนคอนกรีต)
ตัวอย่าง
ตัวอย่างต่อไปนี้แสดงวิธีตั้งค่าตัวระบุ vehicleStopover
{
"vehicleStopover": true,
"location": {
"latLng": {
"latitude":37.419734,
"longitude":-122.0827784
}
}
}
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-23 UTC
[null,null,["อัปเดตล่าสุด 2024-11-23 UTC"],[[["\u003cp\u003eThe Vehicle Stop-over qualifier ensures routes start and end at locations suitable for pickups and drop-offs, avoiding unsuitable roads like highways or tunnels.\u003c/p\u003e\n"],["\u003cp\u003eBy setting \u003ccode\u003evehicleStopover\u003c/code\u003e to true for a waypoint, the calculated route will prioritize accessible roads for pickup and drop-off points.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is particularly useful when a waypoint is located near restricted areas like tunnels, ensuring the route directs to a safe and accessible nearby road.\u003c/p\u003e\n"]]],["The `vehicleStopover` qualifier designates a waypoint for pick-up or drop-off. Setting `vehicleStopover` to `true` ensures the route begins or ends on a suitable road, avoiding unsuitable locations like highways or tunnels. Without this, a waypoint at an intersection (e.g., surface road over a tunnel) could lead to a route beginning or ending in the tunnel. The example demonstrates setting `vehicleStopover` to `true` within a waypoint's definition.\n"],null,["# Use the Vehicle Stop-over Qualifier\n\nYou can use the Vehicle Stop-over qualifier to specify that a waypoint is meant\nto be used for stopping for picking-up or dropping-off. This ensures that the\ncalculated route won't begin or end on a road that is unsuitable for pickup and\ndrop-off (for example, a highway or tunnel).\n\nExample use case\n----------------\n\nConsider the situation where a surface road crosses over a road inside a tunnel.\nIf you were to specify a waypoint located where the two roads intersect (as seen\non a map), then the resulting route would begin or end on either the surface\nroad or the tunnel. This presents a problem because you can't stop in tunnels to\nmake pickups or drop-offs.\n\nIf you want to use the waypoint for a pickup or drop-off, then you could set the\n`vehicleStopover` field, which ensures that the resulting route begins or ends\non a road that allows pickups and drop-offs (that is, on the surface road).\n\nExample\n-------\n\nThe following example demonstrates how to set the\n[`vehicleStopover`](/maps/documentation/routes_preferred/reference/rest/v1alpha/TopLevel/computeRoutes#Waypoint.FIELDS.vehicle_stopover) qualifier. \n\n```cplint\n{\n \"vehicleStopover\": true,\n \"location\": {\n \"latLng\": {\n \"latitude\":37.419734,\n \"longitude\":-122.0827784\n }\n }\n}\n```"]]