note about coverage of data

This commit is contained in:
Mateusz Konieczny 2022-11-23 12:31:25 +01:00
parent ba6bd944fc
commit 81d8aa124e

View File

@ -169,9 +169,13 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
], ],
[Category.Planning]: [ [Category.Planning]: [
{ {
// this database commad allows to see statistics about decision dates per year
// SELECT COUNT(*), date_part('year', decision_date) as year from planning_data WHERE decision_date IS NOT NULL GROUP BY year ORDER BY year ASC;
// SELECT COUNT(*), date_part('year', registered_with_local_authority_date) as year from planning_data WHERE decision_date IS NOT NULL GROUP BY year ORDER BY year ASC;
mapStyle: 'planning_applications_status_all', mapStyle: 'planning_applications_status_all',
legend: { legend: {
title: 'All planning applications', title: 'All planning applications available from GLA Data Hub',
disclaimer: 'The map shows official data available from the GLA Data Hub. What you are looking at is mainly applications from 2019 onwards.',
elements: [ elements: [
{ color: '#53f5dd', text: 'Submitted, awaiting decision' }, { color: '#53f5dd', text: 'Submitted, awaiting decision' },
{ color: '#fff200', text: 'Appeal In Progress' }, { color: '#fff200', text: 'Appeal In Progress' },
@ -185,7 +189,8 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
{ {
mapStyle: 'planning_applications_status_recent', mapStyle: 'planning_applications_status_recent',
legend: { legend: {
title: 'Active planning applications in the last year', title: 'Last year - planning applications submissions/decisions',
disclaimer: 'The map shows applications where the submission or decision data falls within last year.',
elements: [ elements: [
{ color: '#53f5dd', text: 'Submitted, awaiting decision' }, { color: '#53f5dd', text: 'Submitted, awaiting decision' },
{ color: '#fff200', text: 'Appeal In Progress' }, { color: '#fff200', text: 'Appeal In Progress' },
@ -199,7 +204,7 @@ export const categoryMapsConfig: {[key in Category]: CategoryMapDefinition[]} =
{ {
mapStyle: 'planning_applications_status_very_recent', mapStyle: 'planning_applications_status_very_recent',
legend: { legend: {
title: 'Submissions/decisions in last 30 days', title: 'Last 30 days - planning applications submissions/decisions',
elements: [ elements: [
{ color: '#53f5dd', text: 'Submitted, awaiting decision' }, { color: '#53f5dd', text: 'Submitted, awaiting decision' },
{ color: '#fff200', text: 'Appeal In Progress' }, { color: '#fff200', text: 'Appeal In Progress' },