Waste event

Use cases and requirements

The Event model should have properties for:

event type

What kind of event it is.

start date

Know when an event happened.

location

To know what the location information is (property, street, addresss, etc).

image

Visual evidence of an issue.

comments

For any additional information useful to record.

feature type

What kind of feature does the event relate to (e.g. waste container such as a bin)? This could be typically matched by colour.

task

What task this event relates to, if any.

Properties

Term Mapping Definition
type string A categorisation of the event. This should be limited to 20 characters for ease of use on in-cab systems.
start date schema:startDate When the event was took place.
location Place A unique identifier for a property.
image schema:image A URL to a related image.
round URL The URL of the round where this event was recorded.
feature type Feature type The type of feature, if relevant.
task Task Task related to the event.

Serialisation

  {
  "@type": "WasteEvent",
  "@id": "/api/events/1",
  "type": "Not presented",
  "start_date": "2014-05-23T20:00Z",
  "uprn": "123456789012",
  "usrn": "123456789012",
  "image": "http://example.com/images/123.png",
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": "40.75",
    "longitude": "73.98"
  },
  "features": [
    {
      "color": "#fff",
      "type": {
        "name": "240L wheelie bin",
        "reusable": true,
        "materials": {
          "name": "paper",
          "@id": "/api/materials/paper"
        }
      }
    }
  ]
}


  
  <?xml version="1.0" encoding="UTF-8"?>
<waste-event>
  <type>Not presented</type>
  <href>/api/events/1</href>
  <start-date>2014-05-23T20:00Z</start-date>
  <uprn>123456789012</uprn>
  <usrn>123456789012</usrn>
  <image>http://example.com/images/123.png</image>
  <geo>
    <type>GeoCoordinates</type>
    <latitude>40.75</latitude>
    <longitude>73.98</longitude>
  </geo>
  <features type="array">
    <feature>
      <color>#fff</color>
      <type>
        <name>240L wheelie bin</name>
        <reusable type="boolean">true</reusable>
        <materials>
          <name>paper</name>
          <href>/api/materials/paper</href>
        </materials>
      </type>
    </feature>
  </features>
</waste-event>