-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #119 from mattwigway/new-unc-forms
add new UNC survey and labels
- Loading branch information
Showing
4 changed files
with
107 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"url_abbreviation": "unc-ebike", | ||
"version": 1, | ||
"ts": 1719593268395, | ||
"version": 2, | ||
"ts": 1725639256133, | ||
"server": { | ||
"connectUrl": "https://unc-ebike-openpath.nrel.gov/api/", | ||
"aggregate_call_auth": "user_only" | ||
}, | ||
"opcode": { | ||
"autogen": true, | ||
"autogen": false, | ||
"subgroups": [ | ||
"test", | ||
"default" | ||
|
@@ -17,7 +17,7 @@ | |
"program_or_study": "program", | ||
"start_month": "08", | ||
"start_year": "2024", | ||
"mode_studied": "e-bike", | ||
"mode_studied": "ebike", | ||
"program_admin_contact": "Matt Bhagat-Conway, UNC (email: [email protected])", | ||
"deployment_partner_name": "University of North Carolina at Chapel Hill", | ||
"translated_text": { | ||
|
@@ -54,7 +54,7 @@ | |
"survey_info": { | ||
"surveys": { | ||
"UserProfileSurvey": { | ||
"formPath": "json/demo-survey-v2.json", | ||
"formPath": "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/survey_resources/unc-ebike/onboarding-v1.xml", | ||
"version": 1, | ||
"compatibleWith": 1, | ||
"dataKey": "manual/demographic_survey", | ||
|
@@ -66,6 +66,7 @@ | |
}, | ||
"trip-labels": "MULTILABEL" | ||
}, | ||
"label_options": "https://raw.githubusercontent.com/e-mission/nrel-openpath-deploy-configs/main/label_options/unc-ebike-label-options.json", | ||
"display_config": { | ||
"use_imperial": true | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{ | ||
"MODE": [ | ||
{"value": "car", "baseMode": "CAR", "met_equivalent": "IN_VEHICLE", "kgCo2PerKm": 0.22031}, | ||
{"value": "walk", "baseMode":"WALKING", "met_equivalent":"WALKING", "kgCo2PerKm": 0}, | ||
{"value": "ebike", "baseMode":"E_BIKE", "met": {"ALL": {"range": [0, -1], "mets": 4.9}}, "kgCo2PerKm": 0.00728}, | ||
{"value": "bike", "baseMode":"BICYCLING", "met_equivalent":"BICYCLING", "kgCo2PerKm": 0}, | ||
{"value": "bus", "baseMode": "BUS", "met_equivalent": "IN_VEHICLE", "kgCo2PerKm": 0.20727}, | ||
{"value": "taxi", "baseMode":"TAXI", "met_equivalent":"IN_VEHICLE", "kgCo2PerKm": 0.30741}, | ||
{"value": "ridehail", "baseMode":"TAXI", "met_equivalent":"IN_VEHICLE", "kgCo2PerKm": 0.30741}, | ||
{"value": "train", "baseMode": "TRAIN", "met_equivalent":"IN_VEHICLE", "kgCo2PerKm": 0.12256}, | ||
{"value": "air", "baseMode":"AIR", "met_equivalent":"IN_VEHICLE", "kgCo2PerKm": 0.09975}, | ||
{"value": "not_a_trip", "baseMode":"UNKNOWN", "met_equivalent":"UNKNOWN", "kgCo2PerKm": 0}, | ||
{"value": "other", "baseMode":"OTHER", "met_equivalent":"UNKNOWN", "kgCo2PerKm": 0} | ||
], | ||
"PURPOSE": [ | ||
{"value": "home"}, | ||
{"value": "work"}, | ||
{"value": "school"}, | ||
{"value": "shopping"}, | ||
{"value": "medical"}, | ||
{"value": "friends_family"}, | ||
{"value": "religious"}, | ||
{"value": "restaurant"}, | ||
{"value": "entertainment"}, | ||
{"value": "recreation"}, | ||
{"value": "pudo"}, | ||
{"value": "accbus"}, | ||
{"value": "acctrainair"}, | ||
{"value": "other"} | ||
], | ||
"REPLACED_MODE": [ | ||
{"value": "no_travel"}, | ||
{"value": "car"}, | ||
{"value": "walk"}, | ||
{"value": "e-bike"}, | ||
{"value": "bike"}, | ||
{"value": "bus"}, | ||
{"value": "taxi"}, | ||
{"value": "ridehail"}, | ||
{"value": "train"}, | ||
{"value": "air"}, | ||
{"value": "other"} | ||
], | ||
"translations": { | ||
"en": { | ||
"car": "Car", | ||
"walk": "Walk", | ||
"bike": "Regular bike", | ||
"ebike": "E-bike", | ||
"bus": "Bus", | ||
"taxi": "Taxi", | ||
"ridehail": "Uber / Lyft", | ||
"train": "Train / Amtrak", | ||
"air": "Airplane", | ||
"not_a_trip": "Not a trip", | ||
"other": "Other", | ||
"home": "Home", | ||
"work": "Work", | ||
"school": "School", | ||
"shopping": "Shopping", | ||
"medical": "Medical", | ||
"friends_family": "Visiting friends or family", | ||
"religious": "Church or house of worship", | ||
"restaurant": "Restaurant", | ||
"entertainment": "Entertainment, sightseeing, etc.", | ||
"recreation": "Recreation / exercise", | ||
"pudo": "Pick up / drop off a person", | ||
"accbus": "Get to / from bus stop", | ||
"acctrainair": "Get to / from train station or airport", | ||
"no_travel": "Would not have made trip" | ||
}, | ||
"es": { | ||
"car": "Car", | ||
"walk": "Walk", | ||
"bike": "Regular bike", | ||
"ebike": "E-bike", | ||
"bus": "Bus", | ||
"taxi": "Taxi", | ||
"ridehail": "Uber / Lyft", | ||
"train": "Train / Amtrak", | ||
"air": "Airplane", | ||
"not_a_trip": "Not a trip", | ||
"other": "Other", | ||
"home": "Home", | ||
"work": "Work", | ||
"school": "School", | ||
"shopping": "Shopping", | ||
"medical": "Medical", | ||
"friends_family": "Visiting friends or family", | ||
"religious": "Church or house of worship", | ||
"restaurant": "Restaurant", | ||
"entertainment": "Entertainment, sightseeing, etc.", | ||
"recreation": "Recreation / exercise", | ||
"pudo": "Pick up / drop off a person", | ||
"accbus": "Get to / from bus stop", | ||
"acctrainair": "Get to / from train station or airport", | ||
"no_travel": "Would not have made trip" | ||
} | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0"?><h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:odk="http://www.opendatakit.org/xforms"><h:head><h:title>demographic-survey</h:title><model odk:xforms-version="1.0.0"><itext><translation lang="English (en)"><text id="smartphone-0"><value>iPhone</value></text><text id="smartphone-1"><value>Android</value></text><text id="smartphone-2"><value>Don't know</value></text><text id="smartphone-3"><value>Other</value></text><text id="/data/smartphone:label"><value>What type of smartphone do you have?</value></text></translation><translation lang="Español (es)"><text id="smartphone-0"><value>iPhone</value></text><text id="smartphone-1"><value>Android</value></text><text id="smartphone-2"><value>No lo sé</value></text><text id="smartphone-3"><value>Otro tipo</value></text><text id="/data/smartphone:label"><value>¿Que tipo de teléfono inteligente usted tiene?</value></text></translation></itext><instance><data id="demographic-survey"><smartphone/><meta><instanceID/></meta></data></instance><instance id="smartphone"><root><item><itextId>smartphone-0</itextId><name>iphone</name></item><item><itextId>smartphone-1</itextId><name>android</name></item><item><itextId>smartphone-2</itextId><name>dontknow</name></item><item><itextId>smartphone-3</itextId><name>other</name></item></root></instance><bind nodeset="/data/smartphone" type="string"/><bind nodeset="/data/meta/instanceID" type="string" readonly="true()" jr:preload="uid"/></model></h:head><h:body><select1 ref="/data/smartphone"><label ref="jr:itext('/data/smartphone:label')"/><itemset nodeset="instance('smartphone')/root/item"><value ref="name"/><label ref="jr:itext(itextId)"/></itemset></select1></h:body></h:html> |