<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Maya Hori on Medium]]></title>
        <description><![CDATA[Stories by Maya Hori on Medium]]></description>
        <link>https://medium.com/@mhori.karin?source=rss-069171108acb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*hnXj0pLQO1cLZeszyTXBTA.png</url>
            <title>Stories by Maya Hori on Medium</title>
            <link>https://medium.com/@mhori.karin?source=rss-069171108acb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:55:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mhori.karin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building a Repeatable Site-Screening Pipeline for UK Urban Regeneration: BigQuery GIS, Dataform…]]></title>
            <link>https://medium.com/google-cloud/building-a-repeatable-site-screening-pipeline-for-uk-urban-regeneration-bigquery-gis-dataform-2b45b4f2b165?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/2b45b4f2b165</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[geospatial]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 04:25:03 GMT</pubDate>
            <atom:updated>2026-11-23T04:25:03.959Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Repeatable Site-Screening Pipeline for UK Urban Regeneration: BigQuery GIS, Dataform, and Data Studio</h3><p>A case study on Birmingham’s Digbeth district — combining planning lineage, flood risk, heritage constraints, and instant Street View verification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/1*c0HSTEL1k7TNXWPT2WToTA.png" /></figure><h3><strong>1. Introduction: Exploring Urban Regeneration in Digbeth</strong></h3><p>Recently, while exploring UK urban datasets, I found myself drawn to the massive urban regeneration happening in <strong>Digbeth, Birmingham</strong>. Located right next to the upcoming HS2 Curzon Street station, it is a district full of industrial heritage, vibrant street art, and large-scale redevelopment potential — alongside complex planning constraints.</p><p>Instead of just building a one-off map, my goal here was to design a <strong>repeatable site-screening pipeline</strong> using BigQuery GIS, Dataform, and Data Studio. By modularizing how we integrate fragmented UK open data, this exact same workflow can be easily adapted to evaluate other regeneration areas across the UK.</p><p>Here is a quick walkthrough of the finished dashboard in action:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxL2JH-v1CG4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxL2JH-v1CG4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxL2JH-v1CG4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/17ad4a339d5a120e3f2a8b0f45f6e613/href">https://medium.com/media/17ad4a339d5a120e3f2a8b0f45f6e613/href</a></iframe><p><em>Demo: Interactive Digbeth regeneration &amp; site-screening dashboard built in Data Studio.</em></p><h3>2. The Data Foundation: Integrating Fragmented UK Open Data</h3><p>Evaluating urban regeneration potential requires looking at both development opportunities and regulatory or environmental constraints side by side. For this Digbeth model, I brought together five key UK open datasets at the parcel level:</p><ul><li><strong>HELAA Site Allocations &amp; Brownfield Land Registers:</strong> To identify candidate development sites and previously developed land earmarked for regeneration.</li><li><strong>Local Planning Registers (with Parent-Child Lineage):</strong> To track historical planning applications and understand how masterplans break down into phased or reserved-matter applications over time.</li><li><strong>Conservation Areas:</strong> To flag heritage boundaries where stricter design, demolition, and exterior alteration rules apply.</li><li><strong>Defra Flood Risk Zones:</strong> To assess environmental vulnerability — a critical factor in Digbeth given its proximity to the River Rea and local canals.</li><li><strong>HS2 Curzon Street Proximity:</strong> To measure spatial distance to the upcoming high-speed rail terminus as a proxy for connectivity and regeneration momentum.</li></ul><p>On their own, these datasets live in different formats and coordinate systems. Bringing them together into a single, site-centric table makes it possible to screen dozens of parcels in seconds rather than cross-referencing multiple council portals manually.</p><h3>3. Architecture: Modular Modeling with Dataform &amp; BigQuery GIS</h3><p>Before loading the data into BigQuery, I used <strong>QGIS</strong> to inspect and standardize the raw spatial geometries — ensuring consistent coordinate reference systems (CRS) and valid polygon boundaries.</p><p>Once in <strong>BigQuery GIS</strong>, I structured the transformation pipeline using <strong>Dataform</strong> across three clean layers:</p><ol><li><strong>Staging Layer:</strong> Cleans field names, standardizes timestamps, and casts spatial geometries into BigQuery GEOGRAPHY objects.</li><li><strong>Intermediate Layer:</strong> Performs spatial joins (ST_INTERSECTS) to attach Conservation Area flags and Flood Zones to each candidate site, computes exact distances (ST_DISTANCE) to HS2 Curzon Street, and links parent-child planning records.</li><li><strong>Mart Layer:</strong> Produces a wide, analytics-ready table optimized for fast filtering and mapping in Data Studio.</li></ol><p>By encapsulating these spatial rules into modular SQLX models in Dataform, the pipeline acts like a reusable template — meaning I can point it at a new set of local boundaries without rewriting the core spatial logic.</p><p>Here is a closer look at how the Dataform DAG and BigQuery GIS pipeline are structured under the hood:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FdTj1peig0U4%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdTj1peig0U4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FdTj1peig0U4%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/46f4f5e38571c6337d763b37091ca7d8/href">https://medium.com/media/46f4f5e38571c6337d763b37091ca7d8/href</a></iframe><p><em>Walkthrough: Behind the scenes of the Dataform and BigQuery GIS spatial pipeline.</em></p><h3>4. The Last Mile: Instant Visual Verification in Data Studio</h3><p>Quantitative open data tells us <em>what is permitted</em> and <em>what risks exist</em>, but it doesn’t always tell us what a site actually looks like on the ground today. Because Data Studio natively integrates <strong>Google Maps</strong>, we can bridge that gap right inside the dashboard:</p><ul><li><strong>Satellite View:</strong> With one click, we can inspect candidate parcels from above to see whether a site is already cleared vacant land or still occupied by existing structures (keeping the imagery capture date in mind).</li><li><strong>Street View (Pegman):</strong> Dragging the Street View Pegman onto the road next to a parcel lets us check building conditions, surrounding streetscapes, and the unmistakable neighborhood character — including Digbeth’s iconic street art — before ever visiting in person.</li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FlHPi8r07bMc%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DlHPi8r07bMc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FlHPi8r07bMc%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/6a5a5be6ba8953cbe872813a78ad169c/href">https://medium.com/media/6a5a5be6ba8953cbe872813a78ad169c/href</a></iframe><p><em>Quick Tip: Using Satellite view and Street View Pegman in Data Studio for instant visual site verification.</em></p><h3>5. Key Takeaways</h3><p>Combining structured spatial open data with built-in Satellite and Street View makes initial site screening dramatically faster. Open data narrows down dozens of candidates based on planning history, flood risk, and heritage rules, while instant visual checks provide immediate real-world context.</p><p>Because the spatial logic is modularized in Dataform, this exact same pipeline can be easily adapted to evaluate other UK regeneration districts — whether industrial corridors or historic conservation areas — simply by swapping in new local boundary datasets.</p><p>Feel free to check out the full series of walkthrough videos linked above!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2b45b4f2b165" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/building-a-repeatable-site-screening-pipeline-for-uk-urban-regeneration-bigquery-gis-dataform-2b45b4f2b165">Building a Repeatable Site-Screening Pipeline for UK Urban Regeneration: BigQuery GIS, Dataform…</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pitching a 9-Part BigQuery Portfolio to Three “AI Executives” (And the Reality Check That Followed)]]></title>
            <link>https://medium.com/google-cloud/pitching-a-9-part-bigquery-portfolio-to-three-ai-executives-and-the-reality-check-that-followed-e8ba6ec1c75e?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8ba6ec1c75e</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[bigquery]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 08:05:26 GMT</pubDate>
            <atom:updated>2026-10-26T08:05:26.547Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oboJz3hKMYHjnb1kLwGamw.jpeg" /></figure><h3>What happened when I spent a jet-lagged night in Tokyo trying to monetize open data pipelines — before hitting the ultimate boundary condition.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UoxvHyYBpXWsk31Jrez0KA.jpeg" /></figure><p>Over the past few months, I published a nine-part technical series on Medium exploring UK open data through the Google Cloud ecosystem. Armed with <strong>BigQuery GIS, dbt, and Looker Studio / Data Studio</strong>, I dissected the historic market town of Shrewsbury:</p><ul><li>Programmatically auditing and deduplicating raw UK Energy Performance Certificate (EPC) registers.</li><li>Calculating travel-friction corridors and spatial healthcare access gaps across the National Health Service (NHS) network.</li><li>Deploying real-time planning intelligence dashboards tracking municipal development applications.</li></ul><p>As an engineering showcase, the architecture was complete.</p><p>Then came a temporary trip home to Japan. Late one night in Tokyo, wide awake from jet lag, a mischievous thought crossed my mind:</p><blockquote>“If there were zero external constraints, how would an analyst actually monetize this 9-part technical stack into a real-world business?”</blockquote><p>Of course, reality already had an answer: my UK visa conditions strictly prohibit conducting unauthorized local business operations or soliciting clients in Britain. I knew this from the start.</p><p>Still, sitting in Tokyo, I decided to treat the question as a <strong>pure thought experiment</strong>. To make things interesting, I convened a late-night virtual boardroom of three specialized AI agents:</p><ul><li><strong>The AI CEO:</strong> Obsessed with hyper-scaling, venture metrics, and turning everything into a recurring B2B SaaS.</li><li><strong>The AI CTO:</strong> Dedicated to pure engineering elegance, eager to build multi-tenant microservices and live APIs.</li><li><strong>The AI Risk Officer:</strong> The eternal pessimist, hypersensitive to liability, cash runways, and uptime guarantees.</li></ul><p>“Alright, team,” I prompted. “We have nine articles’ worth of production-grade spatial pipelines. How do we turn this intellectual property into cash? Let’s brainstorm.”</p><p>What followed was an analytical reality check.</p><h3>The Boardroom Massacre: Four Business Models Destroyed in Minutes</h3><p>The AI executives jumped in with textbook monetization strategies. One by one, we stress-tested each proposal against the realities of the UK commercial landscape.</p><h4>1. The Local Real Estate SaaS</h4><ul><li><strong>AI CEO’s Proposal:</strong></li><li>“Package the municipal planning monitor into a slick subscription portal. Charge local estate agents and letting agencies £150/month to track upcoming neighborhood developments.”</li><li><strong>The Real-World Counter:<br>Dismissed immediately.<br></strong>Local high-street agents in market towns do not need a Looker Studio / Data Studio dashboard to know which field is slated for development. Their intelligence network consists of three decades on the high street, pub conversations, and boots-on-the-ground intuition. You cannot sell algorithmic insights to people whose core business operates on 80% localized instinct.</li></ul><h4>2. Disrupting Enterprise Property Consultancies</h4><ul><li><strong>AI CTO’s Proposal:<br></strong>“Major global consultancies charge five-figure fees for urban planning and appraisal dossiers. We can use automated BigQuery GIS pipelines to undercut them by 80%.”</li><li><strong>The Real-World Counter:<br>Dismissed upon reading the paperwork.<br></strong>Having reviewed actual appraisal dossiers from institutional property firms, the deliverable is not just a spatial map. It includes rigorous balance-sheet underwriting, certified surveyor inspections, and — most crucially — dozens of pages of ironclad legal disclaimers drafted by elite legal teams. When a client pays £25,000 for a development appraisal, they are not paying for SQL transforms; they are buying an insurance policy and institutional credibility. A lone data analyst cannot compete in that ring.</li></ul><h4>3. Joint Venture with a PropTech Startup</h4><ul><li><strong>AI CEO’s Proposal:<br></strong>“License the data transformations to an established London PropTech firm. Co-develop an enterprise spatial feature and take equity or a revenue-share cut.”</li><li><strong>The Real-World Counter:<br>Dismissed by looking at the balance sheet.<br></strong>Negotiating meaningful equity or revenue share in a joint tech venture requires substantial leverage — either defensible proprietary datasets or significant upfront development capital. Without deep institutional funding to survive protracted enterprise sales cycles, a solo practitioner is quickly diluted into an unpaid subcontractor.</li></ul><h4>4. The Direct-to-Consumer Live Dashboard</h4><ul><li><strong>AI CTO’s Proposal:<br></strong>“Cut out the middlemen! Spin up a dynamic web application on Cloud Run or sell premium access tiers to an interactive Looker Studio / Data Studio hub. Charge £1 per query to prospective homebuyers!”</li><li><strong>The AI Risk Officer &amp; Myself:<br>Dismissed while reaching for heartburn medication.<br></strong>This was the most dangerous trap of all:</li><li><strong>The SLA Nightmare:</strong> The second paying users rely on your dashboard to evaluate a home purchase, you shoulder implicit operational liabilities. When upstream council portals change their schema unannounced at 2:00 AM, or an open-data endpoint times out while you are traveling between time zones, who fixes the pipeline?</li><li><strong>The Unit Economics Trap:</strong> Consumer real estate search has brutal Customer Acquisition Costs (CAC) and near-zero Lifetime Value (LTV) — people only buy or rent a home once every few years. You burn out on marketing spend before breaking even on cloud compute.</li></ul><h3>The Pivot: The “As-Is” Analytical Buyout</h3><p>“Every standard startup playbook is dead,” the AI CEO muttered in the virtual chat.</p><p>No operational SLAs. No enterprise legal exposure. No upfront venture capital. No consumer acquisition burn.</p><p>Faced with these rigid constraints, the AI board spent hours stripping away moving parts until only one viable architecture remained:</p><pre>[The Fragile Model]<br>Dynamic Cloud Stack ──&gt; Live Dashboard ──&gt; B2C / SaaS Users ──&gt; 24/7 SLA Liability<br>[The Resilient Model]<br>Modular Data Pipeline ──&gt; As-Is Intellectual Property ──&gt; Target Intermediaries ──&gt; Zero SLA Liability</pre><ul><li><strong>Deliver Code, Not Service:</strong> Sell the modular data transformations and spatial scoring models as an immutable, “As-Is” code bundle — complete with comprehensive liability waivers. No ongoing maintenance contracts. No dynamic uptime requirements.</li><li><strong>Target Existing Distribution Channels:</strong> Bypass end-users entirely. Approach a curated list of around 10 established corporate relocation agencies or corporate mobility consultancies that already service incoming multinational clients.</li><li><strong>The Value Proposition:</strong> License the spatial evaluation methodology as an internal diagnostic asset for a one-time IP fee (~£3,500 per license), allowing their in-house teams to generate client assessments without ongoing vendor dependence.</li></ul><p>“This solves everything,” the AI CEO declared, virtually slamming the conference table. “Zero uptime overhead, high gross margin, and zero customer support drag! Let’s draft the target list of 10 London firms and start booking cold-call discovery meetings the moment you land back in the UK!”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j7ysJeXFMCVlG-LBTn88Rw.jpeg" /></figure><h3>The Punchline</h3><p>Sitting in my Tokyo apartment, I took a slow sip of cold green tea and typed into the prompt:</p><blockquote>“Well… no. I’m not doing that. As I mentioned at the very beginning, my UK visa strictly prohibits soliciting clients or running local business operations in Britain.”</blockquote><p>A prolonged pause hung over the terminal.</p><blockquote><strong><em>AI CEO:</em></strong><em> </em>“Wait… what?”</blockquote><blockquote><strong><em>AI CTO:</em></strong><em> </em>“Then what was this entire 4-hour architecture session for?!”</blockquote><blockquote><strong><em>Me:</em></strong><em> </em>“I told you. It was a late-night, jet-lagged thought experiment.”</blockquote><p>The collective sound of three AI executives collapsing face-first onto the virtual boardroom table was almost audible.</p><h3>Final Thoughts: Product Strategy Lives Within Legal Realities</h3><p>In the world of cloud data engineering, it is easy to become enamored with technical capability. We celebrate clean DAGs, sub-second BigQuery GIS queries, and elegant Looker Studio / Data Studio dashboards.</p><p>Yet no data architecture exists in a vacuum. A software design is only as viable as the human, operational, and regulatory constraints surrounding it. You can build the most elegant spatial pipeline on Google Cloud, but if the maintenance SLA threatens your personal sanity — or local immigration laws prohibit commercial execution — the optimal business decision is not to scale, but to stop.</p><p>So, what becomes of the nine Shrewsbury articles and the late-night monetization framework?</p><p>I have no intention of packaging them into a paid service or pitching them to UK agencies. The pipelines will remain exactly what they were meant to be: an open-source technical showcase, a proven portfolio of spatial data techniques, and a reminder that knowing when <em>not</em> to build a business is the most valuable analytical skill of all.</p><p><em>(End)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8ba6ec1c75e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/pitching-a-9-part-bigquery-portfolio-to-three-ai-executives-and-the-reality-check-that-followed-e8ba6ec1c75e">Pitching a 9-Part BigQuery Portfolio to Three “AI Executives” (And the Reality Check That Followed)</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Engineering the Shrewsbury Residential Liveability Index: Synthesizing 6 Layers of Spatial…]]></title>
            <link>https://medium.com/google-cloud/engineering-the-shrewsbury-residential-liveability-index-synthesizing-6-layers-of-spatial-fc54721b467f?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc54721b467f</guid>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Mon, 19 Oct 2026 05:32:55 GMT</pubDate>
            <atom:updated>2026-10-19T05:32:55.577Z</atom:updated>
            <content:encoded><![CDATA[<h3>Engineering the Shrewsbury Residential Liveability Index: Synthesizing 6 Layers of Spatial Intelligence into a Single Data Studio Decision Dashboard</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6fKuGSpsXiBWMLF920-3KA.jpeg" /></figure><h3>1. Introduction: From Isolated Analyses to Unified Spatial Intelligence</h3><p>Over the past several months, my technical exploration of UK open data has unpacked Shrewsbury’s spatial and built environment through distinct, specialized lenses:</p><ol><li><a href="https://medium.com/google-cloud/building-an-ai-powered-energy-simulation-a-deep-dive-into-the-google-cloud-ecosystem-with-gemini-e03714000c8c"><strong>Building an AI-Powered Energy Simulation</strong></a>: Leveraging Gemini and BigQuery to model building energy behavior within the Google Cloud ecosystem.</li><li><a href="https://medium.com/google-cloud/unlocking-real-estate-intelligence-building-an-ai-driven-address-resolution-pipeline-with-a0f62e9ff55f"><strong>Unlocking Real Estate Intelligence</strong></a>: Architecting an AI-driven address resolution pipeline to unify fragmented property records across HM Land Registry and EPC datasets using BigQuery, Gemini, and Looker Studio (Data Studio).</li><li><a href="https://medium.com/google-cloud/real-estate-lifecycle-analysis-with-bigquery-sql-graph-graph-modeling-beyond-llm-record-linkage-ad61fc10d547"><strong>Real Estate Lifecycle Analysis with BigQuery SQL Graph</strong></a>: Expanding beyond record linkage into graph modeling to trace property transformations and transactional lifecycles.</li><li><a href="https://medium.com/google-cloud/unlocking-hyper-local-retrofit-patterns-using-bigquery-ml-to-decipher-shrewsburys-property-a850090ee670"><strong>Unlocking Hyper-Local Retrofit Patterns</strong></a>: Deploying BigQuery ML clustering on resolved Land Registry and EPC data to segment residential neighborhoods and uncover structural upgrade trends.</li><li><a href="https://medium.com/google-cloud/mapping-local-flood-risks-in-looker-studio-using-defra-open-data-and-bigquery-db2571a7dcd0"><strong>Mapping Local Flood Risks in Looker Studio (Data Studio) using Defra Open Data and BigQuery</strong></a>: Evaluating geographic vulnerability across Environment Agency Flood Zones 2 and 3.</li><li><a href="https://medium.com/google-cloud/quantifying-location-quality-for-real-estate-valuation-modeling-nhs-healthcare-access-in-2d7c7b8ea570"><strong>Quantifying Location Quality for Real Estate Valuation: Modeling NHS Healthcare Access in Shrewsbury with BigQuery GIS, dbt, and Looker Studio (Data Studio)</strong></a>: Measuring primary care accessibility through spatial travel buffers.</li><li><a href="https://medium.com/google-cloud/tracking-urban-growth-heritage-engineering-a-real-time-planning-intelligence-dashboard-with-513c79debe43"><strong>Tracking Urban Growth &amp; Heritage: Engineering a Real-Time Planning Intelligence Dashboard with BigQuery and Looker Studio (Data Studio)</strong></a>: Monitoring planning permissions and conservation constraints in historical townscapes.</li><li><a href="https://medium.com/google-cloud/does-the-catchment-premium-really-exist-d7a22438498f"><strong>Does the “Catchment Premium” Really Exist? Unmasking Spatial Reality in Shrewsbury with BigQuery GIS &amp; Looker Studio (Data Studio)</strong></a>: Cross-referencing Ofsted inspection ratings with property values to test educational premiums.</li></ol><p>While each of the previous 8 articles explored distinct analytical methodologies and domain challenges — from LLM-based address resolution and graph modeling to machine learning clustering — a critical real-world friction persisted: <strong>citizens, investors, and urban planners do not experience a town through isolated layers.</strong></p><p>In reality, location decisions are driven by continuous multi-variable trade-offs across multiple urban dimensions. Jumping between separate analyses obscures these structural balances. To solve this, I synthesized our accumulated spatial data assets — spanning 6 distinct open data layers (Transactions, EPC, Flood Risk, Healthcare Access, Planning Constraints, and Education) — into a single interactive decision platform: <strong>The Shrewsbury Residential Liveability Index</strong>, built using Google Data Studio (formerly Looker Studio).</p><h3>2. Architecture &amp; Scoring Methodology: Why the Postcode Level?</h3><h3>The Granularity Trade-Off: Address vs. Postcode</h3><p>In spatial data engineering, the theoretical ideal is individual property-level linkage (the UPRN / Address level). However, real-world open data presents significant sparsity challenges: not every individual dwelling has a recent transaction, an up-to-date EPC certificate, or direct planning applications. Furthermore, visualizing raw points at the single-dwelling scale introduces visual noise and cognitive overload.</p><p>To balance statistical completeness with hyper-local spatial precision, I standardized the aggregation tier at the <strong>Postcode level</strong> (typically representing clusters of 15 to 20 households). This unit preserves neighborhood nuance while ensuring complete join rates across disparate administrative geometries.</p><h3>Composite Scoring Framework (0–100 Scale)</h3><p>The index consolidates four core domains, each standardized to a 0–25 scale, resulting in an overall Liveability Index ranging from 0 to 100:</p><ol><li><strong>score_education (0–25)</strong>: Proximity-weighted scoring based on the latest Ofsted ratings for both primary and secondary schools.</li><li><strong>score_environment (0–25)</strong>: Evaluates baseline environmental quality, factoring in Defra Flood Zones (penalizing high-risk flood envelopes).</li><li><strong>score_healthcare (0–25)</strong>: Spatial accessibility and buffer metrics to local NHS GP practices.</li><li><strong>score_housing_quality (0–25)</strong>: Structural energy efficiency (EPC current ratings) and usable domestic living area (<em>m²</em>).</li></ol><pre>-- Conceptual aggregation query in BigQuery GIS<br>CREATE OR REPLACE TABLE `analytics.shrewsbury_liveability_mart` AS<br>SELECT<br>  p.postcode,<br>  p.outward_code,<br>  ROUND(AVG(lr.price), 0) AS avg_price,<br>  ROUND(AVG(epc.total_floor_area), 1) AS avg_size_m2,<br>  ROUND(COUNTIF(epc.current_energy_rating IN (&#39;A&#39;, &#39;B&#39;, &#39;C&#39;)) / COUNT(epc.postcode) * 100, 1) AS epc_c_plus_pct,<br>  -- Domain Scores (Normalized 0-25)<br>  scores.score_education,<br>  scores.score_environment,<br>  scores.score_healthcare,<br>  scores.score_housing_quality,<br>  -- Overall Composite Index (0-100)<br>  (scores.score_education + scores.score_environment + scores.score_healthcare + scores.score_housing_quality) AS liveability_score<br>FROM `raw.uk_postcodes` p<br>JOIN `analytics.land_registry_normalized` lr ON p.postcode = lr.postcode<br>JOIN `analytics.epc_clean` epc ON p.postcode = epc.postcode<br>JOIN `analytics.spatial_subscores` scores ON p.postcode = scores.postcode<br>GROUP BY 1, 2, 6, 7, 8, 9, 10;</pre><h3>3. Unmasking Urban Dynamics: Key Insights from the Dashboard</h3><p>The resulting Data Studio dashboard combines spatial maps, top-tier KPI scorecards, multi-domain breakdown charts across outward postal codes (SY1, SY2, SY3), and granular property-level tables.</p><p>Filtering across dimensions reveals critical dynamics that single-variable queries would miss.</p><h3>Insight 1: The Town-Wide Baseline</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*WcmEo-F6J3Ztlu-jh59hhQ.png" /><figcaption><em>Figure 1: Baseline Overview of Shrewsbury Residential Liveability Index</em></figcaption></figure><p>Across 3,807 analyzed residential sales, the baseline metrics establish a clear regional profile:</p><ul><li><strong>Average Liveability Score</strong>: 63 / 100</li><li><strong>Average Transaction Price</strong>: £306,603</li><li><strong>Energy Efficiency (EPC C+)</strong>: 44%</li><li><strong>Average Domestic Floor Area</strong>: 96 <em>m²</em></li></ul><p>The horizontal bar chart highlights the structural character of Shrewsbury’s sectors:</p><ul><li><strong>SY1 (Town Center / North)</strong>: Anchored by superior healthcare accessibility and central amenities, though tempered by historical building constraints.</li><li><strong>SY2 (East / Suburbs)</strong>: A balanced distribution with strong housing scale and environment metrics.</li><li><strong>SY3 (South / West)</strong>: Demonstrates the strongest educational accessibility profiles across the district.</li></ul><h3>Insight 2: The Education Premium vs. The Retrofit Burden</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*2g4dmGrFJHThv0pG7fffRA.png" /><figcaption><em>Figure 2: Filtered by Outstanding Primary Catchments</em></figcaption></figure><p>Filtering specifically for postcodes served by <strong>“Outstanding” Primary Schools</strong> (such as Coleham Primary) surfaces a clear financial and infrastructural trade-off:</p><ul><li>The <strong>Liveability Score jumps from 63 to 67</strong>.</li><li>The <strong>Average Property Price rises to £317,997</strong> — reflecting a catchment premium exceeding £11,000.</li><li>However, the <strong>EPC C+ share drops from 44% down to 41%</strong>.</li></ul><p>As explored in Article 4 of this series using BigQuery ML, the most coveted school catchments in historic towns often coincide with mature, Victorian and Edwardian housing stock. Buyers paying a premium for educational access frequently acquire older, solid-wall properties that require significant capital expenditure to retrofit to modern thermal standards.</p><h3>Insight 3: The Waterfront Paradox — Why High Flood Risk Elevates Liveability</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*ifymAckajgoqRzAsaD6_Lg.png" /><figcaption><em>Figure 3: Filtered by High Flood Risk (Zone 3)</em></figcaption></figure><p>The most counter-intuitive dynamic surfaces when filtering exclusively for areas categorized under <strong>High Flood Risk (Zone 3)</strong> along the River Severn:</p><ul><li>Counter to initial intuition, the <strong>Liveability Index reaches its peak at 73</strong>.</li><li>The <strong>EPC C+ rate surges to 59%</strong> (a 15-point increase above the town baseline).</li><li>Concurrently, the <strong>Average Price drops sharply to £239,700</strong>, and the <strong>Average Floor Area contracts from 96 <em>m²</em> to 81 <em>m²</em></strong>.</li></ul><h4>Deciphering the Property Typology</h4><p>Why do flood-designated envelopes score higher in liveability and energy performance while trading at a discount?</p><p>The data reflects a distinct property typology: <strong>modern riverside apartment developments (flats and maisonettes)</strong>.</p><ul><li><strong>Built-in Thermal Efficiency</strong>: Multi-family apartment blocks naturally expose less external surface area than detached houses, translating directly into superior EPC ratings.</li><li><strong>Post-2000s Regulatory Standards</strong>: Many riverside schemes were constructed under modern Building Regulations incorporating elevated ground-floor parking or engineered flood mitigation, pairing high thermal performance with riverside visual amenities.</li><li><strong>Urban Centrality</strong>: These developments cluster within walking distance of Shrewsbury’s historic core, rail station, and healthcare infrastructure, pushing urban convenience sub-scores to their maximum.</li></ul><p>Rather than a simple hazard to be avoided, spatial engineering reveals this zone as an accessible, energy-efficient option for households prioritizing urban walkability over suburban land area.</p><h3>4. Conclusion: From Siloed Points to Holistic Decision Intelligence</h3><p>By anchoring 6 multi-domain open data layers — energy ratings, flood zones, medical facilities, educational performance, planning constraints, and property sales — into a structured Postcode-level BigQuery mart, the data transitions from disconnected spreadsheets into an explanatory model of urban reality.</p><p>Our 8-stage technical journey has demonstrated how Google Cloud’s modern data stack — combining BigQuery GIS, predictive ML, and Data Studio — bridges the gap between complex spatial engineering and practical, real-world decision making.</p><p>Location decisions are fundamentally about understanding trade-offs:</p><ul><li>High-performing school zones carry premiums and retrofitting requirements.</li><li>Environmental risk envelopes house some of the most energy-efficient, well-connected, and cost-accessible urban homes in the market.</li></ul><p>Transforming raw public data into spatial intelligence allows buyers, local authorities, and analysts to move beyond crude generalizations and make informed, balanced decisions.</p><p><em>All queries and spatial aggregations were executed in Google Cloud BigQuery and visualized using Google Data Studio (formerly Looker Studio). The pipeline builds directly on the open datasets provided by HM Land Registry, the Ministry of Housing, Communities &amp; Local Government (MHCLG), the Department for Environment, Food &amp; Rural Affairs (Defra), NHS Digital, and Ofsted.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc54721b467f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/engineering-the-shrewsbury-residential-liveability-index-synthesizing-6-layers-of-spatial-fc54721b467f">Engineering the Shrewsbury Residential Liveability Index: Synthesizing 6 Layers of Spatial…</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Does the “Catchment Premium” Really Exist?]]></title>
            <link>https://medium.com/google-cloud/does-the-catchment-premium-really-exist-d7a22438498f?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7a22438498f</guid>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[looker-studio]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 11:22:33 GMT</pubDate>
            <atom:updated>2026-10-12T11:22:33.987Z</atom:updated>
            <content:encoded><![CDATA[<h3>Does the “Catchment Premium” Really Exist? Unmasking Spatial Reality in Shrewsbury with BigQuery GIS &amp; Looker Studio</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwU_eMe4UQ4xguAECO5peg.jpeg" /></figure><h3>Introduction: The Catchment Myth vs. Regional Reality</h3><p>In the UK housing market, few narratives are as deeply entrenched as the “Catchment Area Premium.” Across London and major metropolitan hubs, property listings routinely trumpet proximity to “Outstanding” primary schools, commanding eye-watering price premiums. Families stretch their borrowing capacity simply to fall on the fortunate side of an administrative line.</p><p>In my <a href="https://medium.com/google-cloud/mapping-local-flood-risks-in-looker-studio-using-defra-open-data-and-bigquery-db2571a7dcd0">previous article on mapping Defra flood risks,</a> I explored the physical geography of Shrewsbury — a historic county town bounded and periodically besieged by the unembanked River Severn. Having engineered a fast GeoParquet pipeline to map Flood Zones 2 and 3 in Looker Studio, a natural economic question emerged:</p><blockquote>In a historic regional town facing recurring flood risks, does the primary school catchment premium still reign supreme, or is it eclipsed by environmental vulnerability and urban geography?</blockquote><p>To answer this, I extended our spatial architecture in Google BigQuery GIS, joining HM Land Registry transaction data across 22 primary school catchments, 3 secondary school zones, and localized flood boundaries. What the data revealed was not a triumph of school branding, but a masterclass in urban economics and topography.</p><h3>Data Architecture: Extending the Spatial Pipeline</h3><p>Rather than visualizing individual, noisy property sales on a raw map, my objective was to design a clean, high-performance analytical model in BigQuery that preserves both property-type distinctions and environmental context.</p><p>Our data stack incorporates four foundational layers:</p><ol><li><strong>HM Land Registry (Price Paid Data)</strong>: Transaction records including sale prices, transfer dates, and property classifications: Detached (D), Semi-detached (S), Terraced (T), and Flat (F).</li><li><strong>ONS Postcode Directory (ONSPD)</strong>: Providing precise geographic coordinates (ST_GEOGPOINT) for postcode centroids.</li><li><strong>Shropshire Council School Catchments</strong>: Shapefiles defining 22 localized primary catchments and 3 broader secondary school zones.</li><li><strong>Environment Agency Flood Zones 2 &amp; 3</strong>: Our pre-optimized flood boundary table (shrewsbury_flood_zones), processed via QGIS and GeoParquet in the previous project.</li></ol><h4>Balancing Performance and Granularity</h4><p>Directly piping hundreds of thousands of individual transactions into Looker Studio introduces latency and skews aggregate calculations. Conversely, rolling up metrics strictly by school name discards vital property characteristics.</p><p>To solve this, I engineered an intermediate aggregation layer grouped by postcode × property_type × is_flood_area, retaining sample size (total_transactions) and baseline prices to enable dynamic weighted averaging downstream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*lOVkIAFFINmSxiv8XCfbHw.png" /><figcaption><em>Figure 1: Final table schema in BigQuery (</em><em>shrewsbury_property_primary_secondary_final) balancing transaction sample sizes with spatial dimensions.</em></figcaption></figure><pre>WITH property_points AS (<br>  -- 1. Geocode transaction records to Point geometries<br>  SELECT<br>    lr.price,<br>    lr.property_type,<br>    lr.postcode,<br>    ST_GEOGPOINT(ons.longitude, ons.latitude) AS geom_point<br>  FROM<br>    `your_project.land_registry.price_paid` AS lr<br>  JOIN<br>    `your_project.geo_reference.onspd` AS ons<br>    ON lr.postcode = ons.postcode<br>  WHERE<br>    ons.outcode IN (&#39;SY1&#39;, &#39;SY2&#39;, &#39;SY3&#39;)<br>),<br>joined_catchments AS (<br>  -- 2. Spatial Join with Primary &amp; Secondary boundaries<br>  SELECT<br>    p.price,<br>    p.property_type,<br>    p.postcode,<br>    p.geom_point,<br>    pri.school_name AS School_name,<br>    sec.school_name AS secondary_school_name<br>  FROM<br>    property_points AS p<br>  LEFT JOIN<br>    `your_project.catchments.primary_schools` AS pri<br>    ON ST_CONTAINS(pri.geometry, p.geom_point)<br>  LEFT JOIN<br>    `your_project.catchments.secondary_schools` AS sec<br>    ON ST_CONTAINS(sec.geometry, p.geom_point)<br>)<br>-- 3. Intersect with Flood Zones and generate pre-aggregated analytical table<br>SELECT<br>  jc.School_name,<br>  jc.secondary_school_name,<br>  jc.property_type,<br>  jc.postcode,<br>  CASE <br>    WHEN fz.geometry IS NOT NULL THEN TRUE <br>    ELSE FALSE <br>  END AS is_flood_area,<br>  ROUND(AVG(jc.price), 0) AS average_sale_price,<br>  COUNT(1) AS total_transactions<br>FROM<br>  joined_catchments AS jc<br>LEFT JOIN<br>  `your_project.environment_agency.shrewsbury_flood_zones` AS fz<br>  ON ST_INTERSECTS(fz.geometry, jc.geom_point)<br>WHERE<br>  jc.School_name IS NOT NULL<br>GROUP BY<br>  1, 2, 3, 4, 5;</pre><h3>Visualization in Looker Studio: Uncovering the Baseline</h3><p>To prevent sampling skew across postcodes with unequal turnover, I configured a custom calculated metric in Looker Studio for weighted average pricing:</p><pre>Weighted Average Price = SUM(average_sale_price * total_transactions) / SUM(total_transactions)</pre><p>When rendered across all 22 primary school catchments, the property hierarchy behaves impeccably: Detached houses sit firmly at the top, followed by Semi-detached, Terraced, and Flats.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*ZaSF8MO9iSQozr1GfC9RIQ.png" /><figcaption><em>Figure 2: Distribution of property values across primary catchments in Shrewsbury by housing typology (Detached, Semi-Detached, Terraced, Flat).</em></figcaption></figure><p>At first glance, significant price gaps appear between catchments. Rural and edge-of-town schools like <strong>Longden CofE</strong> show massive detached averages (£650k+) driven by expansive rural parcels. Within town boundaries, <strong>St George’s Junior</strong> and <strong>Coleham Primary</strong> lead the urban pack, maintaining semi-detached averages near £400k.</p><h3>The Reality Check: Flood Risk as the Ultimate Arbitrator</h3><p>The dynamic shifts dramatically the moment we apply our is_flood_area boolean filter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gl732x5G1uTN0SyyUF_eUQ.png" /><figcaption>Figure 3: Valuation impact of EA Flood Zones 2 &amp; 3 on core housing typologies (Semi-detached &amp; Terraced) across primary school catchments.</figcaption></figure><p>By isolating properties directly touching EA Flood Zones 2 and 3, an unyielding market penalty surfaces:</p><p><strong>Coleham Primary School:</strong><br> • Non-Flood Semi-detached: ~£390k<br> • Flood Zone Semi-detached: ~£300k<br> • Net Discount: -£89,854 (-23%)</p><p><strong>St George’s Junior School (Frankwell Lowlands):</strong><br>• Non-Flood Semi-detached: ~£400k<br>• Flood Zone Semi-detached: ~£295k <br>• Net Discount: -£105,022 (-26%)</p><p><strong>Greenfields Primary School:</strong> <br>• Non-Flood Semi-detached: ~£274k <br>• Flood Zone Semi-detached: ~£226k <br>• Net Discount: -£47,336 (-17%)</p><p><strong>The Martin Wilson School (Castlefields): </strong><br>• Non-Flood Terraced: ~£222k <br>• Flood Zone Terraced: ~£192k <br>• Net Discount: -£29,965 (-13%)</p><p>Regardless of academic accolades or community reputation, crossing the threshold into the River Severn’s flood path imposes an immediate, non-negotiable <strong>20% to 25% price discount</strong> within the very same school boundary.</p><h3>Deconstructing the Myth: Why Geography Beats Catchments</h3><p>Seeing Coleham’s flooded semi-detached homes hold a £300k baseline — still higher than non-flooded homes in outer suburbs like Mereside (~£270k) — one might be tempted to argue: <em>“The catchment premium is so strong it cushions the flood hit!”</em></p><p>However, looking at the structural geography of Shrewsbury completely disproves this assumption.</p><h4>1. Urban Gravity vs. Academic Prestige</h4><p>Coleham sits immediately across the English Bridge from the town center. Its price floor is sustained not by school gates, but by walkable lifestyle amenities, independent shops, and direct pedestrian access to the town core.</p><p>When comparing Coleham to <strong>Castlefields (The Martin Wilson School catchment)</strong> — which shares an identical urban-edge location and River Severn flood exposure — flooded terraced homes in Castlefields trade around <strong>£190k</strong>, compared to <strong>£280k</strong> in Coleham. This £90k chasm is rooted in housing typology: Castlefields comprises compact, industrial 19th-century worker terraces, whereas Belle Vue and Coleham boast wider Victorian and Edwardian villas with substantial gardens.</p><h4>2. The Absence of Feeder Pressure</h4><p>In London, primary catchments matter immensely because admissions funnel into competitive secondary schools. In Shrewsbury, secondary education across the urban core is unified under a single <strong>shared catchment (Shrewsbury Schools)</strong> encompassing The Priory, Meole Brace, Belvidere, and Shrewsbury Academy. With no hyper-localized secondary gating mechanism, the primary school “feeder race” largely evaporates.</p><h4>3. Stock Eras Across Suburban Rings</h4><p>Comparing adjacent southwestern residential suburbs further confirms the absence of school-driven pricing:</p><ul><li><strong>Radbrook Primary vs. Meole Brace CE Primary</strong>: Detached homes in both catchments trade almost identically at <strong>~£460k–£470k</strong>. Yet, semi-detached properties in Meole Brace trade ~£70k higher than Radbrook. This reflects architectural epochs: Radbrook’s housing stock is dominated by mature, uniform 1980s–90s suburban estates, whereas Meole Brace’s catchment captures a significant concentration of recent high-spec new-build developments (particularly along the southern urban extensions) alongside historic village plots, commanding a notable new-build premium.</li></ul><h3>Conclusion: Spatial Intelligence Over Conventional Wisdom</h3><p>When I set out to analyze the relationship between school catchments and property values, conventional wisdom suggested I would find a distinct educational premium.</p><p>Instead, my BigQuery GIS pipeline uncovered an entirely different truth:</p><ul><li><strong>Physical hazard is absolute</strong>: Flood risk enforces an undeniable 20–25% valuation cut within identical school boundaries.</li><li><strong>School catchments are secondary to urban structure</strong>: In regional towns with unified secondary systems, micro-catchment premiums are practically non-existent. Market prices are driven overwhelmingly by <strong>walkability to town, architectural epoch, and topography</strong>.</li></ul><p>Relying on high-level averages often reinforces market myths. By joining open geospatial datasets at granular resolution, spatial data analysts can cut through generalized assumptions and illuminate the true mechanics of local real estate.</p><h3>Looking Ahead: The Final Synthesis</h3><p>Over the course of my spatial data projects, I have dissected Shrewsbury from multiple angles:</p><p>• <strong>Environmental Risk</strong>: Engineering optimized Defra Flood Zone boundaries via GeoParquet.</p><p>• <strong>Healthcare Infrastructure</strong>: Mapping travel-time access to GP clinics and hospitals.</p><p><strong>・Urban Development</strong>: Tracking planning permissions and heritage conservation in real time.</p><p><strong>・Social Economics</strong>: Evaluating school catchments against property market fundamentals.</p><p>In the upcoming capstone article of my spatial analytics work, I will bring all these disparate spatial layers together into a comprehensive Urban Spatial Intelligence Framework — demonstrating how modern data engineering can build a holistic, 360-degree digital twin of a regional town. Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7a22438498f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/does-the-catchment-premium-really-exist-d7a22438498f">Does the “Catchment Premium” Really Exist?</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tracking Urban Growth & Heritage: Engineering a Real-Time Planning Intelligence Dashboard with…]]></title>
            <link>https://medium.com/google-cloud/tracking-urban-growth-heritage-engineering-a-real-time-planning-intelligence-dashboard-with-513c79debe43?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/513c79debe43</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[looker-studio]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Wed, 23 Sep 2026 11:08:05 GMT</pubDate>
            <atom:updated>2026-09-23T11:08:05.496Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tracking Urban Growth &amp; Heritage: Engineering a Real-Time Planning Intelligence Dashboard with BigQuery and Looker Studio</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0AiE2DAikFu9yH0pPFM2rA.jpeg" /><figcaption>Figure1.Pipeline Architecture</figcaption></figure><p>Planning registers are among the richest, highest-frequency open data assets in the UK public sector. Unlike backward-looking land transaction records or multi-year census releases, statutory planning applications offer an immediate, forward-looking window into where residential capital is being committed, where commercial footprints are expanding, and how local authorities balance physical growth against conservation mandates.</p><p>Yet, raw local council registers present formidable data engineering challenges: unstandardized text fields, non-deterministic address formatting, opaque lifecycle status progressions, and fragmented decision categorizations.</p><p>This article details the end-to-end engineering of a spatial planning intelligence engine for <strong>Shrewsbury, Shropshire</strong>. Leveraging <strong>Google Cloud BigQuery</strong> for semantic modeling and <strong>Looker Studio</strong> for multi-layered spatial visualization, we transform 366 raw municipal filings into a production-grade, interactive analytical tool.</p><h3>1. Architecture &amp; The Planning Data Challenge</h3><p>Municipal planning portals (such as the Shropshire Council Planning Register) are architected primarily for administrative case management rather than longitudinal analytics. Extracting strategic market intelligence requires solving three systematic data pipeline hurdles:</p><ol><li><strong>Procedural Fragmentation:</strong> A single physical development site generates a multi-year chain of discrete filings under separate statutory categories — such as Outline (OUT), Reserved Matters (REM), Discharge of Conditions (DIS), and Non-Material Amendments (AMP).</li><li><strong>Address Ambiguity &amp; Geospatial Drift:</strong> Raw street descriptions frequently lack normalized spatial keys, mixing flat/unit identifiers, business trading names, and postal codes into single unstructured strings.</li><li><strong>Regulatory Status Masking:</strong> Administrative flags such as Withdrawn, Invalid, or Deemed Permitted obscure core regulatory performance if simply lumped into generic binary totals.</li></ol><h3>Pipeline Architecture</h3><ul><li><strong>Ingestion &amp; Staging:</strong> Structured extraction of raw application feeds into BigQuery raw staging tables.</li><li><strong>Transformation &amp; Categorization (SQL Modeling):</strong> Regex-driven classification of application types (development_category), standardizing postal codes, and grouping lifecycle statuses into deterministic analytical dimensions.</li><li><strong>Geospatial &amp; Visualization Layer:</strong> Looker Studio dynamic dashboards structured across three purpose-built operational viewports (Macro Town-wide Monitoring, Conservation Core Dynamics, and Suburban Expansion Corridors).</li></ul><h3>2. Metric Engineering: Formulating the Statutory Determination Rate</h3><p>A frequent pitfall in municipal operational analysis is miscalculating the local planning authority’s decision velocity by conflating regulatory decisions with procedural cancellations.</p><h3>Categorical Normalization</h3><p>Raw planning status flags were mapped into three operational analytical cohorts:</p><ul><li><strong>Decided:</strong> Granted (Full Approval, Permission Granted, Consent Granted) and Refused.</li><li><strong>Under Review:</strong> Live applications (Pending Consideration, In Progress, Under Consultation).</li><li><strong>Withdrawn / Administrative Void:</strong> Applications aborted by the developer or invalidated by planning officers prior to a formal statutory determination.</li></ul><h3>Formulating the Defensible Performance KPI</h3><p>Treating withdrawn applications as part of the formal decision pool artificially depresses reported municipal performance. To establish a standardized baseline, we formulated the <strong>Determination Rate</strong>:</p><pre>Determination Rate (%) = <br>[ Decided Applications / (Decided Applications + Under Review) ] × 100</pre><p>Evaluating our staged Shrewsbury baseline yielded:</p><ul><li><strong>Decided Applications:</strong> 252</li><li><strong>Under Review:</strong> 90</li><li><strong>Statutory Pool:</strong> 342</li><li><strong>Formal Determination Rate:</strong> <strong>73.68%</strong></li></ul><p>In Looker Studio, implementing this via custom calculated metrics guarantees that fluctuating rates of administrative withdrawals do not distort spatial decision-making benchmarks.</p><h3>3. Data Transformation &amp; Semantic Classification in BigQuery</h3><p>Raw application registers categorize filings primarily by bureaucratic statutory power (e.g., Section 73 Variation, Application under Section 73A, Town and Country Planning Act 1990). To render these actionable for real estate decision-makers, we constructed a deterministic classification model grouping each filing into strategic commercial categories:</p><pre>CASE<br>  -- Heritage &amp; Listed Structures<br>  WHEN application_type IN (&#39;LBC&#39;, &#39;CAC&#39;)<br>    OR REGEXP_CONTAINS(<br>         UPPER(proposal), <br>         r&#39;(LISTED BUILDING|CURTILAGE|HERITAGE)&#39;<br>       )<br>    THEN &#39;Heritage&#39;<br><br>  -- Tree Preservation Orders &amp; Conservation Works<br>  WHEN application_type IN (&#39;TPO&#39;, &#39;TCA&#39;, &#39;PCA&#39;)<br>    OR REGEXP_CONTAINS(<br>         UPPER(proposal), <br>         r&#39;(TREE|OAK|BEECH|CROWN REDUCTION|FELL)&#39;<br>       )<br>    THEN &#39;Trees &amp; Green&#39;<br><br>  -- Major &amp; Strategic Pipeline Operations<br>  WHEN application_type IN (&#39;OUT&#39;, &#39;REM&#39;, &#39;DIS&#39;, &#39;EIA&#39;, &#39;AMP&#39;)<br>    OR REGEXP_CONTAINS(<br>         UPPER(proposal), <br>         r&#39;(DISCHARGE OF CONDITION|MAJOR|PHASED)&#39;<br>       )<br>    THEN &#39;Major Development&#39;<br><br>  -- Commercial, Retail &amp; Advertising<br>  WHEN application_type IN (&#39;ADV&#39;, &#39;COU&#39;)<br>    OR REGEXP_CONTAINS(<br>         UPPER(proposal), <br>         r&#39;(CHANGE OF USE|ADVERTISEMENT|SIGNAGE|RETAIL|OFFICE)&#39;<br>       )<br>    THEN &#39;Commercial&#39;<br><br>  -- Core Domestic &amp; Residential Extensions<br>  ELSE &#39;Residential&#39;<br>END AS development_category</pre><p>This classification isolates structural capital investments from routine estate stewardship, providing the underlying semantic engine for dynamic cross-filtering.</p><h3>4. Multi-Page Geospatial Architecture in Looker Studio</h3><p>To deliver immediate clarity across widely varying urban typologies, the dashboard is divided into three coordinated pages, each targeted at a specific decision layer:</p><ul><li><strong>Page 1: Town-Wide Macro Monitoring &amp; Statutory Throughput<br></strong>Establishes macro performance indicators, tracking the aggregate volume of 366 filings, statutory decision velocity, and category volume splits across greater Shrewsbury.</li><li><strong>Page 2: Historic Core &amp; Leafy Suburbs (River Loop &amp; Conservation Areas)<br></strong>Applies spatial filters isolating central Shrewsbury (SY1 1, SY1 2) and historic south-side enclaves (SY3 7), illuminating heritage preservation regimes and urban infill dynamics.</li><li><strong>Page 3: Suburban Growth Corridors &amp; Strategic Pipeline (A5/A49 Arterials)<br></strong>Applies regional expansion filters (SY3 5, SY1 4, SY1 3, SY2 6, SY3 9), isolating greenfield development, major housing delivery, and pre-commencement condition clearance workflows.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b7AhQM0NcpQ_kuXk8lcV3A.png" /><figcaption>FIgure 2. Page1:Overview &amp; Macro KPIs</figcaption></figure><h3>5. Spatial Analytics: What 366 Applications Reveal About Shrewsbury</h3><p>Deploying this multi-page architecture unlocks compelling spatial contrasts between Shrewsbury’s historic urban core and its outer delivery perimeter.</p><h3><strong>Page 2 Insights:</strong> The Historic Core &amp; Conservation Areas (SY1 1, SY1 2, SY3 7)</h3><p><em>Filter Scope: </em><em>postcode matching </em><em>^(SY1 1|SY1 2|SY3 7) | Total Applications: 145</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*prRkMi-YpDwEpzhfzdEqwg.png" /><figcaption>Figure 3. Historic Core &amp; Leafy Suburbs</figcaption></figure><p>Isolating the medieval River Loop and the affluent southern conservation enclaves revealed immediate spatial specialization:</p><h4>1. The Stewardship Economy: Trees &amp; Green Infrastructure (41 Cases)</h4><p>In prime residential corridors such as <strong>Kingsland (</strong><strong>SY3 7)</strong>, <strong>Belle Vue (</strong><strong>SY3 7)</strong>, and <strong>The Mount (</strong><strong>SY3 8)</strong>, the spatial map is dominated by amber markers representing Tree Preservation Orders (TPO) and Works in Conservation Areas (TCA).</p><ul><li>Filings primarily encompass crown reductions, formative pruning, and selective felling of mature specimen species (Yew, Lawson Cypress, Oak, and Beech).</li><li>In spatial property intelligence, <strong>high TCA/TPO concentration serves as an empirical proxy for mature landscape amenities and rigorous conservation enforcement</strong>, both of which safeguard long-term prime residential asset values.</li></ul><h4>2. The Preservation Mandate: Listed Building Consents (LBC)</h4><p>Within the loop of the River Severn (SY1 1, SY1 2), conventional housing extensions vanish. The corridor is governed by Listed Building Consents (Heritage) and minor shopfront modifications along historic trading spines (Wyle Cop, Pride Hill, High Street). Minor commercial adjustments dominate, reflecting an urban core focused on adaptive architectural reuse rather than greenfield construction.</p><h4>3. The Urban Infill Surprise: Major Development in the Core (35 Cases)</h4><p>Contrary to the initial assumption that large schemes belong exclusively to outer peripheries, <strong>Major Development emerged as the third-largest category within the core (35 applications)</strong>.</p><p>Drilling into individual records revealed the operational mechanism: rather than outward sprawl, these represent <strong>brownfield regeneration packages and infrastructure condition clearances (DIS)</strong> — including riverfront transit connectivity schemes, utility renewals, and preparatory civic regeneration phases.</p><h3>Page 3 Insights: Expansion Corridors &amp; The Future Supply Pipeline</h3><p><em>Filter Scope: </em><em>postcode starting with </em><em>SY3 5, </em><em>SY1 4, </em><em>SY1 3, </em><em>SY2 6, </em><em>SY3 9 | Total Applications: 69</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AH5sEsSacCdhwkKgBzZN6A.png" /><figcaption>Figure 4. Page3:Expansion Corridors &amp; Major Sites</figcaption></figure><p>Shifting focus to orbital arterials (A5 and A49 bypass networks) shifts the operational profile completely:</p><h4>1. Suburban Densification &amp; New Builds (Residential: ~39 Cases)</h4><p>Unlike the historic center’s restorative work, the western and northern fringes — anchored by <strong>Bicton Heath (</strong><strong>SY3 5)</strong>, <strong>Sundorne (</strong><strong>SY1 4)</strong>, and <strong>Radbrook / Sweet Lake (</strong><strong>SY3 9)</strong>—are dominated by full residential applications (FUL). Proposals reflect structural capital commitments: multi-storey extensions, garage conversions into ancillary residential workspaces, and substantial layout transformations.</p><h4>2. Tracking Build-Out Velocity: Discharge of Conditions (DIS)</h4><p>Major developments along outer growth axes are heavily concentrated in the pre-construction delivery phase. The prominence of <strong>Discharge of Conditions (DIS)</strong> filings demonstrates that primary masterplan consents are already in place; developers are now securing statutory clearances for technical prerequisites (drainage attenuation, acoustic buffering, and construction environmental management plans). For property analysts, <strong>monitoring DIS volume provides a 6-to-12-month forward indicator of physical housing completions</strong>.</p><h3>Data Engineering Retrospective: Two Analytical Pitfalls</h3><p>Building and validating this operational framework brought to light two domain-specific pitfalls common to real estate data processing:</p><h4>1. Diagnosing the “Centroid Fallback” Trap</h4><p>During Page 3 development, an instructive spatial defect surfaced: an application addressed to <strong>Unit XX, Meole Brace Retail Park (</strong><strong>SY3 9NB)</strong> was plotted erroneously into the town center within the River Loop.</p><pre>[Geospatial Resolution Mechanism]<br>- Raw Address Input: &quot;Unit XX Meole Brace Retail Park, Shrewsbury...&quot; <br>  --&gt; Unparsed commercial unit prefix degrades geocoder --&gt; Falls back to Municipal Centroid (SY1 Loop) [DEFECT]<br>- Structured Postcode Key: &quot;SY3 9NB&quot; <br>  --&gt; Direct resolution to southern retail corridor (-2.7520, 52.6888) [CORRECT]</pre><ul><li><strong>Root Cause:</strong> When unstructured strings containing tenant numbers or complex business names are passed directly to map geocoders, address parsers often fail to isolate street identifiers and fall back to the town’s administrative centroid.</li><li><strong>The Fix:</strong> Ensuring map location dimensions are bound strictly to clean, standardized postal codes (postcode) or pre-joined coordinate tables (e.g., ONS Postcode Directory tables merged in BigQuery) permanently eliminates centroid collapse, restoring points to their true locations.</li></ul><h4>2. Administrative Throughput vs. Physical Sites (The Deduplication Nuance)</h4><p>When interpreting aggregate metrics (Total Applications: 69, Decided: 56), real estate analysts must distinguish between <strong>procedural regulatory events</strong> and <strong>discrete physical developments</strong>.</p><ul><li>Under UK planning administration, a single housing development does not generate a single database record. Over its lifecycle, it yields a progression of discrete filings: Outline permission (OUT), Reserved Matters (REM), numerous Discharges of Conditions (DIS), and Non-Material Amendments (AMP).</li><li>Consequently, operational dashboard tallies represent <strong>statutory transaction volume (administrative throughput)</strong> rather than 69 distinct construction sites. Recognizing this lifecycle structure prevents overestimating immediate land supply while allowing analysts to accurately quantify local regulatory friction and delivery momentum.</li></ul><h3>6. Conclusion &amp; Future Outlook: Transforming Open Planning Data into Forward-Looking Intelligence</h3><p>Planning applications provide the earliest observable signal in real estate analytics. While transaction registries reflect capital allocations made months in the past, statutory registers capture capital commitments, physical densification, and conservation tensions months and years before they appear on the ground.</p><p>By engineering a robust pipeline from raw council records into BigQuery and surfacing spatial intelligence across a dedicated three-page Looker Studio dashboard, this project demonstrates how open public data can be transformed into actionable spatial intelligence.</p><h3>Key Technical Takeaways</h3><ul><li><strong>Defensible Metric Modeling:</strong> Isolating regulatory determinations from cancellations established an unskewed 73.68% Determination Rate baseline.</li><li><strong>Decoupling Urban Roles:</strong> Multi-page spatial slicing proved that central areas are governed by tree stewardship and listed building adaptations, while outer corridors absorb physical housing expansion.</li><li><strong>Data Quality Integrity:</strong> Enforcing structured postal keys solved mapping centroid drift, and recognizing statutory lifecycle deduplication provided a realistic foundation for supply pipeline modeling.</li></ul><h3>Future Roadmap: The Integrated UK Property Intelligence Engine</h3><p>This planning tracker provides a key building block for a broader, multi-dimensional UK property analytics platform. Next steps in our engineering roadmap include:</p><ul><li><strong>HM Land Registry (HMLR) Cross-Validation:</strong> Joining planning delivery corridors with Price Paid Data (PPD) to quantify price premiums associated with post-permission site commencements and neighbourhood densification.</li><li><strong>Energy Performance Certificate (EPC) Correlation:</strong> Linking domestic extension applications (FUL) with domestic EPC registers to model the direct impact of home improvements on SAP energy ratings and floor area expansion.</li><li><strong>Unified Interactive Property Finder:</strong> Merging planning pipelines with BigQuery GIS datasets encompassing NHS healthcare accessibility, environmental flood risk models, and Ofsted school performance ratings into a comprehensive geospatial decision-making dashboard.</li></ul><p>By treating public planning portals not merely as regulatory filing repositories, but as dynamic, geospatial transaction feeds, data analysts and investors can systematically uncover where capital, community stewardship, and urban growth converge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=513c79debe43" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/tracking-urban-growth-heritage-engineering-a-real-time-planning-intelligence-dashboard-with-513c79debe43">Tracking Urban Growth &amp; Heritage: Engineering a Real-Time Planning Intelligence Dashboard with…</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quantifying Location Quality for Real Estate Valuation: Modeling NHS Healthcare Access in…]]></title>
            <link>https://medium.com/google-cloud/quantifying-location-quality-for-real-estate-valuation-modeling-nhs-healthcare-access-in-2d7c7b8ea570?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d7c7b8ea570</guid>
            <category><![CDATA[real-estate]]></category>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 12:13:08 GMT</pubDate>
            <atom:updated>2026-08-07T12:13:08.340Z</atom:updated>
            <content:encoded><![CDATA[<h3>Quantifying Location Quality for Real Estate Valuation: Modeling NHS Healthcare Access in Shrewsbury with BigQuery GIS, dbt, and Looker Studio</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4emQtycaP7vXuxzOT7BDFw.png" /></figure><h3>Introduction: Healthcare Access as a Key Factor for Real Estate Value</h3><p>When we estimate property value, location and quality of life are just as important as the building itself. Among many location factors, good access to healthcare — such as living near a GP surgery, getting appointments easily, and short wait times — makes a neighborhood much more attractive.</p><p>As part of an ongoing project to build a local property valuation system for Shrewsbury, UK, this article shows how to process public NHS healthcare data into a simple <strong>Healthcare Accessibility Score</strong>.</p><p>To make this data pipeline clean, reliable, and production-ready, we built a modern workflow using <strong>BigQuery GIS, dbt Cloud, and Looker Studio</strong>.</p><h3>Tech Stack Evolution: Combining BigQuery and dbt</h3><p>In previous articles, data transformations were written using raw BigQuery SQL scripts. While this works well for small tests, a growing real estate analytics engine needs clean organization, automated testing, and clear data tracking.</p><p><strong>BigQuery</strong> serves as our highly scalable database engine. It calculates spatial distances between thousands of postcodes and GP surgeries very fast.</p><p>To complement BigQuery’s processing power with software engineering best practices, we integrated <strong>dbt Cloud</strong>. Using BigQuery for fast calculations together with dbt for code testing and workflow management gives us a clean <strong>3-layer Medallion Architecture</strong>:</p><ol><li><strong>Raw Data Layer (BigQuery)</strong>: Raw NHS public data (GP staff counts, patient surveys, wait times, and UK postcodes).</li><li><strong>Staging Layer (staging)</strong>: Cleaning data, fixing column names, and making data types consistent.</li><li><strong>Marts Layer (marts)</strong>: Main business logic, spatial distance calculations (ST_DISTANCE), and key metrics (like patient-to-doctor ratios).</li><li><strong>BI &amp; Feature Store Layer (Looker Studio)</strong>: Interactive dashboards for users and location features for property valuation models.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_or5Uc-FeuR4f-wLuT05Yg.png" /><figcaption>Figure 1: High-level End-to-End Data Architecture (NHS Open Data -&gt; dbt Seeds -&gt; BigQuery GIS -&gt; Looker Studio &amp; Feature Store).</figcaption></figure><p><strong>Data Pipeline Flow</strong>:</p><ol><li><strong>Data Ingestion (dbt Seeds)</strong>: Raw NHS healthcare data and UK postcode records are pre-filtered for Shrewsbury. GP coordinates are geocoded using Google Maps and loaded as dbt seeds.</li><li><strong>Transformation &amp; Testing (BigQuery + dbt Cloud)</strong>: Data is cleaned in staging and transformed in marts using BigQuery GIS functions (ST_DISTANCE, ST_GEOGPOINT). dbt Cloud manages schema tests and data lineage.</li><li><strong>Output Layer (Looker Studio &amp; Feature Store)</strong>: The compiled marts tables feed Looker Studio dashboards and serve as location features for real estate valuation models.</li></ol><h3>Data Engineering &amp; Spatial Modeling in dbt</h3><h4>1. Smart Data Scoping and Geocoding with dbt Seeds</h4><p>Full NHS open datasets cover the entire UK and are too large to store directly inside a dbt repository (which would normally require loading via Google Cloud Storage). For this project, we pre-filtered the raw NHS data specifically for the Shrewsbury area before adding it as dbt seeds.</p><p>Additionally, since there are only a small number of GP surgeries in Shrewsbury, we manually collected their precise coordinates (latitude and longitude) using Google Maps. Defining these clean coordinates directly in a seed CSV made our spatial calculations simple, accurate, and fast.</p><h4>2. Staging Cleanups (stg_*.sql)</h4><p>Raw NHS data can have mixed formats and missing values. In the staging layer, we rename columns clearly and convert data types safely using SAFE_CAST so our pipeline stays stable.</p><h4>3. Marts Layer for Distance &amp; Capacity Analytics (marts_*.sql)</h4><p>The main analytics work happens in the marts layer:</p><ul><li><strong>Distance Matrix (marts_postcode_gp_distance.sql)</strong>: Uses BigQuery GIS functions (ST_DISTANCE, ST_GEOGPOINT) to quickly find the top 3 nearest GP surgeries (Rank 1, Rank 2, and Rank 3) for every Shrewsbury postcode.</li><li><strong>Clinic Capacity (marts_gp_joined.sql)</strong>: Combines staff numbers and appointment data to calculate key metrics, such as <strong>Patients per GP</strong> (patients_per_gp_fte) and <strong>2-Week Wait Rate</strong> (wait_over_2weeks_pct).</li></ul><h3>Data Quality and Automated Testing with dbt</h3><p>One major benefit of adopting dbt is automated data testing. In schema.yml, we set rules to check our data automatically:</p><ul><li>Check that ID columns (like gp_code) are unique and not empty (not_null).</li><li>Run automated tests with dbt build before updating the main database branch.</li></ul><p>This keeps our data clean and reliable before it goes into downstream real estate valuation models.</p><h3>Visualizing Location Quality in Looker Studio</h3><p>Connecting our compiled marts tables to Looker Studio turns spatial and healthcare analytics into clear, visual stories. The interactive dashboard consists of two core pages:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*2iyjjPedaJk2OA6wQECjqw.png" /><figcaption>Figure 2: Page 1 — Clinic Capacity &amp; Wait Time Overview.</figcaption></figure><h4>1. Page 1: Surgery Capacity &amp; Wait Times</h4><p>The first page focuses on operational workload and service speed across Shrewsbury:</p><ul><li><strong>KPI Scorecards</strong>: Top metrics highlight total patient population (105,248), doctor workloads (1,755 patients per GP FTE), and long wait rates (8.2% waiting over 2 weeks).</li><li><strong>Bubble Map &amp; Scatter Plot</strong>: Shows surgery scale (bubble size) and 2-week wait rates (color gradient from blue to orange) alongside a workload-to-wait scatter plot to pinpoint local operational bottlenecks.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1004/1*-nIt9ZhmAqQE4nXcQ-o6iw.png" /><figcaption>Figure 3: Page 2 — Multi-Tier Access Channels &amp; Patient Satisfaction Analytics (Rank 1 Selected).</figcaption></figure><h4>2. Page 2: Multi-Tier Access Channels &amp; Patient Satisfaction</h4><p>The second page introduces an interactive rank filter (Rank 1, Rank 2, Rank 3) to evaluate both primary care and backup options:</p><ul><li><strong>Interactive Postcode Map</strong>: Plots Shrewsbury postcodes color-coded by patient satisfaction (Overall Good (%)), dynamically updating as users filter between 1st, 2nd, and 3rd nearest GP surgeries.</li><li><strong>Channel Satisfaction Breakdown</strong>: A stacked bar chart comparing patient ratings across communication channels (phone, web, mobile app, and reception helpfulness).</li><li><strong>Distance vs. Satisfaction</strong>: A scatter plot illustrating how travel distance (Avg Distance (km)) correlates with patient ratings for the selected distance rank.</li></ul><h4>Multi-Tier Quality Analysis: Evaluating Backup Options</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*7E6OuOkYXywajHTEOZRsJw.png" /><figcaption>Figure 4: Page 2 — Interactive Rank Switching (Rank 2 Selected).</figcaption></figure><p>A key feature of Page 2 is evaluating healthcare choices across distance ranks (1st, 2nd, and 3rd nearest GP). Instead of looking at only the single nearest clinic, users can interactively switch the rank filter to examine backup options.</p><h4>Case Study: Healthcare Choices in North-East Shrewsbury</h4><p>Comparing <strong>Figure 3 (Rank 1)</strong> and <strong>Figure 4 (Rank 2)</strong> resolves a tricky valuation case in <strong>North-East Shrewsbury</strong>:</p><ul><li><strong>Rank 1 Result (Figure 3)</strong>: For several postcodes in North-East Shrewsbury, the nearest GP (Rank 1) has lower patient satisfaction scores, indicated by the pinkish-orange clusters on the map (Overall Good (%): 77.5%, Avg Distance: 0.84 km). A naive nearest-neighbor model might prematurely penalize this sector as a “low healthcare quality” area.</li><li><strong>Rank 2 Backup Option (Figure 4)</strong>: Switching the filter to <strong>Rank 2</strong> dynamically updates the map, <strong>turning most of those pinkish postcode areas into light blue</strong>, while the regional average satisfaction rises to <strong>83.2%</strong>. This visually proves that even if the immediate primary clinic has lower ratings, residents enjoy better secondary GP choices within a short travel radius (1.67 km).</li></ul><p>By capturing these <strong>backup choices</strong> via dbt distance ranks, our property valuation model avoids unfairly penalizing desirable neighborhoods.</p><h4>How This Fits into the Full Property Valuation Dashboard</h4><p>The transformed data models (marts_postcode_gp_distance and marts_gp_joined) serve two key purposes:</p><ul><li><strong>Interactive Dashboard</strong>: Empowers homebuyers and analysts to explore neighborhood data interactively in Looker Studio.</li><li><strong>Valuation Model Input</strong>: Provides a normalized <strong>Healthcare Accessibility Score</strong> for each postcode, which will be merged with flood risk data and energy performance ratings to predict real estate prices.</li></ul><h4>Summary &amp; Next Steps</h4><p>Combining BigQuery’s fast spatial capabilities with dbt’s simple engineering workflows turns raw public healthcare data into a clean, maintainable data product.</p><ul><li>🔗 <strong>Code Repository</strong>: All dbt models, SQL queries, and schema test setups are available on GitHub: <a href="https://github.com/mhorikarin-hub/dbt-shrewsbury-gp-analysis">https://github.com/mhorikarin-hub/dbt-shrewsbury-gp-analysis</a></li><li>🔮 <strong>Next Steps</strong>: Expanding the Shrewsbury Property Valuation Dashboard by integrating broader liveability metrics, including educational environment and transport accessibility features.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d7c7b8ea570" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/quantifying-location-quality-for-real-estate-valuation-modeling-nhs-healthcare-access-in-2d7c7b8ea570">Quantifying Location Quality for Real Estate Valuation: Modeling NHS Healthcare Access in…</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mapping Local Flood Risks in Looker Studio using Defra Open Data and BigQuery]]></title>
            <link>https://medium.com/google-cloud/mapping-local-flood-risks-in-looker-studio-using-defra-open-data-and-bigquery-db2571a7dcd0?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/db2571a7dcd0</guid>
            <category><![CDATA[qgis]]></category>
            <category><![CDATA[google-big-query]]></category>
            <category><![CDATA[geospatial]]></category>
            <category><![CDATA[looker-studio]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Thu, 25 Jun 2026 10:10:30 GMT</pubDate>
            <atom:updated>2026-06-25T10:10:30.630Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>Living in Shrewsbury,UK, I am surrounded by beautiful, embankless river landscapes. However, this beauty comes with a recurring reality: every year, we receive flood alerts. With the accelerating impact of climate change, the risk of localized, heavy rainfall and severe flooding is only increasing.</p><p>As residents, it is crucial to analyze these spatial risks accurately to make informed decisions about where we live and how we structure our lifestyles. To achieve this, I decided to build an interactive flood risk map using the UK Environment Agency’s open data (Defra OGC preview).</p><p>However, visualizing massive geospatial open data in Looker Studio comes with major performance and rendering pitfalls. In this article, I will share the optimal, step-by-step workflow — from QGIS optimization to BigQuery integration — to successfully render these complex polygons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7QJA56D1cThaZ4_k-bWQ-g.png" /><figcaption><strong>Figure 1:</strong> The end-to-end data pipeline from Defra Open Data to Looker Studio via QGIS optimization and BigQuery.</figcaption></figure><h3>Workflow Overview</h3><p>Before diving into the details, here is the high-level workflow we will follow to achieve lightweight and accurate geospatial rendering:</p><ol><li><strong>Extract</strong>: Download the official flood risk boundaries from Defra Open Data.</li><li><strong>Optimize</strong>: Use QGIS to simplify geometries and clean the dataset.</li><li><strong>Fix:</strong>Repair invalid geometries (such as self-intersections) to prevent schema and loading errors in BigQuery.</li><li><strong>Store</strong>: Export to Apache Parquet and load it directly into Google BigQuery.</li><li><strong>Visualize</strong>: Connect BigQuery to Looker Studio for fast, interactive map rendering.</li></ol><h3>Step 1: Filtering and Downloading Data on Defra</h3><p>The raw flood risk dataset covers the entire country and is far too massive to handle. The first optimization trick happens right on the Defra portal before you even click download.</p><ol><li>Access the Defra OGC preview portal and locate the flood risk dataset.</li><li>In the right-hand panel under <strong>Area of interest</strong>, select <strong>Selected area (draw a polygon)</strong>.</li><li>Use the bounding box tool on the map to crop and select only your target region around Shrewsbury.</li><li>Under <strong>Layers</strong>, select Flood_Zones_2_3_Rivers_and_Sea.</li><li>Set the <strong>File format</strong> to ESRI Shapefile and click <strong>Download file</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DoLVBcs_0v5qLb1GuprWTA.png" /><figcaption><strong>Figure 2:</strong> Selecting the Shrewsbury area and choosing the “Flood Zones 2 and 3” layer in ESRI Shapefile format on the Defra Data Services Platform.</figcaption></figure><h3>Step 2: Data Preparation in QGIS</h3><p>Now we will use QGIS to load, optimize, and repair our dataset before moving it to the cloud. Looker Studio cannot smoothly render polygons with too many dense vertices, so preprocessing is essential.</p><h4>1. Load the Data into QGIS</h4><ol><li>Unzip the downloaded Defra file.</li><li>Drag and drop the .shp file directly into <strong>QGIS</strong>. You will see the localized flood risk zones loaded onto your canvas, perfectly matching the Shrewsbury area we selected.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fVkt8kqZjRgyf7RVJqwIgQ.png" /><figcaption><strong>Figure 3:</strong> Importing the raw Defra flood zone shapefile into QGIS, centered on the Shrewsbury river network before optimization.</figcaption></figure><h4>2. Simplify Geometries</h4><ol><li>Go to the top menu and select <strong>Vector ➡️ Geometry Tools ➡️ Simplify…</strong></li><li>In the Simplify dialog, take a look at the <strong>Tolerance</strong> field. Since the raw Defra data uses the British National Grid coordinate system, the default unit is set to <strong>meters</strong>.</li><li>To perfectly balance data size reduction and map precision, set the Tolerance value to <strong>10</strong> (meters).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*btiAxWjVnxkX_fJcyp1-ZA.png" /><figcaption><strong>Figure 4:</strong> Navigating the QGIS top menu to locate the Simplify tool via Vector ➡️ Geometry Tools ➡️ Simplify…</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/684/1*8DCx_BzgSekYzUV6vGs6Hg.png" /><figcaption><strong>Figure 5:</strong> Configuring the Simplify tool in QGIS with a 10-meter tolerance using the Douglas-Peucker algorithm.</figcaption></figure><p>4. Click <strong>Run</strong>. This drastically reduces the vertex count, making the dataset lightweight enough for Looker Studio to process without freezing.</p><p>5. A new layer called Simplified will be added to your Layers panel.</p><h4>3. Fix Broken Geometries</h4><p>Simplifying shapes or handling raw GIS data can sometimes leave “invalid geometries” (like self-intersecting polygons). If uploaded directly to BigQuery or Looker Studio, these can cause rendering errors. Let’s clean them up in one click.</p><ol><li>On the right side of QGIS, look at the <strong>Processing Toolbox</strong> panel. <em>(If you don’t see it, toggle it via the top menu: Processing ➡️ Toolbox).</em></li><li>Type fix into the search bar, and double-click <strong>Fix geometries</strong> under the <em>Vector geometry</em> group.</li><li>In the dialog, ensure your newly created <strong>Simplified</strong> layer is selected as the <em>Input layer</em>.</li><li>Click <strong>Run</strong>. QGIS will output a perfectly clean layer called Fixed geometries, free of structural errors.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*KA5Ne24xumu9Aqh125SRAg.png" /><figcaption><strong>Figure 6:</strong> Running the “Fix Geometries” tool on the simplified layer to repair any invalid topological structures or self-intersections.</figcaption></figure><h4>4. Export as Apache Parquet</h4><p>Now for the secret sauce. Instead of converting back to a bulky Shapefile, we will export this cleaned data directly into <strong>Parquet</strong> format. BigQuery loves Parquet because it natively supports geospatial columns, compresses beautifully, and loads instantly.</p><ol><li>Right-click your new Fixed geometries layer in the Layers panel.</li><li>Select <strong>Export ➡️ Save Features As…</strong></li><li>In the <strong>Format</strong> dropdown, select <strong>Apache Parquet</strong>.</li><li>Choose your save location and name the file (e.g., shrewsbury_flood_zones.parquet).</li><li>Leave the default settings as they are and click <strong>OK</strong>.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*h6W4DCvLZHmnOX_2pnLSOA.png" /><figcaption><strong>Figure 7:</strong> Exporting the optimized layer as a (Geo)Parquet file (shrewsbury_flood_final) with the CRS set to EPSG:4326 (WGS 84) for seamless BigQuery integration.</figcaption></figure><h3>Step 3: Loading Parquet into BigQuery with Auto-Detect</h3><p>Before arriving at this solution, I initially tried exporting the data as a GeoJSON file, which is a standard format in GIS. However, I quickly ran into frustrating roadblocks when trying to load it into BigQuery — the nested field structures made parsing and schema definition a real headache.</p><p>Looking for a better way, I decided to give Apache Parquet a try, and the experience was night and day. It loaded flawlessly on the first attempt.</p><p>BigQuery and Parquet are clearly a match made in heaven for geospatial data. Because Parquet embeds its own column structures and metadata, you don’t need to manually configure schemas or struggle with text-to-geometry conversions. BigQuery inherently understands the exact structure of your data from the file itself. For this reason, I highly recommend using Parquet for this pipeline.</p><h4>1. Initiate Table Creation</h4><ol><li>Open your <strong>Google Cloud Console</strong> and navigate to <strong>BigQuery</strong>.</li><li>Select your project and dataset, then click <strong>Create table</strong>.</li></ol><h4>2. Configure Source and Destination Settings</h4><p>Under the <strong>Source</strong> section, configure the following:</p><ol><li><strong>Create table from</strong>: Select <strong>Upload</strong>.</li><li><strong>Select file</strong>: Browse and select your exported .parquet file from QGIS.</li><li><strong>File format</strong>: This will automatically switch to <strong>Parquet</strong>.</li></ol><p>Under the <strong>Destination</strong> section, specify your target Project and Dataset, then type your desired <strong>Table name</strong> (e.g., shrewsbury_flood_zones).</p><h4>3. Let BigQuery Handle the Schema</h4><ol><li>Scroll down to the <strong>Schema</strong> section. You will notice that you don’t need to configure settings manually. Because the source is a Parquet file, BigQuery inherently knows the exact structure of your data.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gj2TqpB9uN3iDtBjK3gJ9Q.png" /><figcaption><strong>Figure 8:</strong> Creating a table in Google BigQuery by uploading the Parquet file. Note how the schema is automatically defined by the source file, eliminating manual input.</figcaption></figure><p>2. Click <strong>Create table at the bottom of the panel.</strong></p><p>3. BigQuery will instantly parse the file, automatically mapping the QGIS spatial columns into a native, flawless <strong>GEOGRAPHY</strong> data type.</p><h3>Step 4: Visualizing Spatial Data in Looker Studio</h3><p>With our optimized flood risk data safely stored as a native GEOGRAPHY type in BigQuery, we are ready for the grand finale: building the interactive map. Thanks to our preprocessing in QGIS, Looker Studio will load this massive dataset seamlessly without lagging.</p><h4>1. Connect to Your BigQuery Table</h4><ol><li>Open <strong>Looker Studio</strong> and click <strong>Blank Report</strong>.</li><li>In the “Add data to report” window, select the <strong>BigQuery</strong> connector.</li><li>Navigate through your hierarchy: select your <strong>Project</strong>, <strong>Dataset</strong>, and the <strong>Table</strong> we just created (shrewsbury_flood_zones).</li><li>Click <strong>Add</strong> at the bottom right, and confirm by clicking <strong>Add to Report</strong>.</li></ol><h4>2. Add the Google Maps Chart</h4><ol><li>Delete any default tables that Looker Studio automatically generates on your canvas to clear your workspace.</li><li>Click <strong>Add a chart</strong> in the top toolbar and select <strong>Line Map</strong> (under the Google Maps section).</li><li>Drag the edges of the chart to stretch the map so it fills your canvas.</li></ol><h4>3. Configure the Spatial Dimensions</h4><ol><li>Look at the <strong>Setup</strong> panel on the right side of the screen.</li><li>Drag your spatial column (e.g., geometry) into the Location field. (Note: Looker Studio will automatically detect this as a geo-dimension, displaying a small globe icon next to the field name)<em>.</em></li><li>Drag your flood zone classification column (e.g., flood_zone) into the Color dimension field. Looker Studio will instantly color-code the boundaries over Shrewsbury — rendering Flood Zone 2 (FZ2) in crisp yellow and Flood Zone 3 (FZ3) in vibrant blue.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qxnSxbwvaj9gmvMkOiIPZA.png" /><figcaption><strong>Figure 9:</strong> Visualizing the processed flood risk zones in Looker Studio using the Google Maps chart component connected to BigQuery.</figcaption></figure><h3>Conclusion: The Power of an Optimized Geospatial Pipeline</h3><p>By shifting the heavy lifting away from Looker Studio and onto QGIS and BigQuery, I transformed a sluggish, oversized environmental dataset into a lightning-fast, interactive dashboard.</p><p>Instead of forcing your browser to parse thousands of complex vertices, you now have a streamlined, production-ready geospatial pipeline. Using QGIS to crop, simplify, and repair geometries ensures data efficiency, while exporting to Apache Parquet guarantees flawless schema detection and native spatial integration within BigQuery.</p><p>The result is a responsive rendering experience in Looker Studio via the Line Map visualization. This architectural approach ensures that your stakeholders get the critical flood insights they need, exactly when they need them, without ever waiting for a map to load. Happy mapping!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db2571a7dcd0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/mapping-local-flood-risks-in-looker-studio-using-defra-open-data-and-bigquery-db2571a7dcd0">Mapping Local Flood Risks in Looker Studio using Defra Open Data and BigQuery</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unlocking Hyper-Local Retrofit Patterns: Using BigQuery ML to Decipher Shrewsbury’s Property…]]></title>
            <link>https://medium.com/google-cloud/unlocking-hyper-local-retrofit-patterns-using-bigquery-ml-to-decipher-shrewsburys-property-a850090ee670?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a850090ee670</guid>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Thu, 11 Jun 2026 02:21:34 GMT</pubDate>
            <atom:updated>2026-06-14T10:22:27.469Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unlocking Hyper-Local Retrofit Patterns: Using BigQuery ML to Decipher Shrewsbury’s Property Upgrades</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vV_JVNZr_G6S9SHuOhBqJw.png" /><figcaption>Image generated by Gemini. Deciphering hyper-local property retrofit patterns through data science.</figcaption></figure><h3>Introduction &amp; Motivation</h3><p>In <a href="https://medium.com/google-cloud/real-estate-lifecycle-analysis-with-bigquery-sql-graph-graph-modeling-beyond-llm-record-linkage-ad61fc10d547">my previous article (the 4th post of this series)</a>, I merged a small sample of property-level EPC (Energy Performance Certificate) logs with land registry timelines to trace how energy efficiency upgrades impact property transactions. In that limited subset of around 27 properties, I found no clear evidence of strategic, premium “flip-and-sell” retrofitting. Instead, those specific properties showed a reactive pattern — essentially remaining within the same energy bands (e.g., keeping their original ‘D’ rating) as part of a mandatory, pre-sale administrative check rather than undergoing meaningful structural improvements.</p><p>This left us with a critical baseline question: <strong>Is the active UK housing market driven primarily by generic, bureaucratic paperwork, or were we just looking at too small of a window?</strong></p><p>To discover if homeowners are actually executing strategic, value-add retrofits prior to selling, I scaled up my analysis to capture the entire SY1 postcode area in Shrewsbury.</p><p>Unlike the tiny sample from my previous post, this expanded dataset contains a distinct and highly lucrative signal: <strong>properties that were actively and heavily retrofitted in direct preparation for a premium market sale.</strong></p><p>However, because these strategic real-world upgrades are deeply buried within a massive sea of transactional noise, finding them requires moving beyond manual spreadsheets. This is exactly why I turned to <strong>Machine Learning (BigQuery ML)</strong>. By training a classification model to identify our engineered <em>Sub-region Groups</em>, I aimed to let the AI ignore the administrative clutter and map out the exact structural fingerprint of real, value-add property development across Shrewsbury’s unique neighborhoods.</p><h3>The Dataset: Capturing “True” Value-Add Properties</h3><p>To build a high-quality dataset that reflects genuine home improvements rather than bureaucratic paperwork, I applied a strict filtering logic in BigQuery.</p><p>Regardless of the time interval between inspections — even if a property was inspected twice within a single year — I captured all historical multiple-inspection logs. From this pool, I narrowed the dataset down to <strong>roughly 900 unique properties</strong> where the second EPC score was strictly higher than the first.</p><p>In the UK housing market, moving an EPC score upward is no small feat. It requires significant capital expenditure from the owner — whether it is installing solid wall insulation, upgrading to double glazing, or replacing an old boiler with a modern, efficient system. Therefore, this dataset represents a curated group of <strong>“True Value-Add”</strong> properties where real physical retrofitting took place.</p><h4>🔍 A Note on Data Nuance:</h4><p>Of course, a critical nuance must be acknowledged here: how do we interpret a minor, 1-point score increase? In the UK EPC framework, a nominal improvement of just one or two points does not necessarily mean a major capital investment took place. It could simply be the result of a homeowner swapping out old incandescent bulbs for low-energy LED lighting, or minor discrepancies between different assessors’ subjective judgments.</p><p>However, by capturing cases where the score shifted upward alongside interacting features like improved_parts, BigQuery ML is forced to distinguish between these low-effort updates and heavy, structural retrofits. While some minor noise from simple lighting upgrades remains, this dataset successfully isolates the subset of properties where the needle actually moved.</p><h4>Why Bring in Machine Learning?</h4><p>As I looked at these 900 filtered rows, a new hypothesis emerged: <strong>Do these retrofitting behaviors and score jumps differ significantly depending on the local neighborhood?</strong></p><p>If different areas show distinct patterns in how houses are upgraded, it would reveal hyper-local demands and infrastructure gaps that are highly valuable for the market. However, trying to find these patterns manually by eyeballing dozens of interacting categorical features — such as property_type, construction_band_age, and the inspection intervals — is practically impossible for a human.</p><p>This is exactly why I decided to turn to Machine Learning. By setting up a classification task to let an AI model predict the four different Sub-region Groups, I could reverse-engineer the model’s Feature Importance to let the AI tell me exactly which property traits define the unique identity of each neighborhood.</p><h3>Defining the ML Task Amidst Data Realities</h3><h4>The Formulation of the Machine Learning Task</h4><p>The primary objective of this experiment was to set up a multi-class classification task using BigQuery ML. I wanted to see if an AI model could accurately predict the specific location — one of four distinct Sub-region Groups in Shrewsbury — based solely on the attributes of a retrofitted property.</p><p>In short, the challenge posed to the AI was:</p><p><em>“Here is a property that underwent an energy efficiency upgrade. Based on its traits, can you guess which of the four sub-regions it belongs to?”</em></p><p>To give you a clear visual understanding of the stark morphological and chronological contrasts between these four target neighborhoods, I mapped out their architectural identities below:</p><h4><strong>Facing the Reality of Raw EPC Data:</strong></h4><p>The Same-Year Noise Trap Before feeding the data into the model, a deep dive into the raw EPC logs revealed a massive structural anomaly that had to be systematically excluded. A substantial portion of the historical records contained properties that were inspected multiple times within the exact same calendar year. To ensure total data integrity, I isolated these same-year duplications within the Shrewsbury (SY1) area, identifying a total of 401 duplicate cases. <br>My preliminary analysis of these identical-year logs confirmed a striking reality: the vast majority of these rapid-fire re-inspections showed zero change in their actual property infrastructure. In the context of the UK property market, this pattern clearly represents administrative noise triggered by property sales, tenancies, or paperwork updates rather than physical retrofitting.<br>If I had fed this raw, uncleaned same-year noise into BigQuery ML, the model would have spent its capacity learning the patterns of “procedural emptiness” — the traits of houses that generate paperwork without any real-world upgrades. This would completely mask the hyper-local retrofitting trends I wanted to uncover. <br>This is exactly why I filtered out this same-year duplicate noise entirely, ensuring our classification model focused 100% on the ~900 clean records of genuine, long-term property improvements where the needle actually move.</p><h4>Geospatial Joins &amp; Feature Engineering</h4><p>To protect the model from this noise and maximize signal purity, I performed extensive feature engineering and data preparation in BigQuery rather than relying on raw columns.</p><ul><li><strong>First</strong>, since the raw UK EPC dataset does not natively contain macro-level regional categories, I executed a geospatial mapping process using the official ONS Postcode Directory table. Instead of utilizing hyper-granular administrative boundaries, each property’s postcode was directly aggregated into its corresponding custom <strong>Sub-region Group</strong> (e.g., <em>Town Centre</em>, <em>Battlefield</em>) based on localized housing stock characteristics prior to training.</li><li><strong>Second</strong>, I dynamically generated the core energy performance metrics by comparing historical inspection logs for the exact same property over time:</li><li>By restricting the training dataset exclusively to properties where this calculated change_score was strictly greater than zero, the dataset shrunk down to a highly concentrated pool of <strong>roughly 900</strong> “True Value-Add” records.</li><li>change_score: Calculated as the exact mathematical delta between the CURRENT_ENERGY_EFFICIENCY of the second inspection and the first inspection.</li></ul><pre>SQL<br>-- Query used to perform geospatial joins, feature engineering, and train the BQML model<br>CREATE OR REPLACE MODEL `your_project.your_dataset.sub_region_boosted_tree_model`<br>OPTIONS(<br>  MODEL_TYPE=&#39;BOOSTED_TREE_CLASSIFIER&#39;,<br>  -- Target label updated from cryptic administrative codes to human-readable sub-region names<br>  INPUT_LABEL_COLS=[&#39;sub_region_group&#39;],<br>  AUTO_CLASS_WEIGHTS=TRUE<br>) AS<br>SELECT<br>  -- Using the pre-processed and cleaned human-readable area names as the target class<br>  epc_cleaned.sub_region_group, <br>  epc_cleaned.property_type,<br>  epc_cleaned.construction_band_age,<br>  <br>  -- Feature Engineering: Extracting baseline score and calculated delta<br>  epc_cleaned.first_inspection_efficiency AS initial_score,<br>  (epc_cleaned.second_inspection_efficiency - epc_cleaned.first_inspection_efficiency) AS change_score<br>FROM<br>  -- Querying the cleaned looker table where sub_region_group has already been mapped<br>  `your_project.your_dataset.t_shrewsbury_property_improvement_records_looker` AS epc_cleaned<br>WHERE<br>  -- Pure value-add signal filter: eliminating the same-year administrative noise trap<br>  (epc_cleaned.second_inspection_efficiency - epc_cleaned.first_inspection_efficiency) &gt; 0;</pre><h3>The Technical Hurdle: Slot Allocation and Model Choice</h3><h4>Overcoming BigQuery ML Resource Constraints</h4><p>Once the dataset was purified, I proceeded to train the model using BigQuery ML. Despite the relatively compact size of the filtered dataset (around 900 rows), I hit an unexpected cloud-native bottleneck: slot allocation delays. Due to shared environment congestion or transient resource limits, the query sat in a queue waiting for compute resources.</p><p>During this delay, I briefly considered switching to a simpler LOGISTIC_REG (Logistic Regression) model, which requires significantly less compute overhead and would have executed instantly.</p><p>However, I decided against compromising the analytical depth. As noted earlier, our dataset is heavily reliant on interacting categorical features, and the score_change metric exhibits a highly skewed, long-tailed distribution. A linear model would easily fail to capture these complex, non-linear relationships.</p><p>I chose to wait out the resource constraints and stick with my original plan. Ultimately, the BOOSTED_TREE_CLASSIFIER model compiled successfully, ensuring that the structural nuances of our target neighborhoods were preserved.</p><h3>Model Architecture: Why Boosted Trees?</h3><h4>The Synergy Between Data Structure and Algorithm</h4><p>Choosing the right machine learning architecture is about matching the mathematical strengths of an algorithm to the unique quirks of your dataset. For our purified dataset of roughly 900 value-add properties, the BOOSTED_TREE_CLASSIFIER (Gradient Boosted Decision Trees) was the ideal choice for three specific reasons:</p><h4>1. Superior Handling of Heavy Categorical Features</h4><p>The core attributes defining our properties — such as property_type (Flat, Terraced, Semi-Detached, Detached) and construction_band_age (Pre-1900, 1950s, etc.) — are dense categorical strings. Linear models struggle with these unless you perform extensive one-hot encoding, which often leads to sparse matrices and poor generalization. Decision trees, by nature, excel at splitting data based on discrete categories without losing structural integrity.</p><h4>2. Robustness Against Long-Tailed Distributions</h4><p>Our dynamic feature, change_score (the magnitude of the EPC score upgrade), does not follow a neat, symmetrical bell curve. Instead, as shown in the distribution chart below, it exhibits a heavy long-tail distribution — where a massive cluster of properties saw modest improvements (likely quick wins like LED lighting upgrades), while a select few “outliers” achieved dramatic, high-scoring transformations through structural retrofits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SaawwF7bUl4QZEOxkixEdw.png" /><figcaption><em>Figure 3: The highly skewed, long-tailed distribution of the engineered change_score, demonstrating why linear models fail and tree-based partitioning is required.</em></figcaption></figure><p>While linear models are notoriously sensitive to such highly skewed distributions and outliers, gradient boosted trees handle them elegantly by partitioning the data into non-linear, stepwise thresholds.</p><h4>3. Automatic Capture of Feature Interactions (“The Combo Effects”)</h4><p>The true magic of this analysis lies in finding combined traits. The regional identity of a neighborhood is rarely defined by a single variable; it is defined by combinations, such as “Pre-1900” AND “House” versus “Modern” AND “Flat.”</p><p>A boosted tree model automatically discovers these interaction effects through its hierarchical splitting process. It builds a tournament of conditional logic (e.g., <em>If building is old ➔ and if it is a house ➔ then it belongs to Sub-region X</em>), saving us from having to manually engineer complex cross-features.</p><h3>Evaluating the Model &amp; Insights</h3><h4>Unveiling the AI’s Brain: Feature Importance Results</h4><p>After successfully training our BOOSTED_TREE_CLASSIFIER, I executed the ML.FEATURE_IMPORTANCE function to reverse-engineer the model. I wanted to see exactly which clues the AI relied on to classify the four different Sub-region Groups based on our engineered retrofit data.</p><pre>SQL<br>-- Extracting the feature importance metrics from the trained model<br>SELECT<br>  feature,<br>  importance_gain<br>FROM<br>  ML.FEATURE_IMPORTANCE(MODEL `your_project.your_dataset.sub_region_boosted_tree_model`)<br>ORDER BY<br>  importance_gain DESC;</pre><p>The raw output from this query in BigQuery reveals a massive, undeniable gap:</p><ul><li>construction_band_age (Gain: 6.75) — <strong>The undisputed champion.</strong></li><li>property_type (Gain: 4.83) — A strong runner-up.</li><li>initial_score (Gain: 1.36) — A distant third.</li></ul><p>Notice that our dynamically calculated outcome-based feature, score_change (Gain: 0.99), barely registered in the AI’s decision-making process.</p><p>The AI essentially discovered that the dynamic nature of a retrofit is fundamentally dictated by the baseline physical architecture of the neighborhood. It told us: <em>“If you want to know which local area a retrofitted property belongs to, don’t look at how much the score improved. Just look at when the building was built and what shape it takes.”</em></p><h4>Fact-Checking the AI: The Visual Proof</h4><p>Taking the AI’s strong recommendations, I returned to our source dataset. I connected the raw data to Looker Studio and plotted two stacked bar charts — one for property_type and one for construction_band_age — broken down by the four Sub-region Groups to see what the AI was seeing.</p><p>The moment the charts were rendered, the mystery was completely solved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*saxHoP6JLSM4nBLqViIUAQ.png" /><figcaption><em>Figure 4: Looker Studio analysis verifying the AI’s logic. Property Type distribution (left) and Construction Band Age distribution (right) across the four target Sub-region Groups.</em></figcaption></figure><h4>🏢 The Property Type Breakdown (Left Chart in Figure 4)</h4><p>As the AI predicted with its high importance score, property_type serves as a massive regional separator. While three out of the four Sub-region Groups — <strong>Group 2 (Castle Fields), Group 4 (Battlefield), and Group 3 (Harlescott)</strong> — are overwhelmingly dominated by Houses (the massive blue blocks representing standard suburban terraces or semi-detached homes), <strong>Group 1 (Town Centre)</strong> stands out like a sore thumb. Here, the market is completely hijacked by Flats (the orange block), which make up roughly two-thirds of all upgraded properties.</p><h4>⏳ The Age of Construction Breakdown (Right Chart in Figure 4)</h4><p>The undisputed top feature, construction_band_age (Gain: 6.75), paints an even more nuanced picture of neighborhood identities:</p><ul><li><strong>Group 1 (Town Centre):</strong> A unique apartment-heavy pocket with a vastly different chronological footprint.</li><li><strong>Group 2 (Castle Fields):</strong> A historical cluster heavily dominated by “before 1900” pre-Victorian/Edwardian properties (the large blue block).</li><li><strong>Group 3 (Harlescott):</strong> A post-war expansion area dominated by “1967–1975” builds (the green block).</li><li><strong>Group 4 (Battlefield):</strong> A mid-century boom area defined by “1930–1949” housing stock (the purple block).</li></ul><h3>Conclusion: Machine Learning as the Ultimate EDA Microscope</h3><p>To a human eye scrolling through a spreadsheet or looking at a standard geographical map of Shrewsbury, these four Sub-region Groups might just seem like generic, overlapping local housing markets.</p><p>But by using BigQuery ML as an advanced tool for Exploratory Data Analysis (EDA), the AI successfully peeled back the noise. It pointed its finger at the exact cross-sections — the historical age barriers and structural layout differences — that define the hyper-local realities of the market.</p><p>We did not need a machine learning model to generate these final bar charts. But we absolutely needed the AI to scan through dozens of messy variables,<strong> slice through the same-year</strong> administrative noise trap, and tell us: “Look right here. This is the structural fingerprint of the neighborhood.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a850090ee670" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/unlocking-hyper-local-retrofit-patterns-using-bigquery-ml-to-decipher-shrewsburys-property-a850090ee670">Unlocking Hyper-Local Retrofit Patterns: Using BigQuery ML to Decipher Shrewsbury’s Property…</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Real Estate Lifecycle Analysis with BigQuery SQL Graph: Graph Modeling Beyond LLM Record Linkage]]></title>
            <link>https://medium.com/google-cloud/real-estate-lifecycle-analysis-with-bigquery-sql-graph-graph-modeling-beyond-llm-record-linkage-ad61fc10d547?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad61fc10d547</guid>
            <category><![CDATA[bigquery]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[graph-database]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 02:35:50 GMT</pubDate>
            <atom:updated>2026-06-04T02:35:50.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a-Tm_Barusy71NHiQPn9RQ.png" /><figcaption><em>Visualized via Napkin AI</em></figcaption></figure><ol><li><strong>Introduction</strong></li></ol><p>In my <a href="https://medium.com/google-cloud/unlocking-real-estate-intelligence-building-an-ai-driven-address-resolution-pipeline-with-a0f62e9ff55f">previous post</a>, we tackled one of the most notorious challenges in data engineering: merging two massive, disparate open datasets from different UK government bodies — <strong>HM Land Registry (property sales data)</strong> and the <strong>Domestic EPC (Energy Performance Certificate) Register</strong>.</p><p>Because these systems are managed independently, address strings are riddled with formatting discrepancies, spelling variations, and spacing issues, making a traditional deterministic join completely impossible. To solve this, I implemented a modern approach by <strong>embedding Gemini (LLM) directly into BigQuery</strong> to perform advanced semantic matching. This allowed us to clean and link the datasets with incredible accuracy across <strong>four selected high-density postcodes within the Shrewsbury (SY1) area</strong> as a representative sample.</p><p>The data is now beautifully consolidated. However, as a data analyst, this brought me face-to-face with an even larger architectural hurdle:</p><p><strong>“Now that we have this cleanly linked sample data, how do we efficiently trace the decades-long chronological history — the sales and environmental renovation lifecycles — for each individual property without breaking our data pipeline?”</strong></p><h3>2. The Pitfalls of Traditional SQL JOINs: The “Join Explosion” Trap</h3><p>When trying to build a chronological timeline, the instinctive approach for most engineers is to perform a standard LEFT JOIN using a unique property identifier (Property_ID) as the key. However, this is where a massive data modeling trap lies.</p><p>Our data schema inherently represents a <strong>one-to-many (or many-to-many)</strong> relationship. For any single property node, there can be multiple sales events (Land Registry) and multiple energy audit updates (EPC) recorded over the span of 20+ years.</p><p>In an ideal data structure, these historical events should sit cleanly and independently around a single central property hub, maintaining a pure chronological addition (3 + 3 = 6 total events).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oIIAz3sHEOBadW8OakKI4g.png" /><figcaption><em>Caption: The clean, ideal data structure. Independent historical timelines branch off from a single central property hub.(Visualized via Napkin AI)</em></figcaption></figure><p>However, if you naively combine these histories using a traditional relational JOIN via ON left.Property_ID = right.Property_ID, SQL goes rogue. Because it lacks any intrinsic concept of time-series alignment, the relational engine forces a Cartesian product of every single possible combination between the two tables.</p><p>Using the Property_ID: A as a blind intersection gate, the rows violently multiply behind the scenes, weaving an artificial, tangled web of cross-connections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7Cs4TT4woXxMFJ7G2ye-dQ.png" /><figcaption><em>Caption: The “Collision Cross.” Using Property_ID as a blind join key, the relational database forces every sales event to cross-connect with every single EPC audit.(Visualized via Napkin AI)</em></figcaption></figure><p>As a result, a single property’s data balloons exponentially from a handful of rows into a <strong><em>3 times 3 = 9 row</em></strong> monstrosity.</p><p>This “Join Explosion” does more than just degrade query performance and inflate BigQuery processing costs at scale. It introduces fatal <strong>chronological data distortion (timeline mismatch)</strong> — such as pairing a 1995 sales event on the exact same row with an eco-audit rating from the year 2020.</p><p>Looking at the resulting 9-row table, the structural corruption becomes painfully obvious:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wq2L-wazrraip2InY2rzfg.png" /><figcaption><em>Caption: The broken output table. Relational multiplication forces future eco-audits onto historical sales records, creating impossible, corrupted timelines.(Visualized via Napkin AI)</em></figcaption></figure><p>To bypass this relational multiplication (<em>times</em>) and preserve historical logs as a clean, sequential addition (<em>N + M</em>) on a single line, we need a complete paradigm shift in data modeling. This is exactly why I bypassed traditional tables and leveraged BigQuery’s cutting-edge engine: <strong>SQL Graph</strong>.</p><h3>3. The Blueprint: Defining a Property Graph in BigQuery</h3><p>Before defining our property graph, let’s look at the underlying storage architecture. Typically, in relational design, you would feel compelled to create a distinct “Property Master” table just to hold static information like addresses.</p><p>However, with BigQuery SQL Graph, we can achieve an ultra-efficient setup using just <strong>two physical tables</strong> that we previously cleaned and linked using Gemini LLM:</p><ul><li><strong>Land_history_table</strong>: Contains unique property identifiers (Property_ID) along with their complete historical sales records. Because it already holds our LLM-standardized, beautifully clean full addresses, this table plays a brilliant dual role: it serves as the foundation for our central <strong>Property Node</strong> and defines our <strong>Sales History Edge</strong>.</li><li><strong>EPC_history_table</strong>: Contains all historical eco-audits and green renovation records, linked via the same Property_ID. This acts purely as our <strong>EPC History Edge</strong>.</li></ul><p>By mapping roles rather than creating redundant physical tables, the DDL blueprint remains incredibly elegant:</p><h4>Query: 01_define_property_graph.sql</h4><pre>SQL<br>-- =====================================================================<br>-- Project: UK Property Renovation &amp; ROI Analysis (Shrewsbury)<br>-- Title: 01_define_property_graph.sql<br>-- Description: Define Graph combining both Sales and EPC histories.<br>-- =====================================================================<br><br>CREATE OR REPLACE PROPERTY GRAPH `uk_property_graph.shrewsbury_graph`<br>NODE TABLES (<br>  -- The central hub property node (acting as the master asset)<br>  `uk_property_graph.Land_history_table` AS Property<br>    KEY (Property_ID)<br>)<br>EDGE TABLES (<br>  -- 1) Sales history edge: Self-looping from the property back to itself<br>  `uk_property_graph.Land_history_table` AS sold_history<br>    KEY (unique_id)<br>    SOURCE KEY (Property_ID) REFERENCES Property (Property_ID)<br>    DESTINATION KEY (Property_ID) REFERENCES Property (Property_ID)<br>    LABEL sold_history,<br><br>  -- 2) EPC history edge: Independent historical timeline of eco-audits<br>  `uk_property_graph.EPC_history_table` AS epc_history<br>    KEY (LMK_KEY)<br>    SOURCE KEY (Property_ID) REFERENCES Property (Property_ID)<br>    DESTINATION KEY (Property_ID) REFERENCES Property (Property_ID)<br>    LABEL epc_history<br>);</pre><p>Running this query instantly spins up a virtual graph workspace named shrewsbury_graph right inside BigQuery.</p><h3>4. Graph Schema Visualization via Google Cloud’s Native UI</h3><p>Once the graph is created, checking the BigQuery console (Preview feature) reveals something incredible. The exact mental model we envisioned — a central property node with two independent historical loops — is <strong>perfectly recognized and visualized by Google Cloud’s native UI</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nseOqG25A-MnbYf_nv902Q.png" /><figcaption><em>Caption: The native BigQuery UI showcasing the generated graph schema: a single central Property node mapped with self-looping sold_history and epc_history edges.</em></figcaption></figure><p>We now have the ultimate, bulletproof data foundation — one that completely prevents data inflation while elegantly preserving parallel historical events.</p><h3>5. Extraction: Flattening Parallel Timelines with GRAPH_TABLE and MATCH</h3><p>With our graph schema defined, we move to the extraction phase. This is where BigQuery’s native <strong>GRAPH_TABLE</strong> operator and <strong>MATCH clause</strong> truly shine, offering a radical departure from traditional relational syntax.</p><p>Below is the exact production query used to pull our master dataset into the visualization engine:</p><h4>Query: 02_match_shrewsbury_timeline_for_sheets_v2.sql</h4><pre>SQL<br>-- =====================================================================<br>-- Project: UK Property Renovation &amp; ROI Analysis (Shrewsbury)<br>-- Title: 02_match_shrewsbury_timeline_for_sheets_v2.sql<br>-- Description: Full timeline extraction with address and property type<br>-- =====================================================================<br><br>SELECT * FROM GRAPH_TABLE(<br>  `uk_property_graph.shrewsbury_graph`<br>  -- 🎯 MATCH Clause: Scan both sales and EPC histories in parallel from Property node (p)<br>  MATCH (p:Property)-[s:sold_history]-&gt;(), (p)-[e:epc_history]-&gt;()<br>  <br>  COLUMNS(<br>    -- 🏠 Basic Property Info (COALESCE to handle any casing discrepancies)<br>    COALESCE(p.Property_ID, p.property_id, p.PROPERTY_ID) AS property_id,<br>    p.postcode AS postcode,<br>    p.full_address_land AS address,<br>    p.property_type AS property_type,<br>    <br>    -- 📉 Sales History<br>    s.sale_date AS sale_date,<br>    s.price AS sale_price,<br>    <br>    -- 🌿 EPC (Renovation) History<br>    e.inspection_date AS epc_date,<br>    e.total_floor_area AS floor_area,<br>    e.current_energy_rating AS energy_rating<br>  )<br>)<br>-- Filter by SY postcode to target the high-density sample areas<br>WHERE postcode LIKE &#39;SY%&#39;<br>-- Sort chronologically per property to build a flawless history timeline<br>ORDER BY property_id, sale_date ASC, epc_date ASC;<br></pre><h4>✨ Key Architectural Takeaway</h4><ul><li><strong>The Power of Parallel MATCH Processing:</strong> In standard SQL, weaving together multiple independent event logs requires a messy combination of conditional JOINs or heavy UNION ALL subqueries. With SQL Graph, the syntax MATCH (p:Property)-[s:sold_history]-&gt;(), (p)-[e:epc_history]-&gt;() allows BigQuery to traverse both history paths smoothly.</li><li><strong>Intentional Column Separation for Visualization:</strong> From a strict graph theory perspective, a parallel MATCH clause with a comma separation technically generates a cross-product matrix internally. However, <strong>this row structure was intentionally chosen for our pipeline.</strong> By keeping sale_date and epc_date as separate, independent columns in a flat, wide-column format, our visualization engine can effortlessly map and render dual-layered event dots on the exact same categorical address row without losing track of which point represents what event.</li></ul><h4>6. The Climax: Translating Raw Data into “Price per Sqm” Insights</h4><p>Extracting a clean, non-explosive historical dataset from BigQuery SQL Graph is a massive architectural victory. However, data engineering is only half the battle; the real magic happens when we transform these chronological logs into investor-ready, visual insights.</p><p>To evaluate whether green renovations (EPC upgrades) directly impact property market value over a 20-year span, we needed a specific type of visualization: <strong>a horizontal swimlane timeline (Gantt-style chart)</strong> that can plot two entirely different event types (Sales and EPC) sequentially on a single address row.</p><p>My immediate, instinctive choice was to plug the data into <strong>Looker Studio</strong>. However, I quickly hit a hard platform limitation — Looker Studio lacks a native, flexible Timeline/Gantt component capable of handling dual-event scatter plots on a categorical text axis. Next, I turned to <strong>Google Sheets’ built-in default chart engine</strong>. While Sheets can generate basic scatter plots, its standard interface miserably failed to group the events cleanly by text addresses without blurring the rows together, and it completely choked on formatting independent multi-layered labels.</p><p>Realizing that traditional BI and spreadsheet features couldn’t handle this non-standard real estate lifecycle layout, I bypassed standard chart builders entirely. Instead, I leveraged advanced Generative AI with a highly specific, custom-engineered <strong>【Visualization Prompt】</strong> to force the chart engine into a strict, minimalist layout:</p><p><strong>The Visualization Prompt (Prompt to Chart)</strong></p><pre>Plaintext<br>Based on the sheet data, please create a scatter chart (timeline chart) with the following exact layout, custom calculations, and ultra-minimalist label rules:<br><br>1. Data Filter:<br>   - Include ALL available rows in the data sheet (No geographical filtering).<br><br>2. Axis Settings:<br>   - X-axis: Plot sale_date and epc_date chronologically by Year &amp; Quarter.<br>   - Y-axis: Plot actual text from &quot;address&quot; on the vertical axis (NOT property_id).<br><br>3. Readability Fix (Gridlines):<br>   - Add a clear horizontal gridline for EACH address row across the entire chart. The gridlines must guide the eye perfectly from the address text to the dots on the right so the rows don&#39;t blur together.<br><br>4. Multi-Layered Color Coding &amp; Legend:<br>   - EPC events MUST be a single, uniform color: Orange.<br>   - Sale events MUST be color-coded based on the text in &quot;property_type&quot;. The legend must define separate series for each sale type, such as &quot;Sale (Terraced)&quot;, &quot;Sale (Detached)&quot;, etc., using distinct colors (e.g., shades of Blue, Green, Purple, Red).<br>   - CRITICAL: Ensure the Legend explicitly defines that Orange dots represent EPC Ratings and the values inside labels are metrics (EPC grade and calculated Price/sqm) so the chart text can remain ultra-minimal.<br><br>5. Ultra-Compact Label Logic &amp; Placement (Strict Shorthand):<br>   - EPC Labels (Above Dot - SINGLE LETTER ONLY): Display ONLY the single-letter energy rating (e.g., A, B, C, D, E, F, G).<br>     * ABSOLUTE PROHIBITION: DO NOT include the floor area, epc_date, years, months, colons, decimals, or numeric efficiency scores. (e.g., If the source data says &quot;E:29.0&quot;, strictly clean and strip it down to display ONLY the single letter &quot;E&quot;). Place it strictly ABOVE each orange dot. Do not include strings like &quot;EPC&quot; or &quot;sqm&quot;.<br>   - Sale Labels (Right of Dot - PRICE PER SQM ONLY): For each colored Sale dot, calculate the &quot;Price per square meter&quot; by dividing &quot;sale_price&quot; by &quot;floor_area&quot;. Round it to the nearest thousand and use the &quot;K&quot; shorthand. Place it strictly to the RIGHT of each Sale dot (e.g., If the calculated value is £2,500, display strictly as &quot;£2.5K&quot;. If it&#39;s £1,800, display as &quot;£1.8K&quot;). Completely OMIT &quot;Sold:&quot;, &quot;Price:&quot;, or &quot;/sqm&quot;.</pre><p>Feeding this precise specification into the visualization tool yields our final, noise-free timeline dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VhuF6drW1Hjt2_1oK1SAZA.png" /><figcaption><em>Caption: The finalized property valuation timeline. Orange markers indicate EPC audit events (showing energy rating and size), while the multi-colored dots represent historical sales converted directly into Price per Sqm.</em></figcaption></figure><h3>💡 The “Inconvenient Truth” Revealed by the Data</h3><p>When looking at the final visualizations across our sample postcodes, the data presented a fascinating, counter-intuitive reality that directly challenged my initial hypothesis:</p><p><strong>There was virtually no evidence of property prices (Price per Sqm) jumping upward immediately following an improved EPC rating.</strong></p><p>The clean, mainstream narrative that “eco-renovations automatically boost market value” was disrupted by the raw data. While macroeconomic waves (such as interest rate shifts) undoubtedly play a massive role in overall market trajectories, this data points to a deeper, uniquely British housing barrier.</p><p>Shrewsbury is a historic town. Many older properties feature <strong>traditional solid brick walls</strong> (pre-1920s architecture), where retrofitting cavity wall insulation is structurally impossible, making proper insulation prohibitively expensive. Furthermore, strict local <strong>conservation area laws and Listed Building status</strong> often legally ban homeowners from installing modern double-glazing windows or external insulation to protect the town’s heritage. The data gracefully reflects these physical and legal limits of old English towns: upgrading energy efficiency is costly, and buyers aren’t yet paying a significant premium for minor rating changes.</p><h4>🏁 Looking Ahead: Is Location Still the Absolute Ruler?</h4><p>If a building’s internal green performance isn’t driving a distinct price premium in these historic pockets, what is?</p><p>The raw timeline data reveals a fascinating, inconvenient truth: <strong>there are virtually no records of a single property upgrading its EPC rating and subsequently triggers a price jump.</strong> Instead, the dataset splits cleanly into two tracks: modern homes that were highly-rated from the start rising with macroeconomic waves, and unmodernized “EPC D” historic homes on central streets like Albert Street climbing the exact same price trajectory without ever changing their efficiency status. In short, “green renovation ROI” doesn’t even exist in the data. The market is entirely dominated by macroeconomic trends and the absolute geographical scarcity of the historic Town Centre.</p><p>Moving forward, I look to leverage BigQuery’s GIS (Geographic Information Systems) functions alongside official ONS Census demographic datasets. By overlapping spatial scarcity with granular data on household composition, we can verify whether these high-priced, unmodernized historic centers are driven by an affluent, childless demographic who bypass both public school boundaries and energy bills entirely. Stay tuned as this data journey unfolds!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad61fc10d547" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/real-estate-lifecycle-analysis-with-bigquery-sql-graph-graph-modeling-beyond-llm-record-linkage-ad61fc10d547">Real Estate Lifecycle Analysis with BigQuery SQL Graph: Graph Modeling Beyond LLM Record Linkage</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Beyond Web Design: How GOV.UK Leverages Dataform and BigQuery for Nation-Scale GA4 Governance]]></title>
            <link>https://medium.com/google-cloud/beyond-web-design-how-gov-uk-leverages-dataform-and-bigquery-for-nation-scale-ga4-governance-0f38981f6655?source=rss-069171108acb------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f38981f6655</guid>
            <category><![CDATA[google-analytics-4]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-governance]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[data-privacy]]></category>
            <dc:creator><![CDATA[Maya Hori]]></dc:creator>
            <pubDate>Fri, 29 May 2026 04:33:01 GMT</pubDate>
            <atom:updated>2026-05-29T04:33:01.344Z</atom:updated>
            <content:encoded><![CDATA[<p>While I have been focused on the backend recently — building AI-driven pipelines with BigQuery and Gemini to <a href="https://medium.com/google-cloud/unlocking-real-estate-intelligence-building-an-ai-driven-address-resolution-pipeline-with-a0f62e9ff55f">simulate environments and resolve address data</a> — I have also been thinking about data optimization from the completely opposite direction: the front-end. Living here in the UK, my attention was naturally drawn to the official government portal, <strong>GOV.UK</strong>.</p><p>Driven by curiosity, I stumbled upon their public technical documentation detailing their GA4 implementation framework.</p><blockquote><em>🔗 </em><a href="https://docs.data-community.publishing.service.gov.uk/data-sources/ga/ga4/#data-collection"><em>GOV.UK GA4 Documentation</em></a></blockquote><p>As an analyst, reading through these specs gave me literal goosebumps. It revealed a world of data standardization so rigorous it borders on obsession.</p><p>While the web industry often praises GOV.UK for its clean, accessible UI/UX, its true power lies somewhere invisible to the average user: its backend. Today, I want to dissect GOV.UK’s masterclass in GA4 centralization from an analytics and data governance perspective — a strategy that enterprises and data teams worldwide can adopt right now.</p><h3>1. The Universal Frustration of Enterprise &amp; Government Websites</h3><p>We have all been there. Whether you are filing taxes online or dealing with a massive corporate telecom/banking portal, the user experience is often a nightmare:</p><ul><li>The design and button placements change completely from page to page, leaving you lost.</li><li>You are forced to log in repeatedly despite dealing with the “same” organization.</li><li>You get trapped in a maze of subdomains and give up entirely.</li></ul><p>To the user, it is one government or one enterprise. Yet, it feels like navigating completely separate, hostile companies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*guRuAYmEPBpaoM02qmhbOw.png" /><figcaption>Image by Nano Banana (AI-generated)</figcaption></figure><p>GOV.UK shattered this norm. They consolidated every single government department under one single domain (gov.uk) and unified everything — from fonts and button shapes to form behaviors — into a single, uncompromisingly simple design system.</p><p>Governments worldwide are now trying to mimic this by creating their own “design systems.”</p><p>But here is the million-dollar question: <strong>Do you think organizations standardize design simply to look pretty and feel “a bit more user-friendly”?</strong></p><p>The true value lies somewhere much deeper.</p><h3>2. Standardized Design Means Standardized Data</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BijkG6RuJN2PgLzHWi5Xkg.png" /><figcaption>Screenshot from <a href="https://www.gov.uk/">GOV.UK</a></figcaption></figure><p>This was the exact moment I gasped as an analyst.</p><p><strong>When you standardize the front-end UI/UX, you automatically standardize — and template — the back-end data collection (GA4) system.</strong></p><p>Because the “building blocks” (buttons, form steps, page structures) are identical across all services, the way data is transmitted becomes identical too. Through this, the UK government acquired the ultimate weapon: <strong>a single, universal yardstick.</strong></p><p>Whether a citizen is applying for social welfare, renewing a passport, or checking corporate data, actions like:</p><ul><li>Which button was clicked?</li><li>At which specific form field did the user trigger an error and drop off?</li></ul><p>…are tracked under <strong>the exact same event names and metrics across the entire nation.</strong></p><p>Departments do not look at siloed data with their own arbitrary definitions. The entire government tracks organizational friction through a single centralized dashboard (like Looker Studio), allowing instant comparison and cross-analysis. This is the true engineering marvel behind GOV.UK.</p><h3>3. The “Russian Doll” Architecture and the BigQuery Query Trap</h3><p>To maintain strict global governance while supporting the unique analytical needs of various departments, GOV.UK implemented what I call a <strong>“Russian Doll” data architecture</strong>.</p><p>Everyone uses the exact same universal, high-level event names (e.g., navigation for link clicks, search, file_download). However, inside that event box, they pack an array of granular custom dimensions as parameters—like <em>which department owns the page, the specific section, and the exact text link</em>.</p><p>By saying, <em>“You can never change the event name, but you can unpack whatever data you need within these designated parameters,”</em> they achieved the perfect balance between global governance and local autonomy. It is a 100-point blueprint for requirements definition.</p><p>However, as an analyst who regularly exports GA4 data to BigQuery, a major headache immediately came to mind: <strong>the data query trap.</strong></p><p>When GA4 data lands in BigQuery in this nested format, it is notoriously painful to query. The data is folded layers deep, meaning you have to write tedious, complex SQL statements (UNNEST) just to open the boxes and extract basic metrics.</p><h3>4. The Solution: Cleaning Data Automatically for Looker Studio via “Dataform”</h3><p>This is where the UK Government’s sheer thoughtfulness — and brilliance — comes in. They didn’t just dump raw, complicated data into BigQuery and tell their team, <em>“Good luck writing those complex queries.”</em></p><p>Instead, <strong>they built a program using Dataform that automatically unpacks those “Russian Dolls” inside BigQuery, instantly flattening them into clean, easy-to-use tables — and they open-sourced the whole thing.</strong></p><blockquote><em>🔗 </em><a href="https://github.com/alphagov/ga4-dataform/tree/main/definitions"><em>GOV.UK ga4-dataform Repository (GitHub)</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YeY8PpdMvgL2TPpHT_aB-g.png" /><figcaption>Screenshot from the GOV.UK <a href="https://github.com/alphagov/ga4-dataform/tree/main/definitions/processing">ga4-dataform repository on GitHub</a>.</figcaption></figure><p>Looking closely at their public repository, you can see files clearly labeled with the word flattening.</p><p>Thanks to this pipeline, downstream users — whether they are non-technical managers looking to build a quick dashboard in Looker Studio or analysts writing SQL queries — never have to struggle with complex nested structures. Dataform acts as an automated cleanup crew in the background, ensuring the data warehouse is always ready to serve as a reliable, universal yardstick.</p><h3>5. Defense at the Gates: Stripping PII to Keep BigQuery Untainted</h3><p>Another massive hurdle in data analytics is dealing with Personally Identifiable Information (PII).</p><p>In web analytics, there is a constant risk of names, email addresses, or postcodes accidentally slipping into GA4 via form inputs, internal searches, or URL parameters. While private companies usually settle for generic rules like <em>“let’s try not to put emails in the URL,”</em> GOV.UK took a zero-tolerance approach.</p><p>They developed a proprietary JavaScript module called <strong>PIIRemover</strong> that acts as a gatekeeper right before the data payload hits GA4 endpoints, aggressively scrubbing the data on the fly.</p><blockquote><em>🔗 </em><a href="https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/pii-remover.md"><em>GOV.UK PII Remover Module Documentation (GitHub)</em></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X32BrGLHHeJCrHu-KlsuMg.png" /><figcaption>Screenshot from <a href="https://github.com/alphagov/govuk_publishing_components/blob/main/docs/analytics-ga4/pii-remover.md">pii-remover.md</a></figcaption></figure><p>Integrated via GTM, this script watches incoming data streams. If it detects anything resembling an email format, it instantly masks it before it ever touches Google’s servers:</p><ul><li><strong>Raw Data:</strong> “User input: test@example.com”</li><li><strong>Sanitized Data:</strong> “User input: [email]&quot;</li></ul><p>By ensuring zero PII enters the GA4 pipeline, this architecture guarantees that the resulting BigQuery dataset remains fully compliant with strict privacy laws (like GDPR). They don’t wait for the cloud data lake to get dirty and then run heavy cleanup scripts after the fact; they keep it pristine from the very first second. As someone who handles data governance, I found this level of execution deeply moving.</p><h3>6. Conclusion: True Data Optimization Starts Before the Cloud Console</h3><p>Analyzing GOV.UK’s public framework reinforced a vital principle: <strong>True data optimization happens before you ever touch a cloud console.</strong></p><p>Many enterprise organizations struggle with messy BigQuery datasets and bloated data pipelines because they attempt to fix a chaotic, fragmented front-end web architecture using complex SQL logic in the back-end. GOV.UK proves the inverse:</p><p>First, ruthlessly simplify and unify your front-end design and components. Once your website’s “building blocks” are standardized, your GTM tracking rules become incredibly simple and predictable. As a result, the automated transformations in BigQuery and Dataform run beautifully and seamlessly.</p><p>When front-end “<strong>subtraction</strong>” meets back-end automated transformation, you get an analytics engine that is performant, secure, and ready for anyone to visualize instantly in Looker Studio.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f38981f6655" width="1" height="1" alt=""><hr><p><a href="https://medium.com/google-cloud/beyond-web-design-how-gov-uk-leverages-dataform-and-bigquery-for-nation-scale-ga4-governance-0f38981f6655">Beyond Web Design: How GOV.UK Leverages Dataform and BigQuery for Nation-Scale GA4 Governance</a> was originally published in <a href="https://medium.com/google-cloud">Google Cloud - Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>