# Collection

> The site where a collection is performed.

Page: https://docs.icepack.ai/isr/collection/

## Overview

A collection is a particular location on the street which requires a collection to be performed. A collection has both a time and quantity which contribute to the constraints in the time dimension and vehicle capacity dimension, respectively.

A model will typically consist of many collections which are destined for a common [offload site](/isr/offloadsite/). We include the offload site in this current specification for future potential decompositions which may be required.

### Applicable models

* ISR `isr-z4foi53qznrv`

<hr>

## Collection

A collection is a pickup location on a street.

### Schema definition 

```protobuf
message Collection {
  required string id = 1;
  required Geocode location = 2;
  required float stopTime = 3 [default = 0.0];
  required float quantity = 4 [default = 0.0];
  required string offloadSiteId = 5;
}
```


<!-- The longitude and latitude values should be provided in decimal degrees. The longitude corresponds to the x-axis and the latitude to the y-axis specified or user-defined surfaces. The longitude should be in the interval [-180,180] and the latitude [-90,90] excluding (0,0). Geocodes provided outside of this range will return in an error response returned by the API. -->

### Fields

id
: The unique identifier for this collection site, should be unique across the entire model.

location
: The longitude / latitude location of the collection site, specified as a [geocode](/isr/geocode/).

stopTime
: The time required to perform the collection, measured in the same units provided in the [configuration](/isr/configuration/).

quantity
: The quantity being collected which will contribute to the total capacity of a [vehicle](/isr/vehicle/).

offloadSiteId
: The destination offload site for this particular collection.


### Examples

This example shows a collection location on Fleet Street, which has a stop time of 10 units and a quantity of 1. 

```protobuf
id: "Fleet Street, house 1"
location {
  longitude: -6.28681087
  latitude: 53.3416138
}
stopTime: 10
quantity: 1
offloadSiteId: "Landfill"
```



<hr>

