Customization applied to the active polyline. An active polyline
corresponds to a portion of the route the vehicle is currently traversing
through.
Use this field to specify custom styling (such as
polyline color) and interactivity (such as click handling).
isNew
parameter in the function
parameters object is set to true
.) Additionally, this
function is invoked when the polyline's coordinates change, or when
the location provider receives data from Fleet Engine, regardless of
whether the data corresponding to this polyline have
changed.Customization applied to the vehicle trip destination marker.
Use
this field to specify custom styling (such as marker icon) and
interactivity (such as click handling).
isNew
parameter in the function parameters object is set to true
.)
Additionally, this function is invoked when the location provider
receives data from Fleet Engine, regardless of whether the data
corresponding to this marker have changed.Customization applied to the vehicle trip intermediate destination
markers.
Use this field to specify custom styling (such as marker
icon) and interactivity (such as click handling).
isNew
parameter in the function parameters object is set to true
.)
Additionally, this function is invoked when the location provider
receives data from Fleet Engine, regardless of whether the data
corresponding to this marker have changed.Customization applied to the vehicle trip origin marker.
Use this
field to specify custom styling (such as marker icon) and interactivity
(such as click handling).
isNew
parameter in the function parameters
object is set to true
.) Additionally, this function is
invoked when the location provider receives data from Fleet Engine,
regardless of whether the data corresponding to this marker have
changed.Minimum time between fetching location updates in milliseconds. If it
takes longer than pollingIntervalMillis
to fetch a location
update, the next location update is not started until the current one
finishes.
Setting this value to 0 disables recurring location
updates. A new location update is fetched if any of the parameters
observed by the location provider changes.
The default polling
interval is 5000 milliseconds, the minimum interval. If you set the
polling interval to a lower non-zero value, 5000 is used.
The consumer's project ID from Google Cloud Console.
Customization applied to the remaining polyline. A remaining polyline
corresponds to a portion of the route the vehicle has not yet started
traversing through.
Use this field to specify custom styling
(such as polyline color) and interactivity (such as click
handling).
isNew
parameter in the function parameters object is set to true
.)
Additionally, this function is invoked when the polyline's
coordinates change, or when the location provider receives data from
Fleet Engine, regardless of whether the data corresponding to this
polyline have changed.Threshold for stale vehicle location. If the last updated location for the vehicle is older this threshold, the vehicle will not be displayed. Defaults to 24 hours in milliseconds. If the threshold is less than 0, or Infinity, the threshold will be ignored and the vehicle location will not be considered stale.
Customization applied to the taken polyline. A taken polyline corresponds
to a portion of the route the vehicle has already traversed through.
Use this field to specify custom styling (such as polyline color)
and interactivity (such as click handling).
isNew
parameter in the function parameters
object is set to true
.) Additionally, this function is
invoked when the polyline's coordinates change, or when the location
provider receives data from Fleet Engine, regardless of whether the data
corresponding to this polyline have changed.The vehicle ID to track immediately after the location provider is instantiated. If not specified, the location provider does not start tracking any vehicle; use google.maps.journeySharing.FleetEngineVehicleLocationProvider.vehicleId to set the ID and begin tracking.
Customization applied to the vehicle marker.
Use this field to
specify custom styling (such as marker icon) and interactivity (such as
click handling).
isNew
parameter in the function parameters
object is set to true
.) Additionally, this function is
invoked when the location provider receives data from Fleet Engine,
regardless of whether the data corresponding to this marker have
changed.Provides JSON Web Tokens for authenticating the client to Fleet Engine.
Generated using TypeDoc
Available only in the v=beta channel: https://goo.gle/3oAthT3.
Options for vehicle location provider.