... | ... | @@ -9,43 +9,80 @@ Estos *endpoints* son métodos del caso de uso que tienen el objetivo de crear, |
|
|
- Body:
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"cityIne":50297,
|
|
|
"name":"abcd",
|
|
|
"parkingId":1,
|
|
|
"address":"abc",
|
|
|
"cp":1,
|
|
|
"observations":"abc",
|
|
|
"accessConditions":"abc",
|
|
|
"timetable":"abc",
|
|
|
"capacity":0,
|
|
|
"free": 5,
|
|
|
"geometry":{
|
|
|
"type":"Polygon",
|
|
|
"coordinates":[
|
|
|
[
|
|
|
{
|
|
|
|
|
|
"cityIne": 50297,
|
|
|
"parkingName": "Parking Plaza España",
|
|
|
"parkingId": 1,
|
|
|
"address": "C. del Coso, 45",
|
|
|
"cp": 50003,
|
|
|
"observations": "Primera planta solo plazas reservadas",
|
|
|
"accessConditions": "Altura máxima 2,10 m",
|
|
|
"capacity": 168,
|
|
|
"free": 23,
|
|
|
"geometry": {
|
|
|
"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]
|
|
|
[-0.880468,41.652120],
|
|
|
[-0.880676,41.652234],
|
|
|
[-0.880306,41.652211],
|
|
|
[-0.880575,41.652344],
|
|
|
[-0.880676,41.652234],
|
|
|
[-0.880468,41.652120]
|
|
|
]
|
|
|
]
|
|
|
},
|
|
|
"timestamp": "2022-03-07T12:31:00",
|
|
|
"timetable": {
|
|
|
"exceptions":"Excepto fútbol",
|
|
|
"days":[
|
|
|
{
|
|
|
"day":"J",
|
|
|
"timeRanges":[
|
|
|
{
|
|
|
"startTime":"08:00:00",
|
|
|
"endTime":"17:00:00"
|
|
|
},
|
|
|
{
|
|
|
"startTime":"18:00:00",
|
|
|
"endTime":"22:00:00"
|
|
|
},
|
|
|
{
|
|
|
"startTime":"22:30:00",
|
|
|
"endTime":"23:55:00"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"day":"D",
|
|
|
"timeRanges":[
|
|
|
{
|
|
|
"startTime":"08:00:00",
|
|
|
"endTime":"22:00:00"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
*** = Campo requerido**
|
|
|
**(*) = Campo requerido**
|
|
|
|
|
|
- **cityIne ***: Identificador del municipio donde se genera el evento según el INE.
|
|
|
- **(*)cityIne**: Identificador del municipio donde se genera el evento según el INE.
|
|
|
|
|
|
- **cityName**: Ciudad en la que se encuentra el aparcamiento.
|
|
|
|
|
|
- **parkingName ***: Nombre del aparcamiento.
|
|
|
- **(*)parkingName**: Nombre del aparcamiento.
|
|
|
|
|
|
- **parkingId ***: Identificador del aparcamiento.
|
|
|
- **(*)parkingId**: Identificador del aparcamiento.
|
|
|
|
|
|
- **address**: Dirección del aparcamiento.
|
|
|
|
|
|
- **cp ***: Código postal del aparcamiento.
|
|
|
- **(*)cp**: Código postal del aparcamiento.
|
|
|
|
|
|
- **observations**:Información adicional del aparcamiento.
|
|
|
|
... | ... | @@ -57,9 +94,9 @@ Estos *endpoints* son métodos del caso de uso que tienen el objetivo de crear, |
|
|
|
|
|
- **timestamp**: Fecha de última actualización de la información del aparcamiento.
|
|
|
|
|
|
- **Timetable ***: Horario de funcionamiento del aparcamiento por día de la semana.
|
|
|
- **(*)Timetable**: Horario de funcionamiento del aparcamiento por día de la semana.
|
|
|
|
|
|
- **geometry *:** información geoespacial del aparcamiento.
|
|
|
- **(*)geometry** información geoespacial del aparcamiento.
|
|
|
|
|
|
#### Actualización de un aparcamiento
|
|
|
|
... | ... | @@ -83,17 +120,17 @@ El evento es la parte principal de esta API de ingesta de datos. Con este evento |
|
|
]
|
|
|
```
|
|
|
|
|
|
*** = Campo requerido**
|
|
|
**(*) = Campo requerido**
|
|
|
|
|
|
· **cityIne * **: Identificador del municipio donde se genera el evento según el INE.
|
|
|
· **(*)cityIne**: Identificador del municipio donde se genera el evento según el INE.
|
|
|
|
|
|
· **parkingId * **: Identificador del aparcamiento.
|
|
|
· **(*)parkingId**: Identificador del aparcamiento.
|
|
|
|
|
|
· **free**: Plazas libres del aparcamiento.
|
|
|
|
|
|
· **capacity**: Capacidad del aparcamiento.
|
|
|
|
|
|
· **timestamp * **: Fecha de actualización de la información.
|
|
|
· **(*)timestamp**: Fecha de actualización de la información.
|
|
|
|
|
|
#### Obtener información de los aparcamientos de un municipio
|
|
|
|
... | ... | @@ -106,7 +143,7 @@ El evento es la parte principal de esta API de ingesta de datos. Con este evento |
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
{
|
|
|
|
|
|
"cityIne": 50297,
|
|
|
"parkingName": "Parking Plaza España",
|
|
|
"parkingId": 1,
|
... | ... | @@ -176,208 +213,69 @@ El evento es la parte principal de esta API de ingesta de datos. Con este evento |
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
"cityIne": 50297,
|
|
|
"cityName": "Zaragoza",
|
|
|
"parkingName": "abcd",
|
|
|
"parkingId": "1",
|
|
|
"cp": 1,
|
|
|
"address": "abc",
|
|
|
"timetable": "abc",
|
|
|
"capacity": 0,
|
|
|
"geometry": {
|
|
|
"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]
|
|
|
]
|
|
|
|
|
|
"cityIne": 50297,
|
|
|
"parkingName": "Parking Plaza España",
|
|
|
"parkingId": 1,
|
|
|
"address": "C. del Coso, 45",
|
|
|
"cp": 50003,
|
|
|
"observations": "Primera planta solo plazas reservadas",
|
|
|
"accessConditions": "Altura máxima 2,10 m",
|
|
|
"capacity": 168,
|
|
|
"free": 23,
|
|
|
"geometry": {
|
|
|
"type": "Polygon",
|
|
|
"coordinates": [
|
|
|
[
|
|
|
[-0.880468,41.652120],
|
|
|
[-0.880676,41.652234],
|
|
|
[-0.880306,41.652211],
|
|
|
[-0.880575,41.652344],
|
|
|
[-0.880676,41.652234],
|
|
|
[-0.880468,41.652120]
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
"timestamp": "2022-03-07T12:31:00",
|
|
|
"timetable": {
|
|
|
"exceptions":"Excepto fútbol",
|
|
|
"days":[
|
|
|
{
|
|
|
"day":"J",
|
|
|
"timeRanges":[
|
|
|
{
|
|
|
"startTime":"08:00:00",
|
|
|
"endTime":"17:00:00"
|
|
|
},
|
|
|
{
|
|
|
"startTime":"18:00:00",
|
|
|
"endTime":"22:00:00"
|
|
|
},
|
|
|
{
|
|
|
"startTime":"22:30:00",
|
|
|
"endTime":"23:55:00"
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
"day":"D",
|
|
|
"timeRanges":[
|
|
|
{
|
|
|
"startTime":"08:00:00",
|
|
|
"endTime":"22:00:00"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
####
|
|
|
|
|
|
#### Borrar aparcamiento
|
|
|
|
|
|
- Method: DEL
|
|
|
|
|
|
- URL: {baseUrl}/v1/parking/{cityIne}/{parkingId} |
|
|
|
|
|
#### Obtención de información estática de los aparcamientos de un municipio en formato Datex II
|
|
|
|
|
|
- Method: GET
|
|
|
|
|
|
- URL: {baseUrl}/v1/parking/datex/static/{cityIne}
|
|
|
|
|
|
```xml
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
<d2:payload xmlns:d2="http://datex2.eu/schema/3/d2Payload"
|
|
|
xmlns="http://datex2.eu/schema/3/parking"
|
|
|
xmlns:com="http://datex2.eu/schema/3/common"
|
|
|
xmlns:comx="http://datex2.eu/schema/3/commonExtension"
|
|
|
xmlns:egi="http://datex2.eu/schema/3/energyInfrastructure"
|
|
|
xmlns:fac="http://datex2.eu/schema/3/facilities"
|
|
|
xmlns:loc="http://datex2.eu/schema/3/locationReferencing"
|
|
|
xmlns:locx="http://datex2.eu/schema/3/locationExtension"
|
|
|
xmlns:roa="http://datex2.eu/schema/3/roadTrafficData"
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
lang="es"
|
|
|
modelBaseVersion="3"
|
|
|
xsi:schemaLocation="http://datex2.eu/schema/3/d2Payload DATEXII_3_D2Payload.xsd"
|
|
|
xsi:type="ParkingTablePublication">
|
|
|
<com:publicationTime>2022-02-28T12:11:17</com:publicationTime>
|
|
|
<com:publicationCreator>
|
|
|
<com:country>es</com:country>
|
|
|
<com:nationalIdentifier>dgt</com:nationalIdentifier>
|
|
|
</com:publicationCreator>
|
|
|
<parkingTable id="50297/1" version="1">
|
|
|
<name>
|
|
|
<com:values>
|
|
|
<com:value lang="es">Parking Plaza España</com:value>
|
|
|
</com:values>
|
|
|
</name>
|
|
|
<versionTime>2022-02-28T12:11:17</versionTime>
|
|
|
<hierarchyElementGeneral id="50297/1_hierarchy" version="1" xsi:type="Place">
|
|
|
<fac:additionalInformation>
|
|
|
<com:values>
|
|
|
<com:value>Primera planta solo plazas reservadas</com:value>
|
|
|
<com:value>Altura máxima 2,10 m</com:value>
|
|
|
</com:values>
|
|
|
</fac:additionalInformation>
|
|
|
<fac:operatingHours id="50297/1_operatingHours" version="1" xsi:type="fac:OperatingHoursSpecification">
|
|
|
<fac:label>Excepto fútbol</fac:label>
|
|
|
<fac:overallPeriod>
|
|
|
<com:overallStartTime>2022-01-28T08:00:00</com:overallStartTime>
|
|
|
<com:overallEndTime>2022-01-28T23:55:00</com:overallEndTime>
|
|
|
<com:validPeriod>
|
|
|
<com:startOfPeriod>2022-01-28T08:00:00</com:startOfPeriod>
|
|
|
<com:endOfPeriod>2022-01-28T17:00:00</com:endOfPeriod>
|
|
|
<com:recurringDayWeekMonthPeriod>
|
|
|
<com:applicableDay>thursday</com:applicableDay>
|
|
|
</com:recurringDayWeekMonthPeriod>
|
|
|
</com:validPeriod>
|
|
|
<com:validPeriod>
|
|
|
<com:startOfPeriod>2022-01-28T18:00:00</com:startOfPeriod>
|
|
|
<com:endOfPeriod>2022-01-28T22:00:00</com:endOfPeriod>
|
|
|
<com:recurringDayWeekMonthPeriod>
|
|
|
<com:applicableDay>thursday</com:applicableDay>
|
|
|
</com:recurringDayWeekMonthPeriod>
|
|
|
</com:validPeriod>
|
|
|
<com:validPeriod>
|
|
|
<com:startOfPeriod>2022-01-28T22:30:00</com:startOfPeriod>
|
|
|
<com:endOfPeriod>2022-01-28T23:55:00</com:endOfPeriod>
|
|
|
<com:recurringDayWeekMonthPeriod>
|
|
|
<com:applicableDay>thursday</com:applicableDay>
|
|
|
</com:recurringDayWeekMonthPeriod>
|
|
|
</com:validPeriod>
|
|
|
<com:validPeriod>
|
|
|
<com:startOfPeriod>2022-01-28T08:00:00</com:startOfPeriod>
|
|
|
<com:endOfPeriod>2022-01-28T22:00:00</com:endOfPeriod>
|
|
|
<com:recurringDayWeekMonthPeriod>
|
|
|
<com:applicableDay>sunday</com:applicableDay>
|
|
|
</com:recurringDayWeekMonthPeriod>
|
|
|
</com:validPeriod>
|
|
|
</fac:overallPeriod>
|
|
|
</fac:operatingHours>
|
|
|
<fac:locationReference xsi:type="loc:AreaLocation">
|
|
|
<loc:openlrAreaLocationReference xsi:type="loc:OpenlrPolygonLocationReference">
|
|
|
<loc:openlrPolygonCorners>
|
|
|
<loc:openlrCoordinates>
|
|
|
<loc:latitude>41.65212</loc:latitude>
|
|
|
<loc:longitude>-0.880468</loc:longitude>
|
|
|
</loc:openlrCoordinates>
|
|
|
<loc:openlrCoordinates>
|
|
|
<loc:latitude>41.652234</loc:latitude>
|
|
|
<loc:longitude>-0.880676</loc:longitude>
|
|
|
</loc:openlrCoordinates>
|
|
|
<loc:openlrCoordinates>
|
|
|
<loc:latitude>41.652211</loc:latitude>
|
|
|
<loc:longitude>-0.880306</loc:longitude>
|
|
|
</loc:openlrCoordinates>
|
|
|
<loc:openlrCoordinates>
|
|
|
<loc:latitude>41.652344</loc:latitude>
|
|
|
<loc:longitude>-0.880575</loc:longitude>
|
|
|
</loc:openlrCoordinates>
|
|
|
<loc:openlrCoordinates>
|
|
|
<loc:latitude>41.652234</loc:latitude>
|
|
|
<loc:longitude>-0.880676</loc:longitude>
|
|
|
</loc:openlrCoordinates>
|
|
|
<loc:openlrCoordinates>
|
|
|
<loc:latitude>41.65212</loc:latitude>
|
|
|
<loc:longitude>-0.880468</loc:longitude>
|
|
|
</loc:openlrCoordinates>
|
|
|
</loc:openlrPolygonCorners>
|
|
|
</loc:openlrAreaLocationReference>
|
|
|
<loc:_areaLocationExtension>
|
|
|
<locx:facilityLocation>
|
|
|
<locx:address>
|
|
|
<locx:postCode>50003</locx:postCode>
|
|
|
<locx:city>Zaragoza</locx:city>
|
|
|
<locx:addressLine>
|
|
|
<locx:type>street</locx:type>
|
|
|
<locx:text>C. del Coso, 45</locx:text>
|
|
|
</locx:addressLine>
|
|
|
</locx:address>
|
|
|
</locx:facilityLocation>
|
|
|
<locx:namedAreaCode>50297</locx:namedAreaCode>
|
|
|
</loc:_areaLocationExtension>
|
|
|
</fac:locationReference>
|
|
|
<layer>0</layer>
|
|
|
<type>place</type>
|
|
|
<commonComponents>
|
|
|
<characteristics>
|
|
|
<structureType>onStreet</structureType>
|
|
|
<spacesTotal>168</spacesTotal>
|
|
|
</characteristics>
|
|
|
</commonComponents>
|
|
|
</hierarchyElementGeneral>
|
|
|
</parkingTable>
|
|
|
</d2:payload>
|
|
|
```
|
|
|
|
|
|
#### Obtención de información dinámica de los aparcamientos de un municipio en formato Datex II
|
|
|
|
|
|
- Method: GET
|
|
|
|
|
|
- URL: {baseUrl}/v1/parking/datex/dynamic/{cityIne}
|
|
|
|
|
|
```xml
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
|
<d2:payload xmlns:d2="http://datex2.eu/schema/3/d2Payload"
|
|
|
xmlns="http://datex2.eu/schema/3/parking"
|
|
|
xmlns:com="http://datex2.eu/schema/3/common"
|
|
|
xmlns:comx="http://datex2.eu/schema/3/commonExtension"
|
|
|
xmlns:egi="http://datex2.eu/schema/3/energyInfrastructure"
|
|
|
xmlns:fac="http://datex2.eu/schema/3/facilities"
|
|
|
xmlns:loc="http://datex2.eu/schema/3/locationReferencing"
|
|
|
xmlns:locx="http://datex2.eu/schema/3/locationExtension"
|
|
|
xmlns:roa="http://datex2.eu/schema/3/roadTrafficData"
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
lang="es"
|
|
|
modelBaseVersion="3"
|
|
|
xsi:schemaLocation="http://datex2.eu/schema/3/d2Payload DATEXII_3_D2Payload.xsd"
|
|
|
xsi:type="ParkingStatusPublication">
|
|
|
<com:publicationTime>2022-03-01T08:22:36</com:publicationTime>
|
|
|
<com:publicationCreator>
|
|
|
<com:country>es</com:country>
|
|
|
<com:nationalIdentifier>dgt</com:nationalIdentifier>
|
|
|
</com:publicationCreator>
|
|
|
<parkingStatusInformation>
|
|
|
<fac:reference id="28079/2" targetClass="fac:FacilityObject" />
|
|
|
<reference id="28079/2" targetClass="fac:FacilityObject" />
|
|
|
<statusOriginTime>2022-03-01T08:00:00</statusOriginTime>
|
|
|
<occupancy>
|
|
|
<numberOfVacantSpaces>15</numberOfVacantSpaces>
|
|
|
</occupancy>
|
|
|
</parkingStatusInformation>
|
|
|
<parkingStatusInformation>
|
|
|
<fac:reference id="28079/1" targetClass="fac:FacilityObject" />
|
|
|
<reference id="28079/1" targetClass="fac:FacilityObject" />
|
|
|
<statusOriginTime>2022-03-01T08:00:00</statusOriginTime>
|
|
|
<occupancy>
|
|
|
<numberOfVacantSpaces>201</numberOfVacantSpaces>
|
|
|
</occupancy>
|
|
|
</parkingStatusInformation>
|
|
|
</d2:payload>
|
|
|
``` |