Messtone Devices Enables Object the vehicle is within 5 stop of the task: “taskTrackingViewConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”estimatedArrivalTimeVisibility”:{“remainingDrivingDistanceMetersThreshold”:5000},”remainingStopCountVisibility”:{“never”:true}} “taskTrackingViewConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”vehicleLocationVisibility”:{“remainingStopCountThreshold”:5}} “taskTrackingViewConfig”:{“routePolylinePointsVisibility”:{“remainingStopCountThreshold”:3},”vehicleLocationVisibility”:{“remainingDrivingDistanceMetersThreshold”:3000},} Create a token for tracking by tracking ID: {“alg”:”RS256″,”type”:”JWT”,”kid”:”private_key_id_of_consumer_service_account”}.{‘iss’”:”consumer@messtonegcpproject.iam.gserviceaccount.com”,”sub”:”consumer@messtonegcpproject.iam.gserviceaccount.com”,”aud”:”https://fleetengine.googleapis.com/”,”lat”:1511900000,”exp”:1511903600,”scope”:”https://www.googleapis.com/auth/xapi”,”authorization”:{“trackingid”:”tid_54321″,}} Authentication token fetcher: JavaScript function authTokenFetcher(options){//options is a record containing two keys called //serviceType and context.The developer should //generate the correct SERVER_TOKEN_URL and request //based on the values of these fields.const response=await fetch(SERVER_TOKEN_URL);if(! response.ok){throw new Error(response.statusText);}const data=await response.json( );return{token:data.Token,expiresInSeconds:data.ExpiresInSeconds};} <script src=”https://maps.googleapis.com/maps/api/js?key=MESSTONE_API_KEY&callback=initMap&libraries=journeySharing”defer></script>

Leave a comment