Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added schemas for Google activity recognition API. #344

Merged
merged 4 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions commons/passive/google/google_activity_transition_event.avsc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"namespace": "org.radarcns.passive.google",
"type": "record",
"name": "GoogleActivityTransitionEvent",
"doc": "Represents an activity transition event, for example start to walk, stop running etc.",
"fields": [
{ "name": "time", "type": "double", "doc": "The UNIX epoch time (s) for the moment when the activity takes place.." },
{ "name": "timeReceived", "type": "double", "doc": "Device receiver timestamp in UTC (s)." },
{ "name": "activity", "type": {
"name": "ActivityType",
"type": "enum",
"doc": "The detected activity of the device. \nIN_VEHICLE indicates the device is in a vehicle, such as a car. \nON_BICYCLE indicates the device is on a bicycle. \n ON_FOOT indicates the device is on a user who is walking or running. \nRUNNING indicates the device is on a user who is running. This is a sub-activity of ON_FOOT. \nSTILL indicates the device is still (not moving). \nTILTING indicates the device angle relative to gravity changed significantly. This often occurs when a device is picked up from a desk or a user who is sitting stands up. \nWALKING indicates the device is on a user who is walking. This is a sub-activity of ON_FOOT. \nUNKNOWN indicates activity is not detected.",
"symbols": ["IN_VEHICLE", "ON_BICYCLE", "ON_FOOT", "RUNNING", "STILL", "TILTING", "WALKING", "UNKNOWN"]
}, "doc": "Gets the type of the activity of the transition.", "default": "UNKNOWN" },
{ "name": "transition", "type": {
"name": "TransitionType",
"type": "enum",
"doc": "Represents the transition associated with an activity listed in ActivityType. For instance start to walk, stop running etc. \nENTER represents user enters the given activity from ActivityType. \nEXIT represents user exits the given activity from ActivityType.",
"symbols": ["ENTER", "EXIT", "UNKNOWN"]
}, "doc": "Represents the transition associated with an activity listed in ActivityType.", "default": "UNKNOWN" }
]
}
14 changes: 14 additions & 0 deletions specifications/passive/android_google_api-1.0.0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#======================================== Google APIs =============================================#
this-Aditya marked this conversation as resolved.
Show resolved Hide resolved
vendor: GOOGLE
model: API
version: 1.0.0
data:
#Google Activity Recognition
- type: ACTIVITY_TRANSITION_EVENT
app_provider: .google.GoogleActivityProvider
unit: NON_DIMENSIONAL
processing_state: RAW
topic: android_google_activity_transition_event
value_schema: .passive.google.GoogleActivityTransitionEvent
sample_rate:
dynamic: true