|
|
Estos *endpoints* son métodos del caso de uso que tienen el objetivo de obtener información sobre las zonas de carga y descarga.
|
|
|
|
|
|
#### Obtener información de las zonas de carga y descarga de un municipio
|
|
|
|
|
|
- Method: GET
|
|
|
|
|
|
- URL: {baseUrl}/v1/area/{municipalityIneCode}
|
|
|
|
|
|
- Respuesta:
|
|
|
|
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
"municipalityIneCode": 50297,
|
|
|
"loadingAreaId": "1",
|
|
|
"postalCode": 1,
|
|
|
"address": "abcdef",
|
|
|
"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]
|
|
|
]
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"municipalityIneCode": 50297,
|
|
|
"loadingAreaId": "2",
|
|
|
"postalCode": 1,
|
|
|
"address": "abcdefg",
|
|
|
"timetable": "abc",
|
|
|
"capacity": 10,
|
|
|
"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]
|
|
|
]
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
#### Obtener información de una zona de carga y descarga
|
|
|
|
|
|
- Method: GET
|
|
|
|
|
|
- URL: {baseUrl}/v1/area/{municipalityIneCode}/{loadingAreaId}
|
|
|
|
|
|
- Respuesta:
|
|
|
|
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
"municipalityIneCode": 50297,
|
|
|
"loadingAreaId": "1",
|
|
|
"postalCode": 1,
|
|
|
"address": "abcdef",
|
|
|
"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]
|
|
|
]
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
``` |