Represents a DeliveryVehicleLocation.
Package
@googlemaps/fleetengine-deliveryConstructors
(constructor)(properties)
constructor(properties?: maps.fleetengine.delivery.v1.IDeliveryVehicleLocation);
Constructs a new DeliveryVehicleLocation.
Parameter | |
---|---|
Name | Description |
properties |
IDeliveryVehicleLocation
Properties to set |
Properties
altitude
public altitude?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation altitude.
altitudeAccuracy
public altitudeAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation altitudeAccuracy.
bearingAccuracy
public bearingAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation bearingAccuracy.
heading
public heading?: (google.protobuf.IInt32Value|null);
DeliveryVehicleLocation heading.
headingAccuracy
public headingAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation headingAccuracy.
horizontalAccuracy
public horizontalAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation horizontalAccuracy.
isGpsSensorEnabled
public isGpsSensorEnabled?: (google.protobuf.IBoolValue|null);
DeliveryVehicleLocation isGpsSensorEnabled.
isRoadSnapped
public isRoadSnapped?: (google.protobuf.IBoolValue|null);
DeliveryVehicleLocation isRoadSnapped.
latlngAccuracy
public latlngAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation latlngAccuracy.
location
public location?: (google.type.ILatLng|null);
DeliveryVehicleLocation location.
locationSensor
public locationSensor: (maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor|keyof typeof maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor);
DeliveryVehicleLocation locationSensor.
numStaleUpdates
public numStaleUpdates?: (google.protobuf.IInt32Value|null);
DeliveryVehicleLocation numStaleUpdates.
rawLocation
public rawLocation?: (google.type.ILatLng|null);
DeliveryVehicleLocation rawLocation.
rawLocationAccuracy
public rawLocationAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation rawLocationAccuracy.
rawLocationSensor
public rawLocationSensor: (maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor|keyof typeof maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor);
DeliveryVehicleLocation rawLocationSensor.
rawLocationTime
public rawLocationTime?: (google.protobuf.ITimestamp|null);
DeliveryVehicleLocation rawLocationTime.
roadSnapped
public roadSnapped: boolean;
DeliveryVehicleLocation roadSnapped.
serverTime
public serverTime?: (google.protobuf.ITimestamp|null);
DeliveryVehicleLocation serverTime.
speed
public speed?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation speed.
speedAccuracy
public speedAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation speedAccuracy.
speedKmph
public speedKmph?: (google.protobuf.IInt32Value|null);
DeliveryVehicleLocation speedKmph.
supplementalLocation
public supplementalLocation?: (google.type.ILatLng|null);
DeliveryVehicleLocation supplementalLocation.
supplementalLocationAccuracy
public supplementalLocationAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation supplementalLocationAccuracy.
supplementalLocationSensor
public supplementalLocationSensor: (maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor|keyof typeof maps.fleetengine.delivery.v1.DeliveryVehicleLocationSensor);
DeliveryVehicleLocation supplementalLocationSensor.
supplementalLocationTime
public supplementalLocationTime?: (google.protobuf.ITimestamp|null);
DeliveryVehicleLocation supplementalLocationTime.
timeSinceUpdate
public timeSinceUpdate?: (google.protobuf.IInt32Value|null);
DeliveryVehicleLocation timeSinceUpdate.
updateTime
public updateTime?: (google.protobuf.ITimestamp|null);
DeliveryVehicleLocation updateTime.
verticalAccuracy
public verticalAccuracy?: (google.protobuf.IDoubleValue|null);
DeliveryVehicleLocation verticalAccuracy.
Methods
create(properties)
public static create(properties?: maps.fleetengine.delivery.v1.IDeliveryVehicleLocation): maps.fleetengine.delivery.v1.DeliveryVehicleLocation;
Creates a new DeliveryVehicleLocation instance using the specified properties.
Parameter | |
---|---|
Name | Description |
properties |
IDeliveryVehicleLocation
Properties to set |
Returns | |
---|---|
Type | Description |
DeliveryVehicleLocation |
DeliveryVehicleLocation instance |
decode(reader, length)
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): maps.fleetengine.delivery.v1.DeliveryVehicleLocation;
Decodes a DeliveryVehicleLocation message from the specified reader or buffer.
Parameters | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
length |
number
Message length if known beforehand |
Returns | |
---|---|
Type | Description |
DeliveryVehicleLocation |
DeliveryVehicleLocation |
decodeDelimited(reader)
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): maps.fleetengine.delivery.v1.DeliveryVehicleLocation;
Decodes a DeliveryVehicleLocation message from the specified reader or buffer, length delimited.
Parameter | |
---|---|
Name | Description |
reader |
(Reader|Uint8Array)
Reader or buffer to decode from |
Returns | |
---|---|
Type | Description |
DeliveryVehicleLocation |
DeliveryVehicleLocation |
encode(message, writer)
public static encode(message: maps.fleetengine.delivery.v1.IDeliveryVehicleLocation, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified DeliveryVehicleLocation message. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IDeliveryVehicleLocation
DeliveryVehicleLocation message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
encodeDelimited(message, writer)
public static encodeDelimited(message: maps.fleetengine.delivery.v1.IDeliveryVehicleLocation, writer?: $protobuf.Writer): $protobuf.Writer;
Encodes the specified DeliveryVehicleLocation message, length delimited. Does not implicitly messages.
Parameters | |
---|---|
Name | Description |
message |
IDeliveryVehicleLocation
DeliveryVehicleLocation message or plain object to encode |
writer |
$protobuf.Writer
Writer to encode to |
Returns | |
---|---|
Type | Description |
$protobuf.Writer |
Writer |
fromObject(object)
public static fromObject(object: { [k: string]: any }): maps.fleetengine.delivery.v1.DeliveryVehicleLocation;
Creates a DeliveryVehicleLocation message from a plain object. Also converts values to their respective internal types.
Parameter | |
---|---|
Name | Description |
object |
{ [k: string]: any }
Plain object |
Returns | |
---|---|
Type | Description |
DeliveryVehicleLocation |
DeliveryVehicleLocation |
getTypeUrl(typeUrlPrefix)
public static getTypeUrl(typeUrlPrefix?: string): string;
Gets the default type url for DeliveryVehicleLocation
Parameter | |
---|---|
Name | Description |
typeUrlPrefix |
string
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns | |
---|---|
Type | Description |
string |
The default type url |
toJSON()
public toJSON(): { [k: string]: any };
Converts this DeliveryVehicleLocation to JSON.
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
JSON object |
toObject(message, options)
public static toObject(message: maps.fleetengine.delivery.v1.DeliveryVehicleLocation, options?: $protobuf.IConversionOptions): { [k: string]: any };
Creates a plain object from a DeliveryVehicleLocation message. Also converts values to other types if specified.
Parameters | |
---|---|
Name | Description |
message |
DeliveryVehicleLocation
DeliveryVehicleLocation |
options |
$protobuf.IConversionOptions
Conversion options |
Returns | |
---|---|
Type | Description |
{ [k: string]: any } |
Plain object |
verify(message)
public static verify(message: { [k: string]: any }): (string|null);
Verifies a DeliveryVehicleLocation message.
Parameter | |
---|---|
Name | Description |
message |
{ [k: string]: any }
Plain object to verify |
Returns | |
---|---|
Type | Description |
(string|null) |
|