हमारा सुझाव है कि इस सेवा को कॉल करने के लिए, Google की दी गई क्लाइंट लाइब्रेरी का इस्तेमाल करें. अगर आपके ऐप्लिकेशन को इस सेवा को कॉल करने के लिए, अपनी लाइब्रेरी का इस्तेमाल करना है, तो एपीआई अनुरोध करते समय नीचे दी गई जानकारी का इस्तेमाल करें.
डिस्कवरी दस्तावेज़
डिस्कवरी दस्तावेज़, मशीन से पढ़ा जा सकने वाला एक दस्तावेज़ है. इसमें REST API के बारे में जानकारी दी जाती है और उन्हें इस्तेमाल करने का तरीका बताया जाता है. इसका इस्तेमाल, Google API के साथ इंटरैक्ट करने वाली क्लाइंट लाइब्रेरी, आईडीई प्लग इन, और अन्य टूल बनाने के लिए किया जाता है. एक सेवा, कई डिस्कवरी दस्तावेज़ उपलब्ध करा सकती है. यह सेवा, एपीआई के बारे में ज़रूरी जानकारी देने वाला यह दस्तावेज़ उपलब्ध कराती है:
सेवा एंडपॉइंट एक बेस यूआरएल होता है, जो किसी एपीआई सेवा का नेटवर्क पता बताता है. किसी सेवा में कई सेवा एंडपॉइंट हो सकते हैं. इस सेवा का यह सेवा एंडपॉइंट है. यहां दिए गए सभी यूआरआई, इस सेवा एंडपॉइंट से जुड़े हैं:
POST /distanceMatrix/v2:computeRouteMatrix
यह फ़ंक्शन, ऑरिजिन और डेस्टिनेशन की सूची लेता है. साथ ही, ऑरिजिन और डेस्टिनेशन के हर कॉम्बिनेशन के लिए, रास्ते की जानकारी वाली स्ट्रीम दिखाता है.
POST /directions/v2:computeRoutes
टर्मिनल और बीच में पड़ने वाले रास्ते के वेपॉइंट के सेट के आधार पर, प्राइमरी रास्ते के साथ-साथ वैकल्पिक रास्ते दिखाता है.
[[["समझने में आसान है","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-11-26 (UTC) को अपडेट किया गया."],[[["The Routes API provides access to functionalities for calculating distances and routes using the Google Maps platform."],["Developers can interact with the API using Google-provided client libraries or by directly making RESTful API requests."],["Two core methods offered are `computeRouteMatrix` for calculating distances between multiple origins and destinations, and `computeRoutes` for generating detailed route information."],["The API utilizes a RESTful architecture and documentation is available through a discovery document."],["The service endpoint for the Routes API is `https://routes.googleapis.com`."]]],["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"]]