# Location

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

## GET /intellitracer/v2/location/lastposition?page={page}&limit={limit}&search={search}

`https://api.geodynamics.dev/intellitracer/v2/location/lastposition?page={page}&limit={limit}&search={search}`

Privilege required: `Api: Location`

Get last positions

Returns a paged list of vehicles and assets including last position and current mileage and running hours.

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

### Path parameters

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

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Data` (default = null) | array |
| `PagingFilter` (default = null) | object |

```json
{
  "Data": [
    {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Vehicle 1",
      "Code": "12345",
      "UnitId": "1234567890",
      "Type": 0,
      "Counter": {
        "Mileage": 48145,
        "RunningHours": 774,
        "DateTimeLocal": "2021-07-12T08:29:37",
        "DateTimeUtc": "2021-07-12T06:29:37"
      },
      "Location": {
        "Address": "Dumolinlaan 9, 8500 Kortrijk, BE",
        "Latitude": 50.812939,
        "Longitude": 3.245304,
        "DateTimeLocal": "2021-07-12T08:29:37",
        "DateTimeUtc": "2021-07-12T06:29:37"
      },
      "DetectedBy": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Vehicle 1"
        }
      ]
    }
  ],
  "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"
    }
  }
}
```

#### 401: Unauthorized

#### 403: Forbidden

## POST /intellitracer/v2/location/lastposition

`https://api.geodynamics.dev/intellitracer/v2/location/lastposition`

Privilege required: `Api: Location`

Get last positions by resources

Returns a list of vehicles and assets including last position and current mileage and running hours.

### Request body

### Responses

#### 200: OK

```json
[
  {
    "Id": "00000000-0000-0000-0000-000000000000",
    "Name": "Vehicle 1",
    "Code": "12345",
    "UnitId": "1234567890",
    "Type": 0,
    "Counter": {
      "Mileage": 48145,
      "RunningHours": 774,
      "DateTimeLocal": "2021-07-12T08:29:37",
      "DateTimeUtc": "2021-07-12T06:29:37"
    },
    "Location": {
      "Address": "Dumolinlaan 9, 8500 Kortrijk, BE",
      "Latitude": 50.812939,
      "Longitude": 3.245304,
      "DateTimeLocal": "2021-07-12T08:29:37",
      "DateTimeUtc": "2021-07-12T06:29:37"
    },
    "DetectedBy": [
      {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Vehicle 1"
      }
    ]
  }
]
```

#### 401: Unauthorized

#### 403: Forbidden

## GET /intellitracer/v1/location/lastposition

`https://api.geodynamics.dev/intellitracer/v1/location/lastposition`

Privilege required: `Api: Location`

Get last position by resource

Returns the last position of a resource.

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `resourceId` | string | required | `00000000-0000-0000-0000-000000000000` |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `Id` | string |
| `MileageToday` (default = null)  Total mileage driven today. | number |
| `MileageTotal` (default = null)  Total mileage driven ever. | number |
| `Type` (default = -9999)  Type of this tracking report. | object |
| `TypeName` (default = null)  Type name of this tracking report. | string |
| `RtcDateTime` Assumed datetime of the location. | string |
| `GpsDateTime` GPS datetime of the location. | string |
| `Speed` (default = null)  Current measured speed. | number |
| `AllowedSpeed` (default = null)  Allowed speed at this location. | number |
| `Heading` (default = null)  Direction the car is driving in in degrees (0 = north). | number |
| `Latitude` (default = null)  Geographic coordinate that specifies the north–south position of a point on the Earth's surface. | number |
| `Longitude` (default = null)  Geographic coordinate that specifies the east–west position of a point on the Earth's surface. | number |
| `Satellites` (default = 0)  Amount of satellites within range and used to determine the current location. | number |
| `Pois` (default = [])  Point(s) of interest located at this position. | array |
| `IoStates` (default = [])  State of the vehicle's inputs and outputs. | array |
| `StatusInfo` (default = null)  Status of the vehicle. | string |
| `Address` (default = null)  Address of the current location. | object |
| `BadgeNr` (default = null)  Number of the badge that was used | string |
| `BadgeUser` (default = null)  Name of the user who badged. | object |
| `ResourceId` ID of the resource currently at this location. | string |
| `_typeDescriptor` | string |

```json
{
  "Id": "00000000-0000-0000-0000-000000000000",
  "MileageToday": 1.02,
  "MileageTotal": 11245.02,
  "Type": "1",
  "TypeName": "Position",
  "RtcDateTime": "2019-01-09T11:16:51+01:00",
  "GpsDateTime": "2019-01-09T11:16:51+01:00",
  "Speed": 50,
  "AllowedSpeed": 50,
  "Heading": 189,
  "Latitude": 50.812939,
  "Longitude": 3.245304,
  "Satellites": 9,
  "Pois": [
    "00000000-0000-0000-0000-000000000000",
    "00000000-0000-0000-0000-000000000000"
  ],
  "IoStates": [
    {
      "ContactName": "Contact",
      "StateName": "Off",
      "IoNameType": "8",
      "VehicleIoType": "200"
    }
  ],
  "StatusInfo": "Contact off",
  "Address": {
    "CountryName": "Belgium",
    "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
    "PoiList": [
      "00000000-0000-0000-0000-000000000000",
      "00000000-0000-0000-0000-000000000000"
    ],
    "City": "Kortrijk",
    "CityLine": "8500 Kortrijk, BE",
    "CountryCode": 0,
    "HouseNumber": "9",
    "Latitude": 50.812939,
    "Longitude": 3.245304,
    "PostalCode": "8500",
    "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
    "Street": "Dumolinlaan",
    "StreetLine": "Dumolinlaan 9",
    "Submunicipality": "Kortrijk"
  },
  "BadgeNr": "00AA11BB",
  "BadgeUser": {
    "Id": "00000000-0000-0000-0000-000000000000",
    "Name": "John Doe",
    "Code": "012345",
    "EmployerCode": "012345",
    "Email": "john.doe@doe.com",
    "Gsm": "+32477665544",
    "FreeField1": null,
    "FreeField2": null,
    "FreeField3": null,
    "FreeField4": null,
    "FreeField5": null,
    "FreeField6": null,
    "Notes": null,
    "Street": "Dumolinlaan",
    "HouseNumber": "9",
    "City": "Kortrijk",
    "PostalCode": "8500",
    "Submunicipality": "Kortrijk",
    "Country": 0,
    "Longitude": 3.245304,
    "Latitude": 50.812939,
    "DefaultDayProgram": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "Default"
    },
    "Groups": [
      {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Employees",
        "Type": 0,
        "Code": "012345"
      }
    ]
  },
  "ResourceId": "00000000-0000-0000-0000-000000000000"
}
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## POST /intellitracer/v1/location/lastpositionbytypes

`https://api.geodynamics.dev/intellitracer/v1/location/lastpositionbytypes`

Privilege required: `Api: Location`

Get last position by types

Returns the last position of all resources for one or more resource type(s).

### Request body

### Responses

#### 200: OK

```json
[
  {
    "Id": "00000000-0000-0000-0000-000000000000",
    "MileageToday": 1.02,
    "MileageTotal": 11245.02,
    "Type": "1",
    "TypeName": "Position",
    "RtcDateTime": "2019-01-09T11:16:51+01:00",
    "GpsDateTime": "2019-01-09T11:16:51+01:00",
    "Speed": 50,
    "AllowedSpeed": 50,
    "Heading": 189,
    "Latitude": 50.812939,
    "Longitude": 3.245304,
    "Satellites": 9,
    "Pois": [
      "00000000-0000-0000-0000-000000000000",
      "00000000-0000-0000-0000-000000000000"
    ],
    "IoStates": [
      {
        "ContactName": "Contact",
        "StateName": "Off",
        "IoNameType": "8",
        "VehicleIoType": "200"
      }
    ],
    "StatusInfo": "Contact off",
    "Address": {
      "CountryName": "Belgium",
      "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
      "PoiList": [
        "00000000-0000-0000-0000-000000000000",
        "00000000-0000-0000-0000-000000000000"
      ],
      "City": "Kortrijk",
      "CityLine": "8500 Kortrijk, BE",
      "CountryCode": 0,
      "HouseNumber": "9",
      "Latitude": 50.812939,
      "Longitude": 3.245304,
      "PostalCode": "8500",
      "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
      "Street": "Dumolinlaan",
      "StreetLine": "Dumolinlaan 9",
      "Submunicipality": "Kortrijk"
    },
    "BadgeNr": "00AA11BB",
    "BadgeUser": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "John Doe",
      "Code": "012345",
      "EmployerCode": "012345",
      "Email": "john.doe@doe.com",
      "Gsm": "+32477665544",
      "FreeField1": null,
      "FreeField2": null,
      "FreeField3": null,
      "FreeField4": null,
      "FreeField5": null,
      "FreeField6": null,
      "Notes": null,
      "Street": "Dumolinlaan",
      "HouseNumber": "9",
      "City": "Kortrijk",
      "PostalCode": "8500",
      "Submunicipality": "Kortrijk",
      "Country": 0,
      "Longitude": 3.245304,
      "Latitude": 50.812939,
      "DefaultDayProgram": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Default"
      },
      "Groups": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Employees",
          "Type": 0,
          "Code": "012345"
        }
      ]
    },
    "ResourceId": "00000000-0000-0000-0000-000000000000"
  }
]
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## POST /intellitracer/v1/location/lastpositionbyresources

`https://api.geodynamics.dev/intellitracer/v1/location/lastpositionbyresources`

