... | ... | @@ -29,6 +29,57 @@ These *endpoints* are use case methods that have the objective of creating, obta |
|
|
}
|
|
|
```
|
|
|
|
|
|
#### Update of loading and unloading zone
|
|
|
|
|
|
The event is the main part of this data ingestion API. With this event it will be possible to update the information of each loading and unloading area.
|
|
|
|
|
|
- Method: PUT
|
|
|
|
|
|
- URL: {baseUrl}/v1/area
|
|
|
|
|
|
- Updates the data of a loading and unloading area
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"municipalityIneCode":50297,
|
|
|
"loadingAreaId":2,
|
|
|
"address":"abcdef",
|
|
|
"postalCode":1,
|
|
|
"timetable":"newTimeTable",
|
|
|
"capacity":0,
|
|
|
"geoJsonAddress":{
|
|
|
"type":"Polygon",
|
|
|
"coordinates":[
|
|
|
[
|
|
|
[-0.864299,41.646176],[-0.864162,41.646250],
|
|
|
[-0.864135,41.646412],[-0.864408,41.646432],
|
|
|
[-0.864453,41.646200],[-0.864299,41.646176]
|
|
|
]
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
*** = Required field**
|
|
|
|
|
|
- municipalityIneCode * (integer): identifier of the municipality where the event is generated according to [INE](https://www.ine.es/daco/daco42/codmun/cod_provincia_estandar.htm)
|
|
|
|
|
|
- loadingAreaId * (integer): loading and unloading area identifier
|
|
|
|
|
|
- address (string): address of the loading and unloading area
|
|
|
|
|
|
- postalCode (integer): zip code of the loading and unloading area
|
|
|
|
|
|
- timetable (string): loading and unloading zone hours
|
|
|
|
|
|
- capacity (integer): loading and unloading zone capacity
|
|
|
|
|
|
- geoJsonAddress: geospatial information of the loading and unloading zone
|
|
|
|
|
|
- type (string): type of loading and unloading area
|
|
|
|
|
|
- coordinates (decimal number): array of loading and unloading area coordinates
|
|
|
|
|
|
#### Obtain information on the loading and unloading areas of a municipality
|
|
|
|
|
|
- Method: GET
|
... | ... | |