Home > Helparticles > PRO: geoserver.nottinghamcity.gov.uk/parking/defstatus.json

PRO: geoserver.nottinghamcity.gov.uk/parking/defstatus.json

Challenge:
Show data from https://geoserver.nottinghamcity.gov.uk/parking/defstatus.json
Solution: PRO Plugin
Create a new JCI-Template with the above URL and this twig-code:
{% for c in carParks.carPark %}
{{c.definition.parkingRecord.parkingRecord.parkingNumberOfSpaces}} parkingNumberOfSpaces at 
{{ attribute(c.definition.parkingRecord.parkingRecord.parkingDescription.values.value, '#text') }} (id: {{ attribute(c, '@id') }})


parkingSiteStatus: {{c.status.parkingRecord.parkingRecordStatus.parkingSiteStatus }}
parkingSiteOpeningStatus: {{c.status.parkingRecord.parkingRecordStatus.parkingSiteOpeningStatus}}
measurementOrCalculationTime: {{c.status.parkingRecord.parkingRecordStatus.parkingOccupancy.vehicleCountAndRate.vehicleRate.measurementOrCalculationTime | date("d.m.Y, H:i") }}
fillRate: {{c.status.parkingRecord.parkingRecordStatus.parkingOccupancy.vehicleCountAndRate.vehicleRate.fillRate.vehicleFlowRate}}
exitRate: {{c.status.parkingRecord.parkingRecordStatus.parkingOccupancy.vehicleCountAndRate.vehicleRate.exitRate.vehicleFlowRate}}
{% endfor %}
Then use the Shortcode
[jsoncontentimporterpro id=NO_OF_JCI_TEMPLATE]

In Action (with locally stored, not changing JSON):
 
657 parkingNumberOfSpaces at Park and Ride (OMU-GPRS) (id: 12233069)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0
600 parkingNumberOfSpaces at Wilkinson Street Park and Ride (id: 12233071)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0
119 parkingNumberOfSpaces at Moor Bridge Car Park (id: 12233072)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0
439 parkingNumberOfSpaces at Park and Ride (UTC) (id: 12233073)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0
497 parkingNumberOfSpaces at Nottingham Train Station (id: 12233074)
parkingSiteStatus: unknown
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 21.12.2017, 02:58
fillRate: 0
exitRate: 0
629 parkingNumberOfSpaces at Wollaton Street (id: 12233076)
parkingSiteStatus: unknown
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 29.09.2017, 10:05
fillRate: 0
exitRate: 0
439 parkingNumberOfSpaces at Talbot Street (S & B Interface) (id: 12233083)
parkingSiteStatus: unknown
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 29.09.2017, 10:05
fillRate: 0
exitRate: 0
1363 parkingNumberOfSpaces at Victoria Centre South Car Park. (id: 12233084)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0
1011 parkingNumberOfSpaces at Victoria Centre North Car Park (id: 12233085)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:46
fillRate: 0
exitRate: 0
455 parkingNumberOfSpaces at Trinity Square Car Park (id: 12233086)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
297 parkingNumberOfSpaces at Lace Market - new UTMC CP replacing Fletcher Gate (id: 12233087)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:41
fillRate: 0
exitRate: 0
972 parkingNumberOfSpaces at Forest Park and Ride (id: 12345638)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 3
953 parkingNumberOfSpaces at Queens Drive Park and Ride (id: 12345672)
parkingSiteStatus: other
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
427 parkingNumberOfSpaces at Mount Street NCP (id: 12420463)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
475 parkingNumberOfSpaces at St James' NCP (id: 12420507)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 1
289 parkingNumberOfSpaces at Stoney Street NCP (id: 12420543)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
512 parkingNumberOfSpaces at Newark St. Marks Place NCP (id: 12420548)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
250 parkingNumberOfSpaces at Huntingdon Street NCP (id: 12420581)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
77 parkingNumberOfSpaces at Mount St Lower NCP (Hide) (id: 12420587)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
700 parkingNumberOfSpaces at Motorpoint Arena (id: 12972363)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
412 parkingNumberOfSpaces at Arndale Broadmarsh NCP (id: 13876508)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0
218 parkingNumberOfSpaces at undefined (id: 13951940)
parkingSiteStatus: spacesAvailable
parkingSiteOpeningStatus: open
measurementOrCalculationTime: 07.08.2020, 21:45
fillRate: 0
exitRate: 0