Floating data (p:floating-data)

http://profiles.goabout.com/floating-data

The Floating data (p:floating-data) resource represents a set of data-points gathered from a floating vehicle(s). These data-points should represent the route taken by the vehicle(s)

Example

GET

{
  "_embedded" : {
    "item" : [ {
      "measureTime" : "2013-12-15T09:32:03.251Z",
      "speed" : 102.423,
      "heading" : 203.3343,
      "coordinates" : {
        "latitude" : 52.364957,
        "longitude" : 4.884282
      },
      "modeType" : "car",
      "_links" : {
        "self" : {
          "href" : "ni://goabout.com/sha-256;ZjM2NjlkZDUwMTM5ODQ2MTZkZjdhM2VmZDMzNjFjNzFkMjkyZTkxYTYxODVjMWU0ODI4NjE4Yjk1YjUxMzA5Ng=="
        }
      }
    }, {
      "measureTime" : "2013-12-15T09:32:13.728Z",
      "speed" : 105.438,
      "heading" : 181.2483,
      "coordinates" : {
        "latitude" : 52.364957,
        "longitude" : 4.884282
      },
      "modeType" : "car",
      "_links" : {
        "self" : {
          "href" : "ni://goabout.com/sha-256;MDk4YmY0Zjk2ZmVjZTA5ZjY3ZTc1ZTUyMTJhMjYzNDg5Njk4ZTY3MjhiOGJhZjVlMmJhYTYzYmRjNzliZjI5ZA=="
        }
      }
    } ]
  },
  "_links" : {
    "self" : {
      "href" : "https://api.goabout.com/trip-registration/37/floating-data"
    }
  }
}

POST

$ curl -d'{"measureTime":"2013-12-15T09:32:14.813Z", "latitude":52.364957, "longitude":4.884282, "speed":104.368, "heading":180.387, "modeType":"car"}'  -H'Content-Type: application/json' -H'Authorization: Bearer UArtDY9Bpo9Whga2mfd7nIK6vENxp2twtnH7RvPC6xj0jy6' 'https://api.goabout.com/trip-registration/37/floating-data'

Reference

GET

You can get the Floating data (p:floating-data) by following the self-link.

Properties

toHref:Location the arrival-location for this trip-in-progress

POST

To update this resource with the latests information about the User, the Client should POST to this collection with the following data:

Properties

measureTime:DateTime The time the measurement was taken
latitude:Double The current latitude of the device
longitude:Double The current longitude of the device
accuracy:Float [OPTIONAL] The accuracy of the measurement
speed:Float [OPTIONAL] The current speed (over-ground) of the device
heading:Float [OPTIONAL] The current compass heading.
modeType:ModeType [OPTIONAL] The (guessed) modeType for this measurement.