Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Avrupa Ekonomik Alanı (AEA) geliştiricileri
Bir rota matrisi hesaplarken matristeki rotalarda geçerli olan tüm geçiş ücretlerini göz önünde bulundurmak isteyebilirsiniz. Belirli şehirlerde, bir rotanın tahmini geçiş ücretini uygun para biriminde hesaplayabilirsiniz.
Desteklenen ücretli geçiş konumlarının listesi için TollPass referansına bakın.
Rota matrisi ücret örneği
Aşağıdaki örnekte, ücretli geçiş kartı kullanıldığında tahmini fiyatı olan bir rotadaki ücretli geçiş bilgilerini döndürmek için computeRouteMatrix yöntemi kullanılmaktadır:
Ücretli yol bilgilerinin hesaplanmasını etkinleştirmek için extraComputations dizi alanını TOLLS olarak ayarlayın.
İsteğin origin yol noktalarının routeModifiers alanını kullanarak araç türünü ve geçiş ücreti ödeme cihazı türünü belirtin. Döndürülen geçiş ücreti fiyatı, belirtilen araç türü ve geçiş kartı tarafından kullanılan fiyatlandırmaya dayanır. Birden fazla geçiş belirtilirse en ucuz fiyatlandırma döndürülür.
Yanıtın ücretli yol bilgilerini döndürme yöntemini yapılandırmak için yanıt alanı maskesini kullanın. Rotanın tamamıyla ilgili bilgileri döndürmek için routes.travelAdvisory.tollInfo değerini belirtin.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2025-09-04 UTC."],[[["\u003cp\u003eThe Routes API's \u003ccode\u003ecomputeRouteMatrix\u003c/code\u003e method allows you to calculate estimated toll fees for routes in supported cities, providing cost insights for route planning.\u003c/p\u003e\n"],["\u003cp\u003eTo enable toll calculations, specify \u003ccode\u003eTOLLS\u003c/code\u003e in the \u003ccode\u003eextraComputations\u003c/code\u003e field and provide vehicle and toll pass details in the \u003ccode\u003erouteModifiers\u003c/code\u003e field within the request.\u003c/p\u003e\n"],["\u003cp\u003eToll prices are estimates and are influenced by factors like vehicle type and toll pass used, with the response including the estimated price in the specified currency.\u003c/p\u003e\n"],["\u003cp\u003eWhile the Route Matrix provides toll information, detailed route specifics are not included; for that, use the \u003ccode\u003eCompute Routes\u003c/code\u003e functionality with single origin and destination points.\u003c/p\u003e\n"],["\u003cp\u003eBe aware that requests including toll fee calculations are billed at a higher rate than standard route matrix requests.\u003c/p\u003e\n"]]],["To calculate toll fees for a route matrix, set the `extraComputations` field to `TOLLS`. Specify the vehicle type and toll pass using the `routeModifiers` field within the origin waypoints; the lowest-cost toll pass pricing will be applied if multiple passes are set. Use the response field mask with `routes.travelAdvisory.tollInfo` to include toll information, and note that toll fee requests have a higher billing rate. The response then contains `estimatedPrice`.\n"],null,[]]