# barcelona

`https://joinedcontext.com/models/barcelona/barcelona/views/iktky2jhufhge2pyeijyp4nhzpg2jzcc`

## Any

Any value: an inlined object whose class this view does not show.

No slots.

## RoadAccident

One road accident the Guàrdia Urbana handled \(accidents-gu-bcn\), its hour, place and the people injured or dead as counts, with its kinds, causes and the kinds of vehicle involved from the four detail tables joined by file number; nothing about a person.

| Slot | Range | Kind | Required | Multivalued | Description |
|---|---|---|---|---|---|
| location | string | GeoProperty | no | no | Where the entity is, as GeoJSON geometry. |
| localId | string | Property | no | no | The source's own identifier of the record: a bike lane's segment code in the city's map layer \(GL4683814\), an accident's police file number \(2025S000001\). |
| status | RoadAccidentStatus | Property | yes | no | The state of the charging point from its ports: working while one is free, full when none is free and one charges, outOfService when every port is out of order, unavailable or unknown. |
| accidentDate | datetime | Property | yes | no | The hour of the accident, UTC: the police file gives the local day and hour only, so the minutes are 00. |
| totalInjured | integer | Property | no | no | The people injured and alive, slightly and seriously, as the police file counts them. |
| seriouslyInjured | integer | Property | no | no | The people seriously injured \(lesionats greus\). |
| slightlyInjured | integer | Property | no | no | The people slightly injured \(lesionats lleus\). |
| deadCount | integer | Property | no | no | The people dead, as the police file counts them \(morts\). |
| vehicleCount | integer | Property | no | no | The vehicles the accident involved. |
| pedestriansInvolved | boolean | Property | no | no | True when the police file names a pedestrian's cause; absent otherwise, since the file does not say whether an accident without one involved a pedestrian. |
| pedestrianCause | string | Property | no | no | The pedestrian's cause the police file names, in Catalan \(Creuar per fora pas de vianants\). |
| accidentKind | string | Property | no | yes | The kinds of the accident the police file names, in Catalan as the city writes them \(Col.lisió lateral, Abast, Atropellament\), from accidents-tipus-gu-bcn. |
| accidentType | string | Property | no | yes | The Smart Data Model codes of accidentKind where a code means the same: 1 frontal, 2 frontal-lateral, 3 side collision, 4 collision \(Abast, Abast multiple, Encalç\), 5 pedestrian hit, 8 impact with an obstacle \(Xoc contra element estàtic\); a kind with no such code has none. |
| accidentCause | string | Property | no | yes | The causes the police file names, in Catalan: the mediate causes \(accidents-causes-gu-bcn, Alcoholèmia\), then the drivers' causes \(accidents\_causa\_conductor\_gu\_bcn, Gir indegut o sense precaució\). |
| vehicleKind | string | Property | no | yes | The kind of each vehicle involved, once a vehicle, in Catalan as the city writes it \(Turisme, Motocicleta\), from accidents-vehicles-gu-bcn; no make, model, colour or licence. |
| vehiclesInvolved | string | Property | no | yes | The Smart Data Model code of each vehicleKind where a code means the same \(1 bicycle, 3 bus, 4 minibus, 5 car, 7 tram, 11 lorry, 12 moped, 14 motorcycle, 18 van, 20 construction or maintenance vehicle\); a personal mobility vehicle, an ambulance or an unreported kind has none. |
| numPassengersInjured | integer | Property | no | no | The passengers injured and alive, a count from accidents-persones-gu-bcn. |
| numPassengersDead | integer | Property | no | no | The passengers dead, a count from accidents-persones-gu-bcn. |
| numPedestrianInjured | integer | Property | no | no | The pedestrians injured and alive, a count from accidents-persones-gu-bcn. |
| numPedestrianDead | integer | Property | no | no | The pedestrians dead, a count from accidents-persones-gu-bcn. |
| address | Any | Property | no | no | Where the station, the well, the event, the facility, the charging point or the street furniture is, as the city publishes it, field by field \(Smart Data Models' common PostalAddress\); a field the source leaves out is absent. |
| areaServed | string | Property | no | no | Where the entity is as the city names it: the barri of a station, a well or a tourist flat, the place of a work \(a street and number, a square, a park\). |
| dataProvider | string | Property | no | no | Who publishes the data the entity was read from, with the credit its licence asks for. |
| source | uri | Property | no | no | The open-data file or the Open Data BCN dataset the entity was read from. |

## ChargingStationStatus (enum)

The EVChargingStation \`status\` values the port states map to, a subset of the Smart Data Model's enum.

- full: No port free and at least one IN\_USE.
- outOfService: Every port OUT\_OF\_ORDER, UNAVAILABLE or UNKNOWN.
- working: At least one port AVAILABLE.

## RoadAccidentStatus (enum)

The Smart Data Model RoadAccident status; a police file the city publishes is closed.

- archived: A closed police file of a past accident.
