From 29f2c2a8858a610495632398d7127b93f9f1242b Mon Sep 17 00:00:00 2001 From: Adrian Short Date: Wed, 19 Sep 2018 12:50:36 +0100 Subject: [PATCH] Update tags and README --- README.md | 17 +++++++++++------ lib/uk_planning_scraper/authorities.csv | 8 ++++---- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 79d7c57..d21a593 100644 --- a/README.md +++ b/README.md @@ -129,16 +129,21 @@ and whatever you'd like to add that would be useful to others. ### WTF is up with London? -London has got 32 London Boroughs, tagged `londonboroughs`. +London has got 32 London Boroughs, tagged `londonboroughs`. These are the councils under the authority of the Mayor of London and the Greater London Authority. -It has 33 councils: the London Boroughs plus the City of London (named `City of London`). +It has 33 councils: the London Boroughs plus the City of London (named `City of London`). We don't currently have a tag for this, but if you want to add `londoncouncils` please go ahead. -And it's got 35 local planning authorities: the 33 councils plus the two `developmentcorporations`, named `London Legacy Development Corporation` and `Old Oak and Park Royal Development Corporation`. - -The tag `london` covers all (and only) the 35 local planning authorities in London. If you want to scope to all planning applications in London, use: +And it's got 35 local planning authorities: the 33 councils plus the two `londondevelopmentcorporations`, named `London Legacy Development Corporation` and `Old Oak and Park Royal Development Corporation`. The tag `london` covers all (and only) the 35 local planning authorities in London. ```ruby -auths = UKPlanningScraper::Authority.tagged('london') +UKPlanningScraper::Authority.tagged('londonboroughs').size + => 32 + +UKPlanningScraper::Authority.tagged('londondevelopmentcorporations').size + => 2 + +UKPlanningScraper::Authority.tagged('london').size + => 35 ``` ### More fun with Authority tags diff --git a/lib/uk_planning_scraper/authorities.csv b/lib/uk_planning_scraper/authorities.csv index 28e1511..e69865c 100644 --- a/lib/uk_planning_scraper/authorities.csv +++ b/lib/uk_planning_scraper/authorities.csv @@ -21,17 +21,17 @@ Kensington and Chelsea,https://www.rbkc.gov.uk/planning/searches/default.aspx?ad Kingston upon Thames,https://maps.kingston.gov.uk/propertyServices/planning/Search,unknownsystem,london,londonboroughs Lambeth,https://planning.lambeth.gov.uk/online-applications/search.do?action=advanced,londonboroughs,london Lewisham,http://planning.lewisham.gov.uk/online-applications/search.do?action=advanced,londonboroughs,london -London Legacy Development Corporation,http://planningregister.londonlegacy.co.uk/swift/apas/run/wphappcriteria.display,london,agileplanning,developmentcorporations +London Legacy Development Corporation,http://planningregister.londonlegacy.co.uk/swift/apas/run/wphappcriteria.display,london,agileplanning,developmentcorporations,londondevelopmentcorporations Merton,http://planning.merton.gov.uk/Northgate/PlanningExplorerAA/GeneralSearch.aspx,london,outerlondon,southlondon,england,northgate,londonboroughs Newham,https://pa.newham.gov.uk/online-applications/search.do?action=advanced,londonboroughs,london,idox,londonboroughs -Old Oak and Park Royal Development Corporation,http://planningregister.opdc.london.gov.uk/swift/apas/run/wphappcriteria.display,london,agileplanning,developmentcorporations +Old Oak and Park Royal Development Corporation,http://planningregister.opdc.london.gov.uk/swift/apas/run/wphappcriteria.display,london,agileplanning,developmentcorporations,londondevelopmentcorporations Redbridge,http://planning.redbridge.gov.uk/swiftlg/apas/run/wphappcriteria.display,agileplanning,london,londonboroughs Richmond,http://www2.richmond.gov.uk/PlanData2/Planning_Report.aspx,unknownsystem,london,londonboroughs Southwark,https://planning.southwark.gov.uk/online-applications/search.do?action=advanced,londonboroughs,london -Sutton,https://planningregister.sutton.gov.uk/online-applications/search.do?action=advanced,london,outerlondon,southlondon,england +Sutton,https://planningregister.sutton.gov.uk/online-applications/search.do?action=advanced,london,londonboroughs,outerlondon,southlondon,england Tower Hamlets,https://development.towerhamlets.gov.uk/online-applications/search.do?action=advanced,londonboroughs,london Waltham Forest,http://planning.walthamforest.gov.uk/application-search?civica.query.ReceivedDateFrom=20%2F05%2F2018&civica.query.ReceivedDateTo=26%2F05%2F2018,unknownsystem,london,londonboroughs -Wandsworth,https://planning1.wandsworth.gov.uk/Northgate/PlanningExplorer/GeneralSearch.aspx,london,innerlondon,southlondon,englan +Wandsworth,https://planning1.wandsworth.gov.uk/Northgate/PlanningExplorer/GeneralSearch.aspx,london,innerlondon,southlondon,england,londonboroughs Westminster,http://idoxpa.westminster.gov.uk/online-applications/search.do?action=advanced,londonboroughs,london Bristol,https://planningonline.bristol.gov.uk/online-applications/search.do?action=advanced Salford,http://publicaccess.salford.gov.uk/publicaccess/search.do?action=advanced