संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
मोड
निर्देश खोजते समय, यात्रा के मोड को दिखाने वाली सूची.
किसी enum को कॉल करने के लिए, आपको उसकी पैरंट क्लास, नाम, और प्रॉपर्टी को कॉल करना होगा. उदाहरण के लिए,
Maps.Mode.DRIVING.
प्रॉपर्टी
प्रॉपर्टी
टाइप
ब्यौरा
DRIVING
Enum
सड़कों से होकर ड्राइविंग के दिशा-निर्देश.
WALKING
Enum
पैदल चलने के रास्तों और फ़ुटपाथ से पैदल चलने के निर्देश (जहां उपलब्ध हो).
BICYCLING
Enum
साइकल के रास्तों और पसंदीदा सड़कों से होकर साइकल चलाने के निर्देश (जहां उपलब्ध हो).
TRANSIT
Enum
सार्वजनिक ट्रांज़िट मार्गों से ट्रांज़िट दिशानिर्देश (जहां उपलब्ध हो). इस मोड के लिए आपको
जाने या पहुंचने का समय हो सकता है.
//Logallavailabledataforapublic-transittrip.vardirections=Maps.newDirectionFinder().setOrigin('The Cloisters, New York, NY').setDestination('JFK airport, New York, NY').setMode(Maps.DirectionFinder.Mode.TRANSIT).setDepart(newDate()).getDirections();varroute=directions.routes[0];Logger.log(route);
[[["समझने में आसान है","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"]],["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["`Maps.Mode` is an enum used to specify the mode of transportation for directions."],["The available modes are `DRIVING`, `WALKING`, `BICYCLING`, and `TRANSIT`."],["`TRANSIT` mode requires specifying either departure or arrival time."],["Each mode utilizes specific routes like roads, pedestrian paths, bicycle paths, or public transit routes as appropriate."]]],["The `Mode` enum defines travel methods for finding directions. It includes `DRIVING`, `WALKING`, and `BICYCLING`, for road, pedestrian, and cycling routes respectively. `TRANSIT` offers public transit routes, requiring departure or arrival time specification. To use, reference as `Maps.Mode.PROPERTY`. An example is provided for setting a public transit route, by using `.setMode(Maps.DirectionFinder.Mode.TRANSIT)` and calling the `getDirections()` function.\n"]]