Reference documentation and code samples for the Google Maps FleetEngine V1 Client class LocationSensor.
The sensor or methodology used to determine the location.
Protobuf type maps.fleetengine.v1.LocationSensor
Namespace
Google \ Maps \ FleetEngine \ V1
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
UNKNOWN_SENSOR
Value: 0
The sensor is unspecified or unknown.
Generated from protobuf enum UNKNOWN_SENSOR = 0;
GPS
Value: 1
GPS or Assisted GPS.
Generated from protobuf enum GPS = 1;
NETWORK
Value: 2
Assisted GPS, cell tower ID, or WiFi access point.
Generated from protobuf enum NETWORK = 2;
PASSIVE
Value: 3
Cell tower ID or WiFi access point.
Generated from protobuf enum PASSIVE = 3;
ROAD_SNAPPED_LOCATION_PROVIDER
Value: 4
A location determined by the mobile device to be the most likely
road position.
Generated from protobuf enum ROAD_SNAPPED_LOCATION_PROVIDER = 4;
CUSTOMER_SUPPLIED_LOCATION
Value: 5
A customer-supplied location from an independent source. Typically, this
value is used for a location provided from sources other than the mobile
device running Driver SDK. If the original source is described by one of
the other enum values, use that value. Locations marked
CUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle's
last_location.supplemental_location_sensor.
Generated from protobuf enum CUSTOMER_SUPPLIED_LOCATION = 5;
FLEET_ENGINE_LOCATION
Value: 6
A location calculated by Fleet Engine based on the signals available to it.
Output only. This value will be rejected if it is received in a request.
Generated from protobuf enum FLEET_ENGINE_LOCATION = 6;
FUSED_LOCATION_PROVIDER
Value: 100
Android's Fused Location Provider.
Generated from protobuf enum FUSED_LOCATION_PROVIDER = 100;
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Maps FleetEngine V1 Client - Class LocationSensor (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.LocationSensor)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.LocationSensor)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.LocationSensor)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.LocationSensor)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.LocationSensor) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class LocationSensor.\n\nThe sensor or methodology used to determine the location.\n\nProtobuf type `maps.fleetengine.v1.LocationSensor`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### UNKNOWN_SENSOR\n\n Value: 0\n\nThe sensor is unspecified or unknown.\n\nGenerated from protobuf enum `UNKNOWN_SENSOR = 0;`\n\n### GPS\n\n Value: 1\n\nGPS or Assisted GPS.\n\nGenerated from protobuf enum `GPS = 1;`\n\n### NETWORK\n\n Value: 2\n\nAssisted GPS, cell tower ID, or WiFi access point.\n\nGenerated from protobuf enum `NETWORK = 2;`\n\n### PASSIVE\n\n Value: 3\n\nCell tower ID or WiFi access point.\n\nGenerated from protobuf enum `PASSIVE = 3;`\n\n### ROAD_SNAPPED_LOCATION_PROVIDER\n\n Value: 4\n\nA location determined by the mobile device to be the most likely\nroad position.\n\nGenerated from protobuf enum `ROAD_SNAPPED_LOCATION_PROVIDER = 4;`\n\n### CUSTOMER_SUPPLIED_LOCATION\n\n Value: 5\n\nA customer-supplied location from an independent source. Typically, this\nvalue is used for a location provided from sources other than the mobile\ndevice running Driver SDK. If the original source is described by one of\nthe other enum values, use that value. Locations marked\nCUSTOMER_SUPPLIED_LOCATION are typically provided via a Vehicle's\n`last_location.supplemental_location_sensor`.\n\nGenerated from protobuf enum `CUSTOMER_SUPPLIED_LOCATION = 5;`\n\n### FLEET_ENGINE_LOCATION\n\n Value: 6\n\nA location calculated by Fleet Engine based on the signals available to it.\n\nOutput only. This value will be rejected if it is received in a request.\n\nGenerated from protobuf enum `FLEET_ENGINE_LOCATION = 6;`\n\n### FUSED_LOCATION_PROVIDER\n\n Value: 100\n\nAndroid's Fused Location Provider.\n\nGenerated from protobuf enum `FUSED_LOCATION_PROVIDER = 100;`\n\n### CORE_LOCATION\n\n Value: 200\n\nThe location provider on Apple operating systems.\n\nGenerated from protobuf enum `CORE_LOCATION = 200;`"]]