Privilege required: `Api: Location`

Get last position by resources

Returns the last position of one or more resources.

### Request body

### Responses

#### 200: OK

```json
[
  {
    "Id": "00000000-0000-0000-0000-000000000000",
    "MileageToday": 1.02,
    "MileageTotal": 11245.02,
    "Type": "1",
    "TypeName": "Position",
    "RtcDateTime": "2019-01-09T11:16:51+01:00",
    "GpsDateTime": "2019-01-09T11:16:51+01:00",
    "Speed": 50,
    "AllowedSpeed": 50,
    "Heading": 189,
    "Latitude": 50.812939,
    "Longitude": 3.245304,
    "Satellites": 9,
    "Pois": [
      "00000000-0000-0000-0000-000000000000",
      "00000000-0000-0000-0000-000000000000"
    ],
    "IoStates": [
      {
        "ContactName": "Contact",
        "StateName": "Off",
        "IoNameType": "8",
        "VehicleIoType": "200"
      }
    ],
    "StatusInfo": "Contact off",
    "Address": {
      "CountryName": "Belgium",
      "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
      "PoiList": [
        "00000000-0000-0000-0000-000000000000",
        "00000000-0000-0000-0000-000000000000"
      ],
      "City": "Kortrijk",
      "CityLine": "8500 Kortrijk, BE",
      "CountryCode": 0,
      "HouseNumber": "9",
      "Latitude": 50.812939,
      "Longitude": 3.245304,
      "PostalCode": "8500",
      "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
      "Street": "Dumolinlaan",
      "StreetLine": "Dumolinlaan 9",
      "Submunicipality": "Kortrijk"
    },
    "BadgeNr": "00AA11BB",
    "BadgeUser": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "John Doe",
      "Code": "012345",
      "EmployerCode": "012345",
      "Email": "john.doe@doe.com",
      "Gsm": "+32477665544",
      "FreeField1": null,
      "FreeField2": null,
      "FreeField3": null,
      "FreeField4": null,
      "FreeField5": null,
      "FreeField6": null,
      "Notes": null,
      "Street": "Dumolinlaan",
      "HouseNumber": "9",
      "City": "Kortrijk",
      "PostalCode": "8500",
      "Submunicipality": "Kortrijk",
      "Country": 0,
      "Longitude": 3.245304,
      "Latitude": 50.812939,
      "DefaultDayProgram": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Default"
      },
      "Groups": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Employees",
          "Type": 0,
          "Code": "012345"
        }
      ]
    },
    "ResourceId": "00000000-0000-0000-0000-000000000000"
  }
]
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## GET /intellitracer/v1/location/position

`https://api.geodynamics.dev/intellitracer/v1/location/position`

Privilege required: `Api: Location`

Get positions by resource

Returns a list of all positions of a resource within a date/time range.

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `resourceId` | string | required | `00000000-0000-0000-0000-000000000000` |
| `from` | string | required | `2019-01-25T08:00:00` |
| `to` | string | required | `2019-01-25T17:00:00` |

### Responses

#### 200: OK

