Trip

Modes of transport: bicycle, car2go, drive, train, walk, run, plane, train, bus

---
created: "2015-12-28T15:20:14-08:00"
published: "2015-12-29T13:30:55-08:00"
type: entry
content-type: text/plain
client_id: http://compass.p3k.io/
properties:
  trip:
  - type: h-trip
    properties:
      mode-of-transport: bicycle
      start: "2015-12-28T14:45:22-08:00"
      end: "2015-12-28T15:20:14-08:00"
      start-location:
        type: h-adr
        properties:
          latitude: "45.522223161576"
          longitude: "-122.63860439893"
          locality: Portland
          region: Oregon
          country: USA
      end-location:
        type: h-adr
        properties:
          latitude: "45.549965919969"
          longitude: "-122.67617024493"
          locality: Portland
          region: Oregon
          country: USA
      distance:
        type: h-measure
        properties:
          num: "6439"
          unit: meter
      duration:
        type: h-measure
        properties:
          num: "2093"
          unit: second
      route: route.json
      map-image: map.png
  p3k-channel:
  - transport
  - health
  - rides
...

The route data is sent in a file called "route.json"

{
  "type":"FeatureCollection",
  "features":[
    {
      "type":"Feature",
      "geometry":{
        "type":"Point",
        "coordinates":[
          -122.63860741642,
          45.522235692521
        ]
      },
      "properties":{
        "speed":0,
        "battery_state":"unplugged",
        "timestamp":"2015-12-28T22:45:23Z",
        "motion":[
          "walking"
        ],
        "horizontal_accuracy":5,
        "vertical_accuracy":4,
        "battery_level":0.92,
        "activity":"other_navigation",
        "altitude":45
      }
    },
    {
      "type":"Feature",
      "geometry":{
        "type":"Point",
        "coordinates":[
          -122.63862267148,
          45.522236111616
        ]
      },
      "properties":{
        "speed":0,
        "battery_state":"unplugged",
        "timestamp":"2015-12-28T22:45:27Z",
        "motion":[
          "walking"
        ],
        "horizontal_accuracy":5,
        "vertical_accuracy":3,
        "battery_level":0.92,
        "activity":"other_navigation",
        "altitude":45
      }
    }
  ]
}