Skip to content

Commit

Permalink
Add coverage and planning data sections
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Oct 25, 2023
1 parent 8d14795 commit 63b42dd
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions app/views/_tailwind/applications/_address_search.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,37 @@
</div>
<%= pa_link_to "View more latest applications", applications_path, class: "text-2xl pt-6" %>
</div>

<section class="py-12 mt-8 text-2xl border-t border-light-grey2 text-navy">
<h2 class="pb-2 text-3xl font-bold text-navy font-display">Coverage</h2>
<p class="pt-4">
We currently cover
<%= Authority.percentage_population_covered_by_all_active_authorities.to_i %>% of
Australia's population within <%= Authority.active.count %> authorities.
For this number we're only counting places where the main planning authority is covered.
As an example, most of Victoria is covered by the SPEAR system but not all Victorian
planning applications go through it. So, we don't include SPEAR in our population count.
</p>
<p class="pt-4">
We don't yet cover the whole country, but we are working on it.
New authorities are being added all the time.
</p>
<p class="pt-4">
If you are a programmer and would like to write a scraper for your local authority,
or work for a local authority and would like to make your data available,
<%= pa_link_to "find out how you can get involved", get_involved_path %>.
</p>
</section>

<section class="py-12 text-2xl border-t text-navy border-light-grey2">
<%# TODO: Better heading? %>
<h2 class="pb-2 text-3xl font-bold text-navy font-display">Planning Data</h2>
<p class="pt-4">
From time to time planning authorities change their websites which breaks the scrapers
that gather the planning data. Help by providing a
<%= pa_link_to "donation", donate_url %> to help us fix it.
</p>
<p class="pt-4">
<%= pa_link_to "Check if planning data is broken for your authority", authorities_path %>
</p>
</section>

0 comments on commit 63b42dd

Please sign in to comment.