```json
[
  {
    "Id": "00000000-0000-0000-0000-000000000000",
    "MileageToday": 1.02,
    "MileageTotal": 11245.02,
    "Type": "1",
    "TypeName": "Position",
    "RtcDateTime": "2019-01-09T11:16:51+01:00",
    "GpsDateTime": "2019-01-09T11:16:51+01:00",
    "Speed": 50,
    "AllowedSpeed": 50,
    "Heading": 189,
    "Latitude": 50.812939,
    "Longitude": 3.245304,
    "Satellites": 9,
    "Pois": [
      "00000000-0000-0000-0000-000000000000",
      "00000000-0000-0000-0000-000000000000"
    ],
    "IoStates": [
      {
        "ContactName": "Contact",
        "StateName": "Off",
        "IoNameType": "8",
        "VehicleIoType": "200"
      }
    ],
    "StatusInfo": "Contact off",
    "Address": {
      "CountryName": "Belgium",
      "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
      "PoiList": [
        "00000000-0000-0000-0000-000000000000",
        "00000000-0000-0000-0000-000000000000"
      ],
      "City": "Kortrijk",
      "CityLine": "8500 Kortrijk, BE",
      "CountryCode": 0,
      "HouseNumber": "9",
      "Latitude": 50.812939,
      "Longitude": 3.245304,
      "PostalCode": "8500",
      "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
      "Street": "Dumolinlaan",
      "StreetLine": "Dumolinlaan 9",
      "Submunicipality": "Kortrijk"
    },
    "BadgeNr": "00AA11BB",
    "BadgeUser": {
      "Id": "00000000-0000-0000-0000-000000000000",
      "Name": "John Doe",
      "Code": "012345",
      "EmployerCode": "012345",
      "Email": "john.doe@doe.com",
      "Gsm": "+32477665544",
      "FreeField1": null,
      "FreeField2": null,
      "FreeField3": null,
      "FreeField4": null,
      "FreeField5": null,
      "FreeField6": null,
      "Notes": null,
      "Street": "Dumolinlaan",
      "HouseNumber": "9",
      "City": "Kortrijk",
      "PostalCode": "8500",
      "Submunicipality": "Kortrijk",
      "Country": 0,
      "Longitude": 3.245304,
      "Latitude": 50.812939,
      "DefaultDayProgram": {
        "Id": "00000000-0000-0000-0000-000000000000",
        "Name": "Default"
      },
      "Groups": [
        {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "Employees",
          "Type": 0,
          "Code": "012345"
        }
      ]
    },
    "ResourceId": "00000000-0000-0000-0000-000000000000"
  }
]
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## POST /intellitracer/v1/location/position

`https://api.geodynamics.dev/intellitracer/v1/location/position`

Privilege required: `Api: Location`

Get positions by resources

Returns a list of all positions of one or more resources within a date/time range.

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `from` | string | required | `2019-01-25T08:00:00` |
| `to` | string | required | `2019-01-25T17:00:00` |

### Request body

### Responses

#### 200: OK

```json
[
  {
    "ResourceId": "00000000-0000-0000-0000-000000000000",
    "Positions": [
      {
        "Id": "00000000-0000-0000-0000-000000000000",
        "MileageToday": 1.02,
        "MileageTotal": 11245.02,
        "Type": "1",
        "TypeName": "Position",
        "RtcDateTime": "2019-01-09T11:16:51+01:00",
        "GpsDateTime": "2019-01-09T11:16:51+01:00",
        "Speed": 50,
        "AllowedSpeed": 50,
        "Heading": 189,
        "Latitude": 50.812939,
        "Longitude": 3.245304,
        "Satellites": 9,
        "Pois": [
          "00000000-0000-0000-0000-000000000000",
          "00000000-0000-0000-0000-000000000000"
        ],
        "IoStates": [
          {
            "ContactName": "Contact",
            "StateName": "Off",
            "IoNameType": "8",
            "VehicleIoType": "200"
          }
        ],
        "StatusInfo": "Contact off",
        "Address": {
          "CountryName": "Belgium",
          "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
          "PoiList": [
            "00000000-0000-0000-0000-000000000000",
            "00000000-0000-0000-0000-000000000000"
          ],
          "City": "Kortrijk",
          "CityLine": "8500 Kortrijk, BE",
          "CountryCode": 0,
          "HouseNumber": "9",
          "Latitude": 50.812939,
          "Longitude": 3.245304,
          "PostalCode": "8500",
          "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
          "Street": "Dumolinlaan",
          "StreetLine": "Dumolinlaan 9",
          "Submunicipality": "Kortrijk"
        },
        "BadgeNr": "00AA11BB",
        "BadgeUser": {
          "Id": "00000000-0000-0000-0000-000000000000",
          "Name": "John Doe",
          "Code": "012345",
          "EmployerCode": "012345",
          "Email": "john.doe@doe.com",
          "Gsm": "+32477665544",
          "FreeField1": null,
          "FreeField2": null,
          "FreeField3": null,
          "FreeField4": null,
          "FreeField5": null,
          "FreeField6": null,
          "Notes": null,
          "Street": "Dumolinlaan",
          "HouseNumber": "9",
          "City": "Kortrijk",
          "PostalCode": "8500",
          "Submunicipality": "Kortrijk",
          "Country": 0,
          "Longitude": 3.245304,
          "Latitude": 50.812939,
          "DefaultDayProgram": {
            "Id": "00000000-0000-0000-0000-000000000000",
            "Name": "Default"
          },
          "Groups": [
            {
              "Id": "00000000-0000-0000-0000-000000000000",
              "Name": "Employees",
              "Type": 0,
              "Code": "012345"
            }
          ]
        },
        "ResourceId": "00000000-0000-0000-0000-000000000000"
      }
    ]
  }
]
```

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## GET /intellitracer/v1/location/status

