POST api/v2/contravention/getVehicules

Renvoi un objet InfoVehiculePosition contenant la liste des vehciules présent autour de coordonnées GPS et ces coordonnées.

Request Information

URI Parameters

None.

Body Parameters

FilterResearchVehicule
NameDescriptionTypeAdditional information
Distance

integer

Required

Minute

integer

Required

Date

date

Required

Dep

integer

None.

Road

string

None.

Pr

string

None.

Coef

decimal number

None.

IsContravention

boolean

None.

FormPosition

KilometricPointGps

None.

NoPosition

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "NoPosition": true,
  "Distance": 1,
  "Minute": 2,
  "Date": "2025-05-14T11:33:37.1989344+00:00",
  "Dep": 1,
  "Road": "sample string 4",
  "Pr": "sample string 5",
  "Coef": 1.1,
  "IsContravention": true,
  "FormPosition": {
    "Latitude": 1.1,
    "Longitude": 2.1,
    "IsUsePrLower": true,
    "IsPrTwoNull": true
  }
}

application/xml, text/xml

Sample:
<FilterResearchVehicule xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto.Contravention">
  <Coef>1.1</Coef>
  <Date>2025-05-14T11:33:37.1989344+00:00</Date>
  <Dep>1</Dep>
  <Distance>1</Distance>
  <FormPosition>
    <IsPrTwoNull>true</IsPrTwoNull>
    <IsUsePrLower>true</IsUsePrLower>
    <Latitude>1.1</Latitude>
    <Longitude>2.1</Longitude>
  </FormPosition>
  <IsContravention>true</IsContravention>
  <Minute>2</Minute>
  <NoPosition>true</NoPosition>
  <Pr>sample string 5</Pr>
  <Road>sample string 4</Road>
</FilterResearchVehicule>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InfoVehiculePosition

InfoVehiculePositionDto
NameDescriptionTypeAdditional information
VehiculePositions

Collection of VehiculePositionDto

None.

PositionTarget

PositionTargetResearchDto

None.

Response Formats

application/json, text/json

Sample:
{
  "VehiculePositions": [
    {
      "VehicleId": "ad73ac6c-54b0-4ffe-824c-b18dcf370f8a",
      "VehicleName": "sample string 1",
      "LicencePlate": "sample string 2",
      "VehicleType": "sample string 3",
      "ListDriverGpsStatement": [
        {
          "StatementUtc": "2025-05-14T11:33:37.1989344+00:00",
          "Latitude": 2.1,
          "Longitude": 3.1,
          "Speed": 4,
          "Direction": 5,
          "Driverheader": {
            "DriverId": "1093555f-e2f3-4ff8-937d-0dc56c987299",
            "CustomerId": "d9c245dd-4eef-4f0f-b9f2-bdbce1cad4db",
            "FirstName": "sample string 2",
            "LastName": "sample string 3",
            "Matricule": "sample string 4"
          },
          "MovementState": 0
        },
        {
          "StatementUtc": "2025-05-14T11:33:37.1989344+00:00",
          "Latitude": 2.1,
          "Longitude": 3.1,
          "Speed": 4,
          "Direction": 5,
          "Driverheader": {
            "DriverId": "1093555f-e2f3-4ff8-937d-0dc56c987299",
            "CustomerId": "d9c245dd-4eef-4f0f-b9f2-bdbce1cad4db",
            "FirstName": "sample string 2",
            "LastName": "sample string 3",
            "Matricule": "sample string 4"
          },
          "MovementState": 0
        }
      ]
    },
    {
      "VehicleId": "ad73ac6c-54b0-4ffe-824c-b18dcf370f8a",
      "VehicleName": "sample string 1",
      "LicencePlate": "sample string 2",
      "VehicleType": "sample string 3",
      "ListDriverGpsStatement": [
        {
          "StatementUtc": "2025-05-14T11:33:37.1989344+00:00",
          "Latitude": 2.1,
          "Longitude": 3.1,
          "Speed": 4,
          "Direction": 5,
          "Driverheader": {
            "DriverId": "1093555f-e2f3-4ff8-937d-0dc56c987299",
            "CustomerId": "d9c245dd-4eef-4f0f-b9f2-bdbce1cad4db",
            "FirstName": "sample string 2",
            "LastName": "sample string 3",
            "Matricule": "sample string 4"
          },
          "MovementState": 0
        },
        {
          "StatementUtc": "2025-05-14T11:33:37.1989344+00:00",
          "Latitude": 2.1,
          "Longitude": 3.1,
          "Speed": 4,
          "Direction": 5,
          "Driverheader": {
            "DriverId": "1093555f-e2f3-4ff8-937d-0dc56c987299",
            "CustomerId": "d9c245dd-4eef-4f0f-b9f2-bdbce1cad4db",
            "FirstName": "sample string 2",
            "LastName": "sample string 3",
            "Matricule": "sample string 4"
          },
          "MovementState": 0
        }
      ]
    }
  ],
  "PositionTarget": {
    "Latitude": 1.1,
    "Longitude": 2.1
  }
}

