ड्राइवर SDK शुरू करें
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वाहन से जुड़े अपडेट, Fleet Engine और ग्राहक के बैकएंड को भेजने के लिए, ऐसा GMTDDeliveryDriverAPI
इंस्टेंस बनाएं जिसमें providerID
, vehicleID
, driverContext
, और accessTokenProvider
शामिल हों.
providerID
, आपके Google Cloud प्रोजेक्ट के प्रोजेक्ट आईडी जैसा ही होता है. Google Cloud प्रोजेक्ट सेट अप करने के बारे में जानने के लिए, Fleet Engine प्रोजेक्ट बनाना लेख पढ़ें.
यहां दिए गए उदाहरण में, GMTDDeliveryDriverAPI
इंस्टेंस बनाने का तरीका बताया गया है.
Objective-C
#import "SampleViewController.h"
#import "SampleAccessTokenProvider.h"
#import <GoogleRidesharingDriver/GoogleRidesharingDriver.h>
static NSString *const PROVIDER_ID = @"INSERT_YOUR_PROVIDER_ID";
@implementation SampleViewController {
GMSMapView *_mapView;
}
- (void)viewDidLoad {
NSString *vehicleID = @"INSERT_CREATED_VEHICLE_ID";
SampleAccessTokenProvider *accessTokenProvider =
[[SampleAccessTokenProvider alloc] init];
GMTDDriverContext *driverContext =
[[GMTDDriverContext alloc] initWithAccessTokenProvider:accessTokenProvider
providerID:PROVIDER_ID
vehicleID:vehicleID
navigator:_mapView.navigator];
GMTDDeliveryDriverAPI *deliveryDriverAPI = [[GMTDDeliveryDriverAPI alloc] initWithDriverContext:driverContext];
}
आगे क्या करना है
वाहन को तैयार करना
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-01-14 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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-01-14 (UTC) को अपडेट किया गया."],[[["To initiate vehicle updates to Fleet Engine and the customer backend, create a `GMTDDeliveryDriverAPI` instance."],["This instance requires your Google Cloud Project ID (`providerID`), `vehicleID`, `driverContext`, and `accessTokenProvider`."],["An Objective-C code example demonstrates the creation of a `GMTDDeliveryDriverAPI` instance using these parameters."],["For setup instructions of your Google Cloud Project, refer to the provided documentation link."],["The next step involves getting the vehicle ready, as detailed in the provided link."]]],[]]