`https://api.geodynamics.dev/intellitracer/v1/location/status`

Privilege required: `Api: Location`

Get statuses by resource

Returns a list of all status bars of a resource within a date/time range.

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `resourceId` | string | required | `00000000-0000-0000-0000-000000000000` |
| `from` | string | required | `2019-01-25T08:00:00` |
| `to` | string | required | `2019-01-25T17:00:00` |
| `friendlyName` | string | optional |  |

### Responses

#### 200: OK

| Field | Type |
| --- | --- |
| `ResourceId` | string |
| `StatusResults` (default = [])  Time registration bars for this vehicle. | array |
| `_typeDescriptor` | string |

```json
{
  "ResourceId": "00000000-0000-0000-0000-000000000000",
  "StatusResults": [
    {
      "ResourceId": "00000000-0000-0000-0000-000000000000",
      "ResourceName": "Vehicle 1",
      "FromDate": "2019-01-25T08:00:00+01:00",
      "ToDate": "2019-01-25T17:00:00+01:00",
      "Bars": [
        {
          "StateName": "Driving",
          "Start": "2019-01-25T08:00:00+01:00",
          "Stop": "2019-01-25T08:51:22+01:00",
          "Duration": "00:51:22",
          "MileageBirdFlight": 108.23,
          "MileageDriven": 111.85,
          "DriverId": "00000000-0000-0000-0000-000000000000",
          "DriverName": "John Doe",
          "StartLocation": {
            "Id": "00000000-0000-0000-0000-000000000000",
            "MileageToday": 1.02,
            "MileageTotal": 11245.02,
            "Type": "1",
            "TypeName": "Position",
            "RtcDateTime": "2019-01-09T11:16:51+01:00",
            "GpsDateTime": "2019-01-09T11:16:51+01:00",
            "Speed": 50,
            "AllowedSpeed": 50,
            "Heading": 189,
            "Latitude": 50.812939,
            "Longitude": 3.245304,
            "Satellites": 9,
            "Pois": [
              "00000000-0000-0000-0000-000000000000",
              "00000000-0000-0000-0000-000000000000"
            ],
            "IoStates": [
              {
                "ContactName": "Contact",
                "StateName": "Off",
                "IoNameType": "8",
                "VehicleIoType": "200"
              }
            ],
            "StatusInfo": "Contact off",
            "Address": {
              "CountryName": "Belgium",
              "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
              "PoiList": [
                "00000000-0000-0000-0000-000000000000",
                "00000000-0000-0000-0000-000000000000"
              ],
              "City": "Kortrijk",
              "CityLine": "8500 Kortrijk, BE",
              "CountryCode": 0,
              "HouseNumber": "9",
              "Latitude": 50.812939,
              "Longitude": 3.245304,
              "PostalCode": "8500",
              "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
              "Street": "Dumolinlaan",
              "StreetLine": "Dumolinlaan 9",
              "Submunicipality": "Kortrijk"
            },
            "BadgeNr": "00AA11BB",
            "BadgeUser": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "Name": "John Doe",
              "Code": "012345",
              "EmployerCode": "012345",
              "Email": "john.doe@doe.com",
              "Gsm": "+32477665544",
              "FreeField1": null,
              "FreeField2": null,
              "FreeField3": null,
              "FreeField4": null,
              "FreeField5": null,
              "FreeField6": null,
              "Notes": null,
              "Street": "Dumolinlaan",
              "HouseNumber": "9",
              "City": "Kortrijk",
              "PostalCode": "8500",
              "Submunicipality": "Kortrijk",
              "Country": 0,
              "Longitude": 3.245304,
              "Latitude": 50.812939,
              "DefaultDayProgram": {
                "Id": "00000000-0000-0000-0000-000000000000",
                "Name": "Default"
              },
              "Groups": [
                {
                  "Id": "00000000-0000-0000-0000-000000000000",
                  "Name": "Employees",
                  "Type": 0,
                  "Code": "012345"
                }
              ]
            },
            "ResourceId": "00000000-0000-0000-0000-000000000000"
          },
          "StopLocation": {
            "Id": "00000000-0000-0000-0000-000000000000",
            "MileageToday": 1.02,
            "MileageTotal": 11245.02,
            "Type": "1",
            "TypeName": "Position",
            "RtcDateTime": "2019-01-09T11:16:51+01:00",
            "GpsDateTime": "2019-01-09T11:16:51+01:00",
            "Speed": 50,
            "AllowedSpeed": 50,
            "Heading": 189,
            "Latitude": 50.812939,
            "Longitude": 3.245304,
            "Satellites": 9,
            "Pois": [
              "00000000-0000-0000-0000-000000000000",
              "00000000-0000-0000-0000-000000000000"
            ],
            "IoStates": [
              {
                "ContactName": "Contact",
                "StateName": "Off",
                "IoNameType": "8",
                "VehicleIoType": "200"
              }
            ],
            "StatusInfo": "Contact off",
            "Address": {
              "CountryName": "Belgium",
              "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
              "PoiList": [
                "00000000-0000-0000-0000-000000000000",
                "00000000-0000-0000-0000-000000000000"
              ],
              "City": "Kortrijk",
              "CityLine": "8500 Kortrijk, BE",
              "CountryCode": 0,
              "HouseNumber": "9",
              "Latitude": 50.812939,
              "Longitude": 3.245304,
              "PostalCode": "8500",
              "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
              "Street": "Dumolinlaan",
              "StreetLine": "Dumolinlaan 9",
              "Submunicipality": "Kortrijk"
            },
            "BadgeNr": "00AA11BB",
            "BadgeUser": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "Name": "John Doe",
              "Code": "012345",
              "EmployerCode": "012345",
              "Email": "john.doe@doe.com",
              "Gsm": "+32477665544",
              "FreeField1": null,
              "FreeField2": null,
              "FreeField3": null,
              "FreeField4": null,
              "FreeField5": null,
              "FreeField6": null,
              "Notes": null,
              "Street": "Dumolinlaan",
              "HouseNumber": "9",
              "City": "Kortrijk",
              "PostalCode": "8500",
             
...
```

