... | ... | @@ -8,88 +8,63 @@ |
|
|
|
|
|
```json
|
|
|
[
|
|
|
{
|
|
|
"cityIne": 50297,
|
|
|
"cityName": "Zaragoza",
|
|
|
"parkingName": "abcd",
|
|
|
"parkingId": "9",
|
|
|
"cp": 1,
|
|
|
"address": "abc",
|
|
|
"timetable": "abc",
|
|
|
"capacity": 0,
|
|
|
"geometry": {
|
|
|
"type": "Polygon",
|
|
|
"coordinates": [
|
|
|
[
|
|
|
[
|
|
|
-0.864299,
|
|
|
41.646176
|
|
|
],
|
|
|
[
|
|
|
-0.864162,
|
|
|
41.64625
|
|
|
],
|
|
|
[
|
|
|
-0.864135,
|
|
|
41.646412
|
|
|
],
|
|
|
[
|
|
|
-0.864408,
|
|
|
41.646432
|
|
|
],
|
|
|
[
|
|
|
-0.864453,
|
|
|
41.6462
|
|
|
],
|
|
|
[
|
|
|
-0.864299,
|
|
|
41.646176
|
|
|
]
|
|
|
]
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
"cityIne": 50297,
|
|
|
"cityName": "Zaragoza",
|
|
|
"parkingName": "abcd",
|
|
|
"parkingId": "10",
|
|
|
"cp": 1,
|
|
|
"address": "abc",
|
|
|
"timetable": "abc",
|
|
|
"capacity": 0,
|
|
|
"geometry": {
|
|
|
"type": "Polygon",
|
|
|
"coordinates": [
|
|
|
[
|
|
|
[
|
|
|
-0.864299,
|
|
|
41.646176
|
|
|
],
|
|
|
[
|
|
|
-0.864162,
|
|
|
41.64625
|
|
|
],
|
|
|
[
|
|
|
-0.864135,
|
|
|
41.646412
|
|
|
],
|
|
|
[
|
|
|
-0.864408,
|
|
|
41.646432
|
|
|
],
|
|
|
[
|
|
|
-0.864453,
|
|
|
41.6462
|
|
|
],
|
|
|
[
|
|
|
-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"
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
... | ... | @@ -102,48 +77,204 @@ |
|
|
- Respuesta:
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"cityIne": 50297,
|
|
|
"cityName": "Zaragoza",
|
|
|
"parkingName": "abcd",
|
|
|
"parkingId": "2",
|
|
|
"cp": 1,
|
|
|
"observations": "Parking subterráneo",
|
|
|
"address": "abc",
|
|
|
"accessConditions": "Condiciones de acceso",
|
|
|
"timetable": "abc",
|
|
|
"capacity": 5,
|
|
|
"free": 4,
|
|
|
"geometry": {
|
|
|
"type": "Polygon",
|
|
|
"coordinates": [
|
|
|
[
|
|
|
[
|
|
|
-0.864299,
|
|
|
41.646176
|
|
|
],
|
|
|
[
|
|
|
-0.864162,
|
|
|
41.64625
|
|
|
],
|
|
|
[
|
|
|
-0.864135,
|
|
|
41.646412
|
|
|
],
|
|
|
[
|
|
|
-0.864408,
|
|
|
41.646432
|
|
|
],
|
|
|
[
|
|
|
-0.864453,
|
|
|
41.6462
|
|
|
],
|
|
|
[
|
|
|
{
|
|
|
"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.864299,41.646176],[-0.864162,41.646250],
|
|
|
[-0.864135,41.646412],[-0.864408,41.646432],
|
|
|
[-0.864453,41.646200],[-0.864299,41.646176]
|
|
|
]
|
|
|
]
|
|
|
]
|
|
|
}
|
|
|
}
|
|
|
``` |
|
|
\ No newline at end of file |
|
|
]
|
|
|
}
|
|
|
}
|
|
|
]
|
|
|
```
|
|
|
|
|
|
#### 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>
|
|
|
``` |
|
|
\ No newline at end of file |