ES Libraries Documentation

Online documentation:
Home
What Sensor Data?
Collecting Sensor Data
Formatting Sensor Data
Store/Transfer Data
Research
Contributing
Project Github Page

Location

The location sensor finds the latitude/longitude of the device. There are two sensors in the library for this: the pull Location sensor and the push Passive Location sensor.

This sensor requires either the 'access coarse location' or 'access fine location' permission. The JSON format for a sample from these sensors are:

{
	"userid":"user-id",
	"deviceid":"device-id",
	"senseStartTime":"14:04:14:087 30 06 2015 +0100 GMT+01:00",
	"senseStartTimeMillis":1435669454087,
	"dataType":"Location",
	"locations":
	[
		{
			"latitude":0,
			"longitude":0,
			"accuracy":30.45199966430664,
			"speed":0,
			"bearing":0,
			"provider":"network",
			"time":1435669478189,
			"local_time":"14:04:38:189 30 06 2015 +0100 GMT+01:00"
		}
	],
	"configAccuracy":"LOCATION_ACCURACY_COARSE"
}
{
	"userid":"test-user-id",
	"deviceid":"test-device-id",
	"senseStartTime":"16:25:04:729 30 06 2015 +0100 GMT+01:00",
	"senseStartTimeMillis":1435677904729,
	"dataType":"PassiveLocation",
	"latitude":0,
	"longitude":0,
	"accuracy":36.00299835205078,
	"speed":0,
	"bearing":0,
	"provider":"network",
	"time":1435677904453
}