Google Maps वेब सेवाओं के लिए क्लाइंट लाइब्रेरी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Google Maps Services के लिए Java क्लाइंट, Python क्लाइंट, Go क्लाइंट, और
Node.js क्लाइंट, समुदाय की मदद से बनाई गई क्लाइंट लाइब्रेरी हैं. ये Apache 2.0 लाइसेंस के तहत ओपन सोर्स हैं. ये उदाहरण, GitHub पर डाउनलोड करने और योगदान देने के लिए उपलब्ध हैं. यहां आपको इंस्टॉल करने के निर्देश और सैंपल कोड भी मिलेंगे:
क्लाइंट लाइब्रेरी का इस्तेमाल क्यों करना चाहिए?
Google Maps Services के लिए Java क्लाइंट, Python क्लाइंट, Go क्लाइंट
, और Node.js क्लाइंट की मदद से, अपने सर्वर पर Google Maps की वेब सेवाओं का इस्तेमाल किया जा सकता है.
ये इन एपीआई की सुविधाओं को रैप करते हैं:
इन एपीआई की सुविधाओं के अलावा, क्लाइंट लाइब्रेरी कुछ सामान्य टास्क को आसान बनाती हैं.
- अपने-आप दर सीमित करने की सुविधा डिफ़ॉल्ट रूप से, हर वेब सेवा के लिए अनुरोध, अनुमानित दर सीमा पर भेजे जाते हैं.
new GeoApiContext().setQueryRateLimit(qpm)
की मदद से, क्यूपीएम की कस्टम सीमाएं तय की जा सकती हैं.
- अनुरोध पूरा न होने पर फिर से कोशिश करना अगर एपीआई
5xx
गड़बड़ी का मैसेज भेजता है, तो क्लाइंट लाइब्रेरी अपने-आप किसी भी अनुरोध को फिर से कोशिश करेगी. फिर से कोशिश करने के लिए, एक्सपोनेंशियल बैक-ऑफ़ का इस्तेमाल किया जाता है. इससे, बार-बार होने वाली गड़बड़ियों की स्थिति में मदद मिलती है.
- पुष्टि करना आसान क्लाइंट लाइब्रेरी की मदद से, एपीआई पासकोड की मदद से पुष्टि करना आसान हो जाता है.
- पीओजेओ Java लाइब्रेरी, एपीआई के हर रिस्पॉन्स के लिए नेटिव ऑब्जेक्ट दिखाती हैं. Python लाइब्रेरी, एपीआई से मिले स्ट्रक्चर को वैसा ही दिखाती हैं.
- एसिंक्रोनस या सिंक्रोनस सभी अनुरोध, सिंक्रोनस या
एसिंक्रोनस कॉलिंग स्टाइल के साथ काम करते हैं.
नियम और शर्तें
Google Maps की वेब सेवाओं के लिए क्लाइंट लाइब्रेरी का लाइसेंस,
Apache 2.0 लाइसेंस के तहत दिया गया है.
क्लाइंट लाइब्रेरी, Google Maps की वेब सेवाओं के लिए रैपर होती हैं. Google Maps की वेब सेवाओं पर, Google Maps Platform की सेवा की शर्तें लागू होती हैं.
अहम जानकारी: इन लाइब्रेरी पर, Google की सेवा बंद करने से जुड़ी सामान्य नीति या सहायता समझौते का दायरा लागू नहीं होता.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[],[],null,["# Client Libraries for Google Maps Web Services\n\nThe Java Client, Python Client, Go Client and\nNode.js Client for Google Maps Services are community supported client libraries, open sourced under the\n[Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0). They are\navailable for download and contributions on GitHub, where you will also find installation\ninstructions and sample code: \n\n- [Java Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-java)\n- [Python Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-python)\n- [Go Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-go)\n- [Node.js Client for Google Maps Services](https://github.com/googlemaps/google-maps-services-js)\n- [Objective-C Client for Google Maps Services](https://github.com/google/google-api-objectivec-client-for-rest)\n- [Google API Client - Java Developer's Guide](/api-client-library/java/google-api-java-client/dev-guide)\n\nWhy use the client libraries?\n-----------------------------\n\nThe Java Client, Python Client, Go Client\nand Node.js Client for Google Maps Services enable you to work with Google Maps web services on your server.\nThey wrap the functionality of the following APIs:\n\n- [Directions API (Legacy)](/maps/documentation/directions)\n- [Distance Matrix API (Legacy)](/maps/documentation/distancematrix)\n- [Elevation API](/maps/documentation/elevation)\n- [Geocoding API](/maps/documentation/geocoding)\n- [Places API](/maps/documentation/places/web-service)\n- [Roads API](/maps/documentation/roads)\n- [Time Zone API](/maps/documentation/timezone)\n\nIn addition to the functionality provided by these APIs, the client libraries\nmake some common tasks a little easier.\n\n- **Automatic Rate Limiting** By default, requests are sent at the expected rate limit for each web service. You can provide custom QPM limits with `new GeoApiContext().setQueryRateLimit(qpm)`.\n- **Retry on Failure** The client libraries will automatically retry any request if the API sends a `5xx` error. Retries use exponential back-off, which helps in the event of intermittent failures.\n- **Easy Authentication** The client libraries make it easy to authenticate with your API key.\n- **POJOs** The Java libraries return native objects for each of the API responses. The Python libraries return the structure as it is received from the API.\n- **Asynchronous or synchronous** All requests support synchronous or asynchronous calling style.\n\nTerms and conditions\n--------------------\n\nThe client libraries for the Google Maps web services are licensed under the\n[Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0).\n\nThe client libraries are wrappers for the Google Maps web services. The Google Maps\nweb services are governed by the [Google Maps Platform Terms of Service](https://cloud.google.com/maps-platform/terms).\n\n**Important** : These libraries are **not covered**\nby the standard Google deprecation policy or support agreement."]]