उपभोक्ता SDK टूल के शेड्यूल किए गए टास्क की खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
उपभोक्ताओं को शेड्यूल किए गए टास्क के लिए बेहतर अनुभव दें. इसके लिए, उन्हें शेड्यूल की गई डिलीवरी या सेवा के ऑर्डर की प्रोग्रेस को फ़ॉलो करने की अनुमति दें.
शेड्यूल किए गए टास्क के लिए Consumer SDK क्या है?
Consumer SDK, शेड्यूल किए गए टास्क के लिए Fleet Engine की एक सुविधा है. इसमें उपभोक्ता अनुभव बनाने के लिए टूलकिट भी शामिल हैं. इन टूलकिट की मदद से, मैप पर आधारित डिसप्ले बनाए जा सकते हैं. इनसे ड्राइवर की प्रोग्रेस को विज़ुअलाइज़ किया जा सकता है. साथ ही, शेड्यूल किए गए स्टॉप से जुड़े टास्क का स्टेटस दिखाया जा सकता है. इसे दो मुख्य ऑडियंस के लिए डिज़ाइन किया गया है:
- उपभोक्ता के तौर पर असली उपयोगकर्ता, जिन्हें किसी शिपमेंट ऑर्डर की डिलीवरी का स्टेटस जानना है. इस दस्तावेज़ में बताया गया है कि JavaScript में Consumer SDK का इस्तेमाल करके, उपभोक्ता अनुभव को कैसे लागू किया जा सकता है. यह
FleetEngineShipmentLocationProvider
क्लास और उससे जुड़े इंटरफ़ेस उपलब्ध कराता है.
- फ़्लीट ऑपरेटर जो वाहनों के पूरे फ़्लीट के लिए, डिलीवरी और वाहन की स्थिति को ट्रैक करना चाहते हैं. फ़्लीट को ट्रैक करने के बारे में जानकारी के लिए, फ़्लीट ट्रैकिंग गाइड देखें.

शेड्यूल किए गए टास्क के लिए, Consumer SDK का इस्तेमाल क्यों करें?
उपभोक्ता के लिए शेड्यूल किए गए टास्क वाले ऐप्लिकेशन में Consumer SDK को इंटिग्रेट करने से, आपको उपभोक्ता को बेहतर अनुभव देने में मदद मिलती है. इसमें रीयल-टाइम में जगह की जानकारी के अपडेट और सड़क के हिसाब से सटीक जगह की जानकारी शामिल है. आपके खरीदार, डिलीवरी वाहन की जगह की जानकारी और डिलीवरी की स्थिति देख सकते हैं. इससे उन्हें यह समझने में मदद मिलती है कि उनका शिपमेंट कहां है.
Consumer SDK की मदद से क्या-क्या किया जा सकता है?
उपभोक्ताओं के साथ शिपमेंट की यह जानकारी शेयर करने के लिए, Consumer SDK का इस्तेमाल करें:
- मैप पर डिलीवरी करने वाले वाहन की रीयल-टाइम जगह की जानकारी.
- पैकेज के पहुंचने का अनुमानित समय. इसमें ट्रैफ़िक जैसी बदलती परिस्थितियों के हिसाब से बदलाव किया जाता है.
- वाहन किस रास्ते से जा रहा है.
- शिपमेंट डिलीवर होने से पहले, तय की जाने वाली दूरी और बचे हुए स्टॉप की संख्या.
Driver SDK से मिली जगह की जानकारी के आधार पर, अपने उपभोक्ता ऐप्लिकेशन या वेबसाइट में उपभोक्ताओं के लिए, जगह की जानकारी से जुड़ी अन्य सुविधाएं भी उपलब्ध कराई जा सकती हैं. Driver SDK के बारे में ज़्यादा जानने के लिए, Driver SDK की शेड्यूल की गई टास्क की खास जानकारी देखें.
उपयोगकर्ता के लिए उपलब्ध एसडीके के कॉम्पोनेंट
JavaScript Consumer SDK में ये कॉम्पोनेंट शामिल होते हैं:
- यह JavaScript मैप कॉम्पोनेंट है. इसे स्टैंडर्ड
google.maps.Map
इकाई की जगह इस्तेमाल किया जा सकता है.
- Fleet Engine से कनेक्ट करने के लिए डेटा कॉम्पोनेंट.
- गाड़ी और रास्ते को विज़ुअलाइज़ करने के लिए कॉम्पोनेंट. इससे यह पता चलता है कि गाड़ी अपनी मंज़िल तक कैसे पहुंच रही है.
- ड्राइवर के पहुंचने का अनुमानित समय या ड्राइव करने के लिए बची हुई दूरी के लिए रॉ डेटा फ़ीड.
इस टेबल में कॉम्पोनेंट के बारे में बताया गया है.
कॉम्पोनेंट |
ब्यौरा |
मैप दृश्य |
मैप व्यू में, वाहन की प्रोग्रेस दिखाई जाती है. साथ ही, वाहन के रास्ते पर आगे बढ़ने के साथ-साथ व्यू अपडेट होता रहता है. |
शिपमेंट की जगह की जानकारी देने वाली कंपनी |
शिपमेंट को ट्रैक करने की सुविधा देने वाली कंपनी, जगह की जानकारी वाला फ़ीड उपलब्ध कराती है. इससे मैप पर शिपमेंट के बारे में काम की जानकारी दिखाई जा सकती है. जैसे, शिपमेंट को पिकअप या डिलीवर करने की जगह और डिलीवरी करने वाले वाहन की जगह और रास्ता.
|
पुष्टि करने वाला टोकन फ़ेचर |
ऑथेंटिकेशन टोकन फ़ेचर, आपके बैकएंड सर्वर से JSON Web Token (JWT) पाता है. इससे Fleet Engine में सेव किए गए जगह की जानकारी के डेटा को ऐक्सेस करने की पुष्टि की जा सकती है. आपने JavaScript Journey Sharing Library का इस्तेमाल करके, अपने वेब ऐप्लिकेशन में पुष्टि करने वाले टोकन को फ़ेच करने की सुविधा लागू की हो. ध्यान दें कि आपको अपने बैकएंड सर्वर पर, Fleet Engine के लिए JSON Web Token (JWT) बनाने की सेवा भी लागू करनी होगी. |
मैप स्टाइल के विकल्प |
कस्टम स्टाइलिंग के विकल्पों का इस्तेमाल करके, अपने मैप की डिफ़ॉल्ट स्टाइलिंग को बदला जा सकता है. इससे मैप की स्टाइलिंग, आपके वेब ऐप्लिकेशन की स्टाइलिंग से मैच हो जाएगी. |
Consumer SDK का इस्तेमाल कैसे करें
आगे क्या करना है
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-31 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eThe Consumer SDK enables businesses to provide customers with real-time visibility into the location and progress of their scheduled deliveries or service orders.\u003c/p\u003e\n"],["\u003cp\u003eThis SDK offers tools for creating map-based displays within consumer applications, showing the driver's location, estimated time of arrival, and route information.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can integrate the Consumer SDK to create a comprehensive and seamless delivery tracking experience for their customers, improving transparency and satisfaction.\u003c/p\u003e\n"],["\u003cp\u003eKey components of the SDK include a map view, a location provider, authentication mechanisms, and customizable styling options to tailor the experience.\u003c/p\u003e\n"],["\u003cp\u003eTo begin, developers need to set up the JavaScript Consumer SDK, follow a specific shipment for tracking, and customize the map interface as desired.\u003c/p\u003e\n"]]],[],null,["Tailor the consumer experience for scheduled tasks by allowing consumers to\nfollow the progress of their scheduled deliveries or service orders.\n\nWhat is the Consumer SDK for scheduled tasks?\n\nThe Consumer SDK is a feature of Fleet Engine for scheduled tasks that also\nincludes toolkits to create the consumer experience. These toolkits let you\ncreate map-based displays to visualize a driver's\nprogress and show the status of the task associated with a scheduled stop. It's\ndesigned for two primary audiences:\n\n- **Consumer end users** who want to know delivery status for an individual shipment order. This document covers how to implement that consumer experience with the Consumer SDK in JavaScript, which provides the `FleetEngineShipmentLocationProvider` class and associated interfaces.\n- **Fleet operators** who want to track the delivery and vehicle status for an entire fleet of vehicles. For information about tracking fleets, see the [Fleet tracking guide](/maps/documentation/mobility/operations/fleet-tracking).\n\nWhy use the Consumer SDK for scheduled tasks?\n\nIntegrating the Consumer SDK into your scheduled tasks consumer applications\nlets you provide a comprehensive consumer experience, with near real-time\nlocation updates and road-snapped positions. Your consumers can see the delivery\nvehicle's location and progress details that help them understand where their\nshipment is.\n\nWhat can you do with the Consumer SDK?\n\nUse the Consumer SDK to share the following shipment information with your\nconsumers:\n\n- Delivery vehicle's real-time position on a map.\n- ETA for package arrival, adjusted for changing circumstances, such as traffic.\n- Route the vehicle is taking.\n- Distance and number of stops remaining before their shipment is delivered.\n\nYou can also create other seamless geo-enabled consumer experiences inside your\nconsumer app or website based on location information from the Driver SDK. For\ndetails about the Driver SDK, see the\n[Driver SDK scheduled tasks overview](/maps/documentation/mobility/driver-sdk/scheduled).\n\nConsumer SDK components\n\nThe JavaScript Consumer SDK contains the following components:\n\n- A JavaScript map component that is a drop-in replacement for a standard `google.maps.Map` entity.\n- Data components to connect with Fleet Engine.\n- Components for visualization of the vehicle and route as it progresses to a destination.\n- Raw data feeds for a driver's ETA or the remaining distance to drive.\n\nThe following table describes the components.\n\n| Component | Description |\n|------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Map view | The map view illustrates the progress of the vehicle, updating the view as the vehicle moves along its route. |\n| Shipment location provider | The shipment tracking provider provides a location feed so that the map can display useful information about the shipment, such as the pickup or delivery location of the shipment and the location and route of the delivery vehicle. |\n| Authentication token fetcher | The authentication token fetcher gets JSON Web Tokens (JWTs) from your backend server to authenticate access to the location data stored in Fleet Engine. You implement an authentication token fetcher as part of your web application using the JavaScript Journey Sharing Library. Note that you must also implement a JSON Web Token (JWT) creation service for Fleet Engine on your backend server. |\n| Map style options | You can use custom styling options to change the default styling of your map to match the styling of your web application. |\n\nHow to use the Consumer SDK\n\n|---|----------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| 1 | **Set up the JavaScript Consumer SDK** | For more information, see [Set up the JavaScript Consumer SDK](/maps/documentation/mobility/journey-sharing/scheduled/shipment-tracking/setup). |\n| 2 | **Follow a shipment** | Learn how to initialize the map, start following a shipment, and stop following with appropriate clean up. See [Follow a shipment](/maps/documentation/mobility/journey-sharing/scheduled/shipment-tracking/follow). |\n| 3 | **Customize the map interface** | You can use the JavaScript Consumer SDK for scheduled tasks to customize the map interface, provide marker customization, or style polylines. See [Style a map](/maps/documentation/mobility/journey-sharing/scheduled/shipment-tracking/style-map), [Customize markers](/maps/documentation/mobility/journey-sharing/scheduled/shipment-tracking/customize-markers), and [Customize polylines](/maps/documentation/mobility/journey-sharing/scheduled/shipment-tracking/customize-polylines). |\n\nWhat's next\n\n- [Set up the JavaScript Consumer SDK](/maps/documentation/mobility/journey-sharing/scheduled/shipment-tracking/setup)"]]