... | ... | @@ -86,25 +86,9 @@ In this *endpoint* you will obtain all the information published regarding use c |
|
|
|
|
|
> https://pre.cmobility30.es/bandejadesalida/v1/getPmvvs
|
|
|
|
|
|
It is a POST type *endpoint* that requires to send a *body* in JSON format. This *body* will have at least two fields: **idcompany** (the cn of the certificate) and the **token**. In addition, others can be added to filter the content of the response.
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"idcompany": "common_name_certificate",
|
|
|
"token": "d7ee3fe23e48e0898426bcbcac4e666b1e70070487c747a52e14c6c66a0483f8",
|
|
|
"type": 0,
|
|
|
"province": 28,
|
|
|
"road": "A2",
|
|
|
"kpfrom": 2,
|
|
|
"kpto": 50,
|
|
|
"direction": 3,
|
|
|
"mode": 3,
|
|
|
"category": 3,
|
|
|
"withgeom": 1
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Response example:
|
|
|
Response example GET operation:
|
|
|
|
|
|
```json
|
|
|
{
|
... | ... | @@ -133,18 +117,3 @@ Response example: |
|
|
]
|
|
|
}
|
|
|
``` |
|
|
|
|
|
### Example of request for PMVs in a Province
|
|
|
|
|
|
| Type | Province | Road | PK Start | PK End | Direction | Mode | Category | Geometries |
|
|
|
|:----:|:----------:|:----:|:--------:|:------:|:---------:|:----:|:--------:|:----------:|
|
|
|
| na | **Madrid** | na | na | na | na | na | na | **Sí** |
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"idcompany": "common_name_certificate",
|
|
|
"token": "d7ee3fe23e48e0898426bcbcac4e666b1e70070487c747a52e14c6c66a0483f8",
|
|
|
"province": 28,
|
|
|
"withgeom":1
|
|
|
}
|
|
|
``` |