TollInfo
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Đóng gói thông tin thu phí cầu đường trên Route
hoặc trên RouteLeg
.
Biểu diễn dưới dạng JSON |
{
"estimatedPrice": [
{
object (Money )
}
]
} |
Trường |
estimatedPrice[] |
object (Money )
Số tiền phí cầu đường cho Route hoặc RouteLeg tương ứng. Danh sách này chứa số tiền cho từng loại tiền tệ dự kiến sẽ được các trạm thu phí thu phí. Thông thường, danh sách này sẽ chỉ chứa một mục cho các tuyến đường có thu phí bằng một đơn vị tiền tệ. Đối với các chuyến đi quốc tế, danh sách này có thể chứa nhiều mục để thể hiện phí cầu đường bằng các đơn vị tiền tệ khác nhau.
|
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-27 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-27 UTC."],[[["\u003cp\u003eToll information is encapsulated within the \u003ccode\u003eRoute\u003c/code\u003e or \u003ccode\u003eRouteLeg\u003c/code\u003e objects in JSON format.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eestimatedPrice\u003c/code\u003e field provides the estimated toll costs in various currencies using the \u003ccode\u003eMoney\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eToll prices are presented as a list, potentially containing multiple currencies for international routes.\u003c/p\u003e\n"]]],["Toll information for a Route or RouteLeg is represented in JSON. The `estimatedPrice` field, an array, contains monetary amounts for tolls, specified as `Money` objects. Each array item represents a different currency that might be charged. Typically, there's one item per currency, but international trips may have multiple items reflecting tolls in different currencies. This field provides the expected toll charges for each route segment.\n"],null,["# TollInfo\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nEncapsulates toll information on a [`Route`](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#Route) or on a [`RouteLeg`](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#RouteLeg).\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------|\n| ``` { \"estimatedPrice\": [ { object (/maps/documentation/routes/reference/rest/v2/Money) } ] } ``` |\n\n| Fields ||\n|--------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `estimatedPrice[]` | `object (`[Money](/maps/documentation/routes/reference/rest/v2/Money)`)` The monetary amount of tolls for the corresponding [`Route`](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#Route) or [`RouteLeg`](/maps/documentation/routes/reference/rest/v2/TopLevel/computeRoutes#RouteLeg). This list contains a money amount for each currency that is expected to be charged by the toll stations. Typically this list will contain only one item for routes with tolls in one currency. For international trips, this list may contain multiple items to reflect tolls in different currencies. |"]]