reviewsהשקת Places UI Kit: ספריית רכיבים מוכנה לשימוש בעלות נמוכה, שמאפשרת לכם להוסיף לכל מפה שתבחרו את ממשק המשתמש המוכר של 'מקומות' במפות Google. כדאי לנסות אותו ולשלוח לנו משוב כדי לעזור לנו לעצב את העתיד של GMP.
Authentication
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
ממשק google.maps.journeySharing.AuthToken
טוקן האימות שהוחזר על ידי הכלי לאחזור האסימון.
מאפיינים |
expiresInSeconds |
סוג: number
זמן התפוגה בשניות. התוקף של הטוקן יפוג לאחר פרק הזמן הזה אחרי האחזור. |
token |
סוג: string
הטוקן. |
ממשק google.maps.journeySharing.AuthTokenContext
מכיל מידע נוסף שנחוץ כדי ליצור אסימוני JSON Web.
מאפיינים |
deliveryVehicleId optional |
סוג: string optional
אם מציינים את הפרמטר הזה, האסימון שייווצר צריך לכלול הצהרת DeliveryVehicleId פרטית עבור deliveryVehicleId שצוין. |
taskId optional |
סוג: string optional
אם האסימון הונפק, הוא צריך לכלול הצהרת TaskId פרטית עבור taskId שצוין. |
trackingId optional |
סוג: string optional
אם האסימון יהיה מותאם אישית, הוא צריך לכלול הצהרת TrackingId פרטית עבור מזהה המעקב שסופק. |
tripId optional |
סוג: string optional
אם הטוקן הוטבע, הוא צריך לכלול הצהרת TripId פרטית עבור מזהה הנסיעה שצוין. |
vehicleId optional |
סוג: string optional
אם הוא מסופק, לטוקן שייווצר צריכה להיות הצהרת VehicleId פרטית עבור מזהה הרכב שצוין. |
ממשק google.maps.journeySharing.AuthTokenFetcherOptions
אפשרויות למאגר של אסימוני האימות.
מאפיינים |
context |
ההקשר של טוקן האימות. המזהים שצוינו בהקשר צריכים להתווסף לבקשה שנשלחת לנקודת הקצה ליצירת אסימוני JSON Web. |
serviceType |
סוג השירות של Fleet Engine. |
google.maps.journeySharing.FleetEngineServiceType
קבועים
סוגי השירותים של Fleet Engine.
אפשר לגשת אליו באמצעות חיוג למספר const {FleetEngineServiceType} = await google.maps.importLibrary("journeySharing")
. ספריות ב-Maps JavaScript API
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-22 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-22 (שעון UTC)."],[],[],null,["# Authentication\n\nThe documentation for has moved to a different page.\n\nThe documentation for the linked item could not be found. \n\n[AuthToken](#AuthToken)\ninterface\n---------------------------------\n\n\ngoogle.maps.journeySharing`.`AuthToken\ninterface\n\nThe auth token returned by the token fetcher.\n\n| ### Properties ||\n|-------------------------------------------------|-----------------------------------------------------------------------------------------------------------|\n| [expiresInSeconds](#AuthToken.expiresInSeconds) | **Type:** `number` The expiration time in seconds. A token expires in this amount of time after fetching. |\n| [token](#AuthToken.token) | **Type:** `string` The token. |\n\n[AuthTokenContext](#AuthTokenContext)\ninterface\n-----------------------------------------------\n\n\ngoogle.maps.journeySharing`.`AuthTokenContext\ninterface\n\nContains additional information needed to mint JSON Web Tokens.\n\n| ### Properties ||\n|---------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| [deliveryVehicleId](#AuthTokenContext.deliveryVehicleId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `DeliveryVehicleId` claim for the provided deliveryVehicleId. |\n| [taskId](#AuthTokenContext.taskId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `TaskId` claim for the provided taskId. |\n| [trackingId](#AuthTokenContext.trackingId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `TrackingId` claim for the provided trackingId. |\n| [tripId](#AuthTokenContext.tripId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `TripId` claim for the provided tripId. |\n| [vehicleId](#AuthTokenContext.vehicleId)` `optional | **Type:** `string `optional When provided, the minted token should have a private `VehicleId` claim for the provided vehicleId. |\n\n[AuthTokenFetcher](#AuthTokenFetcher)\ntypedef\n---------------------------------------------\n\n\ngoogle.maps.journeySharing`.`AuthTokenFetcher\ntypedef\n\nAuth token function type. \n\nA function that accepts a [AuthTokenFetcherOptions](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthTokenFetcherOptions) object, containing details about the auth token to be minted. This function should mint the token and return a [AuthToken](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthToken) containing the token and its expiry time.\n\n`function(`[AuthTokenFetcherOptions](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthTokenFetcherOptions)`): `[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)`\u003c`[AuthToken](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthToken)`\u003e` \n\n[AuthTokenFetcherOptions](#AuthTokenFetcherOptions)\ninterface\n-------------------------------------------------------------\n\n\ngoogle.maps.journeySharing`.`AuthTokenFetcherOptions\ninterface\n\nOptions for the auth token fetcher.\n\n| ### Properties ||\n|-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [context](#AuthTokenFetcherOptions.context) | **Type:** [AuthTokenContext](/maps/documentation/javascript/reference/journey-sharing-authentication#AuthTokenContext) The auth token context. IDs specified in the context should be added to the request sent to the JSON Web Token minting endpoint. |\n| [serviceType](#AuthTokenFetcherOptions.serviceType) | **Type:** [FleetEngineServiceType](/maps/documentation/javascript/reference/journey-sharing-authentication#FleetEngineServiceType) The Fleet Engine service type. |\n\n[FleetEngineServiceType](#FleetEngineServiceType)\nconstants\n-----------------------------------------------------------\n\n\ngoogle.maps.journeySharing`.`FleetEngineServiceType\nconstants\n\nTypes of Fleet Engine services.\n\nAccess by calling `const {FleetEngineServiceType} = await google.maps.importLibrary(\"journeySharing\")`. \nSee [Libraries in the Maps JavaScript API](/maps/documentation/javascript/libraries).\n\n| ### Constants ||\n|------------------------------------------------------------------------------|--------------------------------------------------------|\n| [DELIVERY_VEHICLE_SERVICE](#FleetEngineServiceType.DELIVERY_VEHICLE_SERVICE) | Fleet Engine service used to access delivery vehicles. |\n| [TASK_SERVICE](#FleetEngineServiceType.TASK_SERVICE) | Fleet Engine service used to access task information. |\n| [TRIP_SERVICE](#FleetEngineServiceType.TRIP_SERVICE) | Fleet Engine service used to access trip information. |\n| [UNKNOWN_SERVICE](#FleetEngineServiceType.UNKNOWN_SERVICE) | Unknown Fleet Engine service. |"]]