Waste service

Requirements

The Service model should have properties for:

name

For identification.

frequency

An indication of typically how often the collection is run.

description

For specific instructions about the service, such as when and where to put containers out, that bin lids must be closed, etc.

next collections

To know upcoming dates of when upcoming collections will happen, when filtered by property. Also if any adjustments to the scheduled dates are made.

last collections

To know when the last few collections have taken place, when filtered by property.

container types

What types of containers (and in relation, materials) are collected by this service.

Types

This WasteService type:

Properties

Term Mapping Definition
name schema:name Name of the service.
description schema:description A short description of the service.
frequency Text How often it runs, e.g. weekly.
next collections Task List of dates of next collections.
last collections Task List of dates of previous collections.
feature types Feature type The container types that are collected.
provider schema:provider The council providing the service.
service area schema:serviceArea The geographic area where the service is provided.
service operator schema:serviceOperator The operator of the service, if different to the provider.

Serialisation

  {
  "@type": "WasteService",
  "@id": "http://example.com/services/1",
  "id": 1,
  "name": "Mixed recycling",
  "frequency": "weekly",
  "feature_types": [
    {
      "@type": "ContainerType",
      "color": "black",
      "shape": "wheelie_bin",
      "lid_color": "green",
      "materials": [
        {
          "name": "Mixed recyclables",
          "@id": "/waste/materials/mixed-recycling"
        }
      ]
    },
    {
      "@type": "ContainerType",
      "color": "brown",
      "shape": "caddy",
      "materials": [
        {
          "name": "Food waste",
          "@id": "/waste/materials/food-waste"
        }
      ]
    }
  ],
  "description": "Please put your recycling wheelie bin on the street.",
  "esd_url": "http://id.esd.org.uk/service/1130",
  
  "last_collections": [
    {
      "@type": "EmptyBinTask",
      "start_date": "2014-05-23T20:00Z",
      "features": [
        {
          "@type": "WasteContainer",
          "id": "2140541",
          "status": "In use",
          "size": 240,
          "@id": "http://example.com/feature-types/1"
        }
      ]
    }
  ],
  "next_collections": [
    {
      "@type": "EmptyBinTask",
      "start_date": "2014-05-23T20:00Z",
      "features": [
        {
          "@type": "WasteContainer",
          "id": "2140541",
          "status": "in_service",
          "size": 240,
          "@id": "http://example.com/feature-types/2"
        }
      ]
    }
  ],
  "available_channel": {
    "@type": "ServiceChannel",
    "name": "Household waste and street maintenance",
    "service_phone": {
      "@type": "ContactPoint",
      "telephone": "0123456789",
      "email": "waste@example.gov.uk"
    },
    "service_url": "http://www.example.gov.uk/waste"
  },
  "provider": {
    "@type": "Organization",
    "name": "Example Council",
    "url": "http://www.example.gov.uk"
  },
  "service_area": {
    "@type": "AdministrativeArea",
    "name": "Anytown"
  },
  "service_operator": {
    "@type": "Organization",
    "name": "Example Waste Operator Co"
  }
}

  
  <?xml version="1.0" encoding="UTF-8"?>
<waste-service>
  <type>WasteService</type>
  <href>http://example.com/services/1</href>
  <id type="integer">1</id>
  <name>Mixed recycling</name>
  <frequency>weekly</frequency>
  <feature-types type="array">
    <feature-type>
      <type>ContainerType</type>
      <color>black</color>
      <shape>wheelie_bin</shape>
      <lid-color>green</lid-color>
      <materials type="array">
        <material>
          <name>Mixed recyclables</name>
          <href>/waste/materials/mixed-recycling</href>
        </material>
      </materials>
    </feature-type>
    <feature-type>
      <type>ContainerType</type>
      <color>brown</color>
      <shape>caddy</shape>
      <materials type="array">
        <material>
          <name>Food waste</name>
          <href>/waste/materials/food-waste</href>
        </material>
      </materials>
    </feature-type>
  </feature-types>
  <description>Please put your recycling wheelie bin on the street.</description>
  <esd-url>http://id.esd.org.uk/service/1130</esd-url>
  <last-collections type="array">
    <last-collection>
      <type>EmptyBinTask</type>
      <start-date>2014-05-23T20:00Z</start-date>
      <features type="array">
        <feature>
          <type>WasteContainer</type>
          <id>2140541</id>
          <status>In use</status>
          <size type="integer">240</size>
          <href>http://example.com/feature-types/1</href>
        </feature>
      </features>
    </last-collection>
  </last-collections>
  <next-collections type="array">
    <next-collection>
      <type>EmptyBinTask</type>
      <start-date>2014-05-23T20:00Z</start-date>
      <features type="array">
        <feature>
          <type>WasteContainer</type>
          <id>2140541</id>
          <status>in_service</status>
          <size type="integer">240</size>
          <href>http://example.com/feature-types/2</href>
        </feature>
      </features>
    </next-collection>
  </next-collections>
  <available-channel>
    <type>ServiceChannel</type>
    <name>Household waste and street maintenance</name>
    <service-phone>
      <type>ContactPoint</type>
      <telephone>0123456789</telephone>
      <email>waste@example.gov.uk</email>
    </service-phone>
    <service-url>http://www.example.gov.uk/waste</service-url>
  </available-channel>
  <provider>
    <type>Organization</type>
    <name>Example Council</name>
    <url>http://www.example.gov.uk</url>
  </provider>
  <service-area>
    <type>AdministrativeArea</type>
    <name>Anytown</name>
  </service-area>
  <service-operator>
    <type>Organization</type>
    <name>Example Waste Operator Co</name>
  </service-operator>
</waste-service>

  

Codelists

Freqency

  • weekly
  • alternate weekly