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-25 UTC."],[],["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"]]