Interface AuthToken
Interface google.maps.journeySharing.AuthToken
Jeton d'authentification renvoyé par le récupérateur de jetons.
Propriétés | |
|---|---|
expiresInSeconds |
Type :
numberDélai d'expiration en secondes. Un jeton expire après ce délai une fois récupéré. |
token |
Type :
stringJeton. |
Interface AuthTokenContext
Interface google.maps.journeySharing.AuthTokenContext
Contient des informations supplémentaires nécessaires pour créer des jetons Web JSON.
Propriétés | |
|---|---|
deliveryVehicleId optional |
Type :
string optionalLe jeton créé doit comporter une revendication DeliveryVehicleId privée pour l'ID deliveryVehicleId fourni. |
taskId optional |
Type :
string optionalLe jeton créé doit comporter une revendication TaskId privée pour l'ID de tâche fourni. |
trackingId optional |
Type :
string optionalLe jeton créé doit comporter une revendication TrackingId privée pour le trackingId fourni. |
tripId optional |
Type :
string optionalLe jeton créé doit comporter une revendication TripId privée pour l'identifiant tripId fourni. |
vehicleId optional |
Type :
string optionalLorsqu'il est fourni, le jeton créé doit comporter une revendication VehicleId privée pour l'identifiant du véhicule fourni. |
AuthTokenFetcher typedef
google.maps.journeySharing.AuthTokenFetcher
typedef
Type de fonction du jeton d'authentification.
Fonction qui accepte un objet AuthTokenFetcherOptions contenant des informations sur le jeton d'authentification à générer. Cette fonction doit créer le jeton et renvoyer un AuthToken contenant le jeton et son délai d'expiration.
function(AuthTokenFetcherOptions): Promise<AuthToken>
Interface AuthTokenFetcherOptions
Interface google.maps.journeySharing.AuthTokenFetcherOptions
Options pour le récupérateur de jetons d'authentification.
Propriétés | |
|---|---|
context |
Type :
AuthTokenContextContexte du jeton d'authentification. Les ID spécifiés dans le contexte doivent être ajoutés à la requête envoyée au point de terminaison de création de jetons Web JSON. |
serviceType |
Type :
FleetEngineServiceTypeType de service Fleet Engine. |
Constantes FleetEngineServiceType
google.maps.journeySharing.FleetEngineServiceType
constantes
Types de services Fleet Engine.
Accédez-y en appelant le const {FleetEngineServiceType} = await google.maps.importLibrary("journeySharing").
Consultez Bibliothèques de l'API Maps JavaScript.
Constantes | |
|---|---|
DELIVERY_VEHICLE_SERVICE |
Service Fleet Engine utilisé pour accéder aux véhicules de livraison. |
TASK_SERVICE |
Service Fleet Engine utilisé pour accéder aux informations sur les tâches. |
TRIP_SERVICE |
Service Fleet Engine utilisé pour accéder aux informations sur les trajets. |
UNKNOWN_SERVICE |
Service Fleet Engine inconnu. |