संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यूरोपियन इकनॉमिक एरिया (ईईए) के डेवलपर
अनुरोध में रास्ते में बदलाव करने वाले पैरामीटर जोड़कर, यह तय किया जा सकता है कि आपको रास्ते की किन सुविधाओं से बचना है. जैसे, टोल या हाइवे से बचना. इसके बाद, एपीआई एक ऐसा रास्ता उपलब्ध कराने की कोशिश करता है जिसके लिए उन सुविधाओं की ज़रूरत नहीं होती.
RouteModifiers टाइप के अनुरोध में, routeModifiers प्रॉपर्टी का इस्तेमाल करें. avoidTolls, avoidHighways, avoidFerries, और avoidIndoor को तय किया जा सकता है.
रूट मॉडिफ़ायर तय करने से, ज़रूरी नहीं कि उन रास्तों को हटा दिया जाए जिनमें पाबंदी वाली सुविधा शामिल है. एपीआई, मॉडिफ़ायर का इस्तेमाल करके, नतीजे को ज़्यादा फ़ायदेमंद रास्तों के हिसाब से दिखाता है. टोल से बचने का विकल्प चुनने पर भी, आपके रास्ते में बदलाव न होने की कुछ वजहें हो सकती हैं. उदाहरण के लिए, यात्रा शुरू करने की जगह से मंज़िल तक पहुंचने के लिए सिर्फ़ एक ही रास्ता है. इस वजह से, हाइवे या फ़ेरी से बचना मुमकिन नहीं है. इसके अलावा, वैकल्पिक रास्ते से यात्रा करने में ज़्यादा समय लगता है.
यहां दिए गए उदाहरण में, computeRoutes तरीके (REST) के अनुरोध के मुख्य हिस्से में, रूट मॉडिफ़ायर सेट करने का तरीका बताया गया है. इस विकल्प को ComputeRoutes तरीके (gRPC) के लिए भी सेट किया जा सकता है. इस उदाहरण में, टोल और हाइवे से बचने के लिए कहा गया है:
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 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,[]]