Data types for location data.
Cycling wheel revolution RPM
If a user goes cycling, this data type can be used to capture their wheel revolutions per minute (RPM). Each data point represents an instantaneous measure of the wheel revolutions, so only the end time should be set. This will be used as the timestamp for the reading.
REST
Name | com.google.cycling.wheel_revolution.rpm |
OAuth permission scopes |
https://www.googleapis.com/auth/fitness.location.read
https://www.googleapis.com/auth/fitness.location.write
|
Fields (format—units) | rpm (float —rpm)
Number of bicycle wheel revolutions per minute. |
Android
Name | com.google.cycling.wheel_revolution.rpm |
Data type object | TYPE_CYCLING_WHEEL_RPM |
Fields (format—units) | FIELD_RPM (float —rpm)
Number of bicycle wheel revolutions per minute. |
Cycling wheel revolution cumulative
If a user goes cycling, this data type can be used to capture the number of wheel revolutions over a time period. Each data point represents the number of revolutions since the count at the start time.
REST
Name | com.google.cycling.wheel_revolution.cumulative |
OAuth permission scopes |
https://www.googleapis.com/auth/fitness.location.read
https://www.googleapis.com/auth/fitness.location.write
|
Fields (format—units) | revolutions (int —count)
Number of bicycle wheel revolutions. |
Android
Name | com.google.cycling.wheel_revolution.cumulative |
Data type object | TYPE_CYCLING_PEDALING_CUMULATIVE |
Fields (format—units) | FIELD_REVOLUTIONS (int —count)
Number of bicycle wheel revolutions. |
Distance delta
This data type captures distance travelled by the user since the last reading, in meters. The total distance over an interval can be calculated by adding together all the values during the interval. The start time of each data point should represent the start of the interval in which the distance was covered. The start time must be equal to or greater than the end time of the previous data point.
REST
Name | com.google.distance.delta |
OAuth permission scopes |
https://www.googleapis.com/auth/fitness.location.read
https://www.googleapis.com/auth/fitness.location.write
|
Fields (format—units) | distance (float —meters)
Distance travelled in meters.
Valid range: 0—100 meters per second |
Android
Name | com.google.distance.delta |
Data type object | TYPE_DISTANCE_DELTA |
Android permissions | ACCESS_FINE_LOCATION and ACTIVITY_RECOGNITION |
Fields (format—units) | FIELD_DISTANCE (float —meters)
Distance travelled in meters.
Valid range: 0—100 meters per second |
Location sample
This data type captures the user's location. Because each data point represents the location of the user at the time of the reading, only the end time should be set. This will be used as the timestamp for the reading.
REST
Name | com.google.location.sample | ||||
OAuth permission scopes |
https://www.googleapis.com/auth/fitness.location.read
https://www.googleapis.com/auth/fitness.location.write
|
||||
Fields (format—units) |
|
Android
Name | com.google.location.sample | ||||
Data type object | TYPE_LOCATION_SAMPLE | ||||
Android permission | ACCESS_FINE_LOCATION | ||||
Fields (format—units) |
|
Speed
This data type captures the user's speed in meters per second. The value represents the scalar magnitude of the speed, so negative values should not occur. Because each data point represents the speed at the time of the reading, only the end time should be set. This will be used as the timestamp for the reading.
REST
Name | com.google.speed |
OAuth permission scopes |
https://www.googleapis.com/auth/fitness.location.read
https://www.googleapis.com/auth/fitness.location.write
|
Fields (format—units) | speed (float —meters per second)
Travelling speed.
Valid range: 0—11,000 meters per second |
Android
Name | com.google.speed |
Data type object | TYPE_SPEED |
Android permission | ACCESS_FINE_LOCATION |
Fields (format—units) | speed (float —meters per second)
Travelling speed.
Valid range: 0—11,000 meters per second |