# Reporting

Part of the [GeoDynamics API](/api/geodynamics/index.md). Host: `https://api.geodynamics.dev`.

## POST /intellitracer/v2/reporting/visitsperpoi?page={page}&search={search}

`https://api.geodynamics.dev/intellitracer/v2/reporting/visitsperpoi?page={page}&search={search}`

Privilege required: `Api: Visits per POI`

Visits per POI

Returns a list of visits a resource has made to a specific point of interest (POI).

Pagination and searching is explained in [Pagination](#pagination).

### Path parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `page` | number | required | `1` |
| `search` | string | required | `ABC` |

### Request body

Type: `object`

| Field | Type | Required |
| --- | --- | --- |
| `ResourceIds` (default = []) | array | required |
| `PoiIds` (default = []) | array | required |
| `FromDate` (default = null) | string | required |
| `ToDate` (default = null) | string | required |
| `FromTime` (default = null) | string | optional |
| `ToTime` (default = null) | string | optional |
| `MinDuration` | number | required |
| `ShowDriver` (default = false) | boolean | optional |

### Responses

#### 200: OK

```json
[
  {
    "Data": [
      {
        "Poi": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Work",
          "Code": "012345"
        },
        "Vehicle": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Code": "012345",
          "Name": "John Doe",
          "Type": 0
        },
        "User": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Code": "012345",
          "Name": "John Doe",
          "Type": 0
        },
        "FromDate": "2019-01-25T00:00:00",
        "ToDate": "2019-01-25T00:00:00",
        "Duration": "06:43:13",
        "Address": "Dumolinlaan 9, 8500 Kortrijk, BE",
        "Deviation": 0.08,
        "ContactOn": "00:00:17",
        "ContactOff": "06:42:56",
        "AnalogInputs": [
          {
            "IoName": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "Name": "Io Name"
            },
            "StartValue": "",
            "StopValue": ""
          }
        ],
        "NonAnalogInputs": [
          {
            "Id": "00000000-0000-0000-0000-000000000000",
            "Name": "Front door",
            "DurationOn": "00:00:00",
            "DurationOff": "06:43:13"
          }
        ]
      }
    ],
    "PagingFilter": {
      "Page": 1,
      "Search": "ABC",
      "PageCount": 4,
      "TotalCount": 100,
      "Links": {
        "Base": "https://api.geodynamics.dev",
        "First": "/intellitracer/v2/asset?page=1",
        "Prev": "/intellitracer/v2/asset?page=2",
        "Next": "/intellitracer/v2/asset?page=4",
        "Last": "/intellitracer/v2/asset?page=4"
      }
    }
  }
]
```

#### 400: Bad Request

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## POST /intellitracer/v2/reporting/positionsperpoi?page={page}&search={search}

`https://api.geodynamics.dev/intellitracer/v2/reporting/positionsperpoi?page={page}&search={search}`

Privilege required: `Api: Positions per POI`

Positions per POI

Returns a paged list of positions of a resource at a point of interest (POI).

Pagination and searching is explained in [Pagination](#pagination).

### Path parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `page` | number | required | `1` |
| `search` | string | required | `ABC` |

### Request body

Type: `object`

| Field | Type | Required |
| --- | --- | --- |
| `ResourceIds` (default = []) | array | required |
| `PoiIds` (default = []) | array | required |
| `FromDate` (default = null) | string | required |
| `ToDate` (default = null) | string | required |

### Responses

#### 200: OK

```json
[
  {
    "Data": [
      {
        "Poi": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Work",
          "Code": "012345"
        },
        "Vehicle": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Code": "012345",
          "Name": "Vehicle 1"
        },
        "Date": "2019-01-25T00:00:00",
        "Address": "Dumolinlaan 9, 8500 Kortrijk, BE",
        "Mileage": 0.08,
        "Speed": 0.08
      }
    ],
    "PagingFilter": {
      "Page": 1,
      "Search": "ABC",
      "PageCount": 4,
      "TotalCount": 100,
      "Links": {
        "Base": "https://api.geodynamics.dev",
        "First": "/intellitracer/v2/asset?page=1",
        "Prev": "/intellitracer/v2/asset?page=2",
        "Next": "/intellitracer/v2/asset?page=4",
        "Last": "/intellitracer/v2/asset?page=4"
      }
    }
  }
]
```

#### 400: Bad Request

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## POST /intellitracer/v2/reporting/resourcesatpoi?page={page}&search={search}

`https://api.geodynamics.dev/intellitracer/v2/reporting/resourcesatpoi?page={page}&search={search}`

Privilege required: `Api: Resources at POI`

Resources at POI

Returns a paged list of visits a resource has made to a point of interest (POI).

### Path parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `page` | number | required | `1` |
| `search` | string | required | `ABC` |

### Request body

Type: `object`

| Field | Type | Required |
| --- | --- | --- |
| `ResourceGroupIds` (default = []) | array | required |
| `PoiGroupIds` (default = []) | array | required |
| `Date` (default = null) | string | required |

### Responses

#### 200: OK

```json
[
  {
    "Data": [
      {
        "Poi": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Work",
          "Code": "012345"
        },
        "Resource": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Code": "012345",
          "Name": "John Doe",
          "Type": 0
        },
        "Date": "2019-01-25T00:00:00",
        "Type": 0,
        "Mileage": 0.08,
        "Speed": 0.08,
        "AnalogInputs": [
          {
            "IoName": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "Name": "Io Name"
            },
            "State": ""
          }
        ],
        "NonAnalogInputs": [
          {
            "IoName": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "Name": "Io Name"
            },
            "State": ""
          }
        ],
        "Outputs": [
          {
            "IoName": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "Name": "Io Name"
            },
            "State": ""
          }
        ]
      }
    ],
    "PagingFilter": {
      "Page": 1,
      "Search": "ABC",
      "PageCount": 4,
      "TotalCount": 100,
      "Links": {
        "Base": "https://api.geodynamics.dev",
        "First": "/intellitracer/v2/asset?page=1",
        "Prev": "/intellitracer/v2/asset?page=2",
        "Next": "/intellitracer/v2/asset?page=4",
        "Last": "/intellitracer/v2/asset?page=4"
      }
    }
  }
]
```

#### 400: Bad Request

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed
