Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
Avrupa Ekonomik Alanı (AEA) geliştiricileri
Bir isteğe rota değiştiriciler ekleyerek hangi rota özelliklerinden kaçınmak istediğinizi (ör. ücretli geçişlerden veya otoyollardan kaçınma) belirtebilirsiniz. API daha sonra bu özellikleri gerektirmeyen bir rota sağlamaya çalışır.
routeModifiers özelliğini, RouteModifiers türünde bir istekte kullanın. avoidTolls, avoidHighways, avoidFerries ve avoidIndoor değerlerini belirtebilirsiniz.
Rota değiştirici belirtmek, kısıtlanmış özelliği içeren rotaları mutlaka ortadan kaldırmaz. API, sonucu daha uygun rotalara yönlendirmek için değiştiriciyi kullanır. Bir kaçınma seçeneği istemenin rotanızı değiştirmemesinin birkaç nedeni olabilir. Örneğin, başlangıç noktasından varış noktasına giden tek rota, otoyol veya feribot kullanmadan gitmeyi imkansız hale getiriyor. Alternatif rota, seyahat süresini önemli ölçüde uzatıyor.
Aşağıdaki örnekte, computeRoutes yöntemi (REST) istek gövdesinde rota değiştiricilerin nasıl ayarlanacağı gösterilmektedir. Bu seçeneği ComputeRoutes yönteminde (gRPC) de belirtebilirsiniz. Bu örnekte, ücretli geçişleri ve otoyolları kullanmamayı belirtiyorsunuz:
[[["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-10 UTC."],[[["\u003cp\u003eThe Routes API's Compute Route Matrix feature does not support avoiding route features.\u003c/p\u003e\n"],["\u003cp\u003eYou can request routes that avoid tolls, highways, ferries, and indoor travel using the \u003ccode\u003erouteModifiers\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eWhile route modifiers bias the results, they may not eliminate the specified features if alternatives are unavailable or significantly increase travel time.\u003c/p\u003e\n"],["\u003cp\u003eYou can specify route modifiers in both REST and gRPC requests, using the \u003ccode\u003eavoidTolls\u003c/code\u003e, \u003ccode\u003eavoidHighways\u003c/code\u003e, \u003ccode\u003eavoidFerries\u003c/code\u003e, and \u003ccode\u003eavoidIndoor\u003c/code\u003e fields within the \u003ccode\u003erouteModifiers\u003c/code\u003e property.\u003c/p\u003e\n"]]],["Route modifiers, set in the `routeModifiers` property of a request, allow users to express preferences for avoiding tolls, highways, ferries, or indoor routes. The `Compute Route Matrix` feature does not support avoiding route features. Modifiers bias the route calculation, but do not guarantee avoidance. `routeModifiers` also supports `vehicleInfo` and `tollPasses`. The API might include the feature to be avoided if no practical alternative exists. An example in a `computeRoutes` request demonstrates setting `avoidTolls` and `avoidHighways` to `true`.\n"],null,[]]