TollInfo
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Encapsula la información de los peajes en un Route
o en un RouteLeg
.
Representación JSON |
{
"estimatedPrice": [
{
object (Money )
}
]
} |
Campos |
estimatedPrice[] |
object (Money )
Es el importe monetario de los peajes del Route o el RouteLeg correspondientes. Esta lista contiene un importe correspondiente a cada moneda que se espera que cobre las estaciones de peaje. Por lo general, esta lista contiene solo un elemento para las rutas con peajes en una moneda. En el caso de los viajes internacionales, esta lista puede contener varios artículos que reflejen los peajes en diferentes monedas.
|
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2025-08-31 (UTC)
[null,null,["Última actualización: 2025-08-31 (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. |"]]