forked from ConnectedPlacesCatapult/TomboloDigitalConnector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathget-localauthority-data-for-traffic-counters.json
72 lines (72 loc) · 2.27 KB
/
get-localauthority-data-for-traffic-counters.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"dataset": {
"subjects": [
{
// This specifies that all subjects of type "trafficCounter" should be returned.
"subjectType": "trafficCounter",
"provider": "uk.gov.dft",
"geoMatchRule": {
"geoRelation": "within",
"subjects": [
{
"subjectType": "localAuthority",
"provider": "uk.gov.ons",
"matchRule": {
"attribute": "label",
"pattern": "E090%"
}
}
]
}
}
],
"datasources": [
{
// Importer for geographies of all Local Authorities in the UK
"importerClass": "uk.org.tombolo.importer.ons.OaImporter",
"datasourceId": "localAuthority"
},
{
// Importer for London Borough Profiles
"importerClass": "uk.org.tombolo.importer.londondatastore.LondonBoroughProfileImporter",
"datasourceId": "londonBoroughProfiles"
},
{
// Importer for DfT traffic counts in London
"importerClass": "uk.org.tombolo.importer.dft.TrafficCountImporter",
"datasourceId": "trafficCounts",
"geographyScope": ["London"]
}
],
"fields": [
{
// A field that assigns to each output geography (traffic counter) the population density value from the
// Borough Profile of the borough (local authority) containing the traffic counter.
"fieldClass": "uk.org.tombolo.field.aggregation.MapToContainingSubjectField",
"label": "localAuthorityPopulationDensity",
"subject": {
"provider": "uk.gov.ons",
"subjectType": "localAuthority"
},
"field": {
"fieldClass": "uk.org.tombolo.field.value.LatestValueField",
"label": "populationDensity",
"attribute": {
"provider": "uk.gov.london",
"label": "populationDensity"
}
}
},
{
// The latest count of pedal cycles for that traffic counter
"fieldClass": "uk.org.tombolo.field.value.LatestValueField",
"label": "CountPedalCycles",
"attribute": {
"provider": "uk.gov.dft",
"label": "CountPedalCycles"
}
}
]
},
"exporter": "uk.org.tombolo.exporter.CSVExporter"
}