_Example truncated._

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed

## POST /intellitracer/v1/location/status

`https://api.geodynamics.dev/intellitracer/v1/location/status`

Privilege required: `Api: Location`

Get statuses by resources

Returns a list of all status bars of one or more resources within a date/time range.

### Query parameters

| Name | Type | Required | Example |
| --- | --- | --- | --- |
| `from` | string | required | `2019-01-25T08:00:00` |
| `to` | string | required | `2019-01-25T17:00:00` |
| `friendlyName` | string | optional |  |

### Request body

### Responses

#### 200: OK

```json
[
  {
    "ResourceId": "00000000-0000-0000-0000-000000000000",
    "StatusResults": [
      {
        "ResourceId": "00000000-0000-0000-0000-000000000000",
        "ResourceName": "Vehicle 1",
        "FromDate": "2019-01-25T08:00:00+01:00",
        "ToDate": "2019-01-25T17:00:00+01:00",
        "Bars": [
          {
            "StateName": "Driving",
            "Start": "2019-01-25T08:00:00+01:00",
            "Stop": "2019-01-25T08:51:22+01:00",
            "Duration": "00:51:22",
            "MileageBirdFlight": 108.23,
            "MileageDriven": 111.85,
            "DriverId": "00000000-0000-0000-0000-000000000000",
            "DriverName": "John Doe",
            "StartLocation": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "MileageToday": 1.02,
              "MileageTotal": 11245.02,
              "Type": "1",
              "TypeName": "Position",
              "RtcDateTime": "2019-01-09T11:16:51+01:00",
              "GpsDateTime": "2019-01-09T11:16:51+01:00",
              "Speed": 50,
              "AllowedSpeed": 50,
              "Heading": 189,
              "Latitude": 50.812939,
              "Longitude": 3.245304,
              "Satellites": 9,
              "Pois": [
                "00000000-0000-0000-0000-000000000000",
                "00000000-0000-0000-0000-000000000000"
              ],
              "IoStates": [
                {
                  "ContactName": "Contact",
                  "StateName": "Off",
                  "IoNameType": "8",
                  "VehicleIoType": "200"
                }
              ],
              "StatusInfo": "Contact off",
              "Address": {
                "CountryName": "Belgium",
                "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
                "PoiList": [
                  "00000000-0000-0000-0000-000000000000",
                  "00000000-0000-0000-0000-000000000000"
                ],
                "City": "Kortrijk",
                "CityLine": "8500 Kortrijk, BE",
                "CountryCode": 0,
                "HouseNumber": "9",
                "Latitude": 50.812939,
                "Longitude": 3.245304,
                "PostalCode": "8500",
                "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
                "Street": "Dumolinlaan",
                "StreetLine": "Dumolinlaan 9",
                "Submunicipality": "Kortrijk"
              },
              "BadgeNr": "00AA11BB",
              "BadgeUser": {
                "Id": "00000000-0000-0000-0000-000000000000",
                "Name": "John Doe",
                "Code": "012345",
                "EmployerCode": "012345",
                "Email": "john.doe@doe.com",
                "Gsm": "+32477665544",
                "FreeField1": null,
                "FreeField2": null,
                "FreeField3": null,
                "FreeField4": null,
                "FreeField5": null,
                "FreeField6": null,
                "Notes": null,
                "Street": "Dumolinlaan",
                "HouseNumber": "9",
                "City": "Kortrijk",
                "PostalCode": "8500",
                "Submunicipality": "Kortrijk",
                "Country": 0,
                "Longitude": 3.245304,
                "Latitude": 50.812939,
                "DefaultDayProgram": {
                  "Id": "00000000-0000-0000-0000-000000000000",
                  "Name": "Default"
                },
                "Groups": [
                  {
                    "Id": "00000000-0000-0000-0000-000000000000",
                    "Name": "Employees",
                    "Type": 0,
                    "Code": "012345"
                  }
                ]
              },
              "ResourceId": "00000000-0000-0000-0000-000000000000"
            },
            "StopLocation": {
              "Id": "00000000-0000-0000-0000-000000000000",
              "MileageToday": 1.02,
              "MileageTotal": 11245.02,
              "Type": "1",
              "TypeName": "Position",
              "RtcDateTime": "2019-01-09T11:16:51+01:00",
              "GpsDateTime": "2019-01-09T11:16:51+01:00",
              "Speed": 50,
              "AllowedSpeed": 50,
              "Heading": 189,
              "Latitude": 50.812939,
              "Longitude": 3.245304,
              "Satellites": 9,
              "Pois": [
                "00000000-0000-0000-0000-000000000000",
                "00000000-0000-0000-0000-000000000000"
              ],
              "IoStates": [
                {
                  "ContactName": "Contact",
                  "StateName": "Off",
                  "IoNameType": "8",
                  "VehicleIoType": "200"
                }
              ],
              "StatusInfo": "Contact off",
              "Address": {
                "CountryName": "Belgium",
                "AddressLine": "Dumolinlaan 9, 8500 Kortrijk, BE",
                "PoiList": [
                  "00000000-0000-0000-0000-000000000000",
                  "00000000-0000-0000-0000-000000000000"
                ],
                "City": "Kortrijk",
                "CityLine": "8500 Kortrijk, BE",
                "CountryCode": 0,
                "HouseNumber": "9",
                "Latitude": 50.812939,
                "Longitude": 3.245304,
                "PostalCode": "8500",
                "ShortAddressLine": "Dumolinlaan 9, Kortrijk, BE",
                "Street": "Dumolinlaan",
                "StreetLine": "Dumolinlaan 9",
                "Submunicipality": "Kortrijk"
              },
              "BadgeNr": "00AA11BB",
              "BadgeUser": {
                "Id": "00000000-0000-0000-0000-000000000000",
                "Name": "John Doe",
                "Code": "012345",
                "EmployerCode": "012345",
                "Email": "john.doe@doe.com",
                "Gsm": "+32477665544",
                "FreeField1": null,
                "FreeField2": null,
   
...
```

_Example truncated._

#### 401: Unauthorized

#### 403: Forbidden

#### 417: ExpectationFailed