application/xml, text/xml

Sample:
<InfoVehiculePositionDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Vehizen.Domain.Dto">
  <PositionTarget>
    <Latitude>1.1</Latitude>
    <Longitude>2.1</Longitude>
  </PositionTarget>
  <VehiculePositions>
    <VehiculePositionDto>
      <LicencePlate>sample string 2</LicencePlate>
      <ListDriverGpsStatement>
        <DriverGpsStatementDto>
          <Direction>5</Direction>
          <Driverheader>
            <CustomerId>d9c245dd-4eef-4f0f-b9f2-bdbce1cad4db</CustomerId>
            <DriverId>1093555f-e2f3-4ff8-937d-0dc56c987299</DriverId>
            <FirstName>sample string 2</FirstName>
            <LastName>sample string 3</LastName>
            <Matricule>sample string 4</Matricule>
          </Driverheader>
          <Latitude>2.1</Latitude>
          <Longitude>3.1</Longitude>
          <MovementState>Stopped</MovementState>
          <Speed>4</Speed>
          <StatementUtc>2025-05-14T11:33:37.1989344+00:00</StatementUtc>
        </DriverGpsStatementDto>
        <DriverGpsStatementDto>
          <Direction>5</Direction>
          <Driverheader>
            <CustomerId>d9c245dd-4eef-4f0f-b9f2-bdbce1cad4db</CustomerId>
            <DriverId>1093555f-e2f3-4ff8-937d-0dc56c987299</DriverId>
            <FirstName>sample string 2</FirstName>
            <LastName>sample string 3</LastName>
            <Matricule>sample string 4</Matricule>
          </Driverheader>
          <Latitude>2.1</Latitude>
          <Longitude>3.1</Longitude>
          <MovementState>Stopped</MovementState>
          <Speed>4</Speed>
          <StatementUtc>2025-05-14T11:33:37.1989344+00:00</StatementUtc>
        </DriverGpsStatementDto>
      </ListDriverGpsStatement>
      <VehicleId>ad73ac6c-54b0-4ffe-824c-b18dcf370f8a</VehicleId>
      <VehicleName>sample string 1</VehicleName>
      <VehicleType>sample string 3</VehicleType>
    </VehiculePositionDto>
    <VehiculePositionDto>
      <LicencePlate>sample string 2</LicencePlate>
      <ListDriverGpsStatement>
        <DriverGpsStatementDto>
          <Direction>5</Direction>
          <Driverheader>
            <CustomerId>d9c245dd-4eef-4f0f-b9f2-bdbce1cad4db</CustomerId>
            <DriverId>1093555f-e2f3-4ff8-937d-0dc56c987299</DriverId>
            <FirstName>sample string 2</FirstName>
            <LastName>sample string 3</LastName>
            <Matricule>sample string 4</Matricule>
          </Driverheader>
          <Latitude>2.1</Latitude>
          <Longitude>3.1</Longitude>
          <MovementState>Stopped</MovementState>
          <Speed>4</Speed>
          <StatementUtc>2025-05-14T11:33:37.1989344+00:00</StatementUtc>
        </DriverGpsStatementDto>
        <DriverGpsStatementDto>
          <Direction>5</Direction>
          <Driverheader>
            <CustomerId>d9c245dd-4eef-4f0f-b9f2-bdbce1cad4db</CustomerId>
            <DriverId>1093555f-e2f3-4ff8-937d-0dc56c987299</DriverId>
            <FirstName>sample string 2</FirstName>
            <LastName>sample string 3</LastName>
            <Matricule>sample string 4</Matricule>
          </Driverheader>
          <Latitude>2.1</Latitude>
          <Longitude>3.1</Longitude>
          <MovementState>Stopped</MovementState>
          <Speed>4</Speed>
          <StatementUtc>2025-05-14T11:33:37.1989344+00:00</StatementUtc>
        </DriverGpsStatementDto>
      </ListDriverGpsStatement>
      <VehicleId>ad73ac6c-54b0-4ffe-824c-b18dcf370f8a</VehicleId>
      <VehicleName>sample string 1</VehicleName>
      <VehicleType>sample string 3</VehicleType>
    </VehiculePositionDto>
  </VehiculePositions>
</InfoVehiculePositionDto>