Routes API Pilihan saat ini hanya tersedia untuk pelanggan tertentu.
Hubungi bagian penjualan untuk mempelajari lebih lanjut.
TollInfo
Mengenkapsulasi informasi tol di Route
atau di RouteLeg
.
Representasi JSON |
{
"estimatedPrice": [
{
object (Money )
}
]
} |
Kolom |
estimatedPrice[] |
object (Money )
Jumlah uang tol untuk Route atau RouteLeg yang sesuai. Daftar ini berisi jumlah uang untuk setiap mata uang yang diperkirakan akan ditagih oleh gerbang tol. Biasanya, daftar ini hanya berisi satu item untuk rute dengan tarif tol dalam satu mata uang. Untuk perjalanan internasional, daftar ini dapat berisi beberapa item untuk mencerminkan tarif tol dalam mata uang yang berbeda.
|
Uang
Menyatakan jumlah uang dengan jenis mata uangnya.
Representasi JSON |
{
"currencyCode": string,
"units": string,
"nanos": integer
} |
Kolom |
currencyCode |
string
Kode mata uang tiga huruf yang ditentukan dalam ISO 4217.
|
units |
string (int64 format)
Seluruh unit jumlahnya. Misalnya jika currencyCode adalah "USD" , maka 1 unit adalah satu dolar AS.
|
nanos |
integer
Jumlah unit nano (10^-9) dari jumlah. Nilainya harus antara -999.999.999 dan +999.999.999 inklusif. Jika units positif, nanos harus positif atau nol. Jika units nol, nanos dapat positif, nol, atau negatif. Jika units negatif, nanos harus negatif atau nol. Misalnya,$-1,75 direpresentasikan sebagai units =-1 dan nanos =-750.000.000.
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-10 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-10 UTC."],[[["TollInfo object provides estimated toll prices for a Route or RouteLeg."],["Toll prices are represented using the Money object, which includes currency code, whole units, and nano units for precision."],["For international routes, multiple Money objects may be provided to reflect tolls in different currencies."],["The estimatedPrice field within TollInfo contains an array of Money objects, detailing the expected toll costs."]]],["The provided content describes how toll information and monetary amounts are represented. Toll information, associated with a `Route` or `RouteLeg`, is represented as a list of estimated prices, where each price is a `Money` object. The `Money` object details the `currencyCode`, `units` (whole units of the currency), and `nanos` (fractional units) for an amount. `CurrencyCode` follows ISO 4217, units represent whole amounts and nanos represent up to 9 decimals.\n"]]