इस सेवा को कॉल करने के लिए, हमारा सुझाव है कि आप Google की दी गई क्लाइंट लाइब्रेरी का इस्तेमाल करें. अगर इस सेवा को कॉल करने के लिए आपके ऐप्लिकेशन को अपनी लाइब्रेरी का इस्तेमाल करने की ज़रूरत है, तो एपीआई अनुरोध करते समय नीचे दी गई जानकारी का इस्तेमाल करें.
खोज से जुड़ा दस्तावेज़
डिस्कवरी दस्तावेज़, REST API के बारे में जानकारी देने और उसका इस्तेमाल करने के लिए बनाया गया ऐसा स्पेसिफ़िकेशन है जिसे मशीन आसानी से पढ़ सकती है. इसका इस्तेमाल क्लाइंट लाइब्रेरी, IDE प्लगिन, और Google API के साथ इंटरैक्ट करने वाले अन्य टूल बनाने के लिए किया जाता है. एक ही सेवा में, खोज से जुड़े कई दस्तावेज़ उपलब्ध कराए जा सकते हैं. यह सेवा, खोज से जुड़े ये दस्तावेज़ उपलब्ध कराती है:
सेवा एंडपॉइंट एक बेस यूआरएल होता है, जो एपीआई सेवा के नेटवर्क पते की जानकारी देता है. एक सेवा में एक से ज़्यादा सेवा एंडपॉइंट हो सकते हैं. इस सेवा में नीचे दिया गया सर्विस एंडपॉइंट है और नीचे दिए गए सभी यूआरआई, इस सर्विस एंडपॉइंट से संबंधित हैं:
POST /distanceMatrix/v2:computeRouteMatrix
ऑरिजिन और डेस्टिनेशन की सूची लेता है और ऐसी स्ट्रीम दिखाता है जिसमें ऑरिजिन और डेस्टिनेशन के हर कॉम्बिनेशन के लिए रूट की जानकारी होती है.
[[["समझने में आसान है","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-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Routes API provides access to functionalities for calculating distances and routes using the Google Maps platform.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can interact with the API using Google-provided client libraries or by directly making RESTful API requests.\u003c/p\u003e\n"],["\u003cp\u003eTwo core methods offered are \u003ccode\u003ecomputeRouteMatrix\u003c/code\u003e for calculating distances between multiple origins and destinations, and \u003ccode\u003ecomputeRoutes\u003c/code\u003e for generating detailed route information.\u003c/p\u003e\n"],["\u003cp\u003eThe API utilizes a RESTful architecture and documentation is available through a discovery document.\u003c/p\u003e\n"],["\u003cp\u003eThe service endpoint for the Routes API is \u003ccode\u003ehttps://routes.googleapis.com\u003c/code\u003e.\u003c/p\u003e\n"]]],["The routes.googleapis.com API offers two primary methods: `computeRouteMatrix` and `computeRoutes`. `computeRouteMatrix` takes a list of origins and destinations, outputting route data for each combination. `computeRoutes` calculates the primary route and optional alternatives between specified waypoints. The service endpoint is `https://routes.googleapis.com`, and a discovery document is available at `https://routes.googleapis.com/$discovery/rest?version=v2` to facilitate building client tools. Google-provided client libraries are recommended.\n"],null,[]]