36 lines
6.9 KiB
Rust
36 lines
6.9 KiB
Rust
// @generated by analysis/build_pages.py. Do not edit by hand.
|
|
// Registers the data-driven growth pages so og_middleware serves them (not 404) with the
|
|
// right title/description and an OG card pointed at the finding's map view.
|
|
|
|
pub struct DataPage {
|
|
pub path: &'static str,
|
|
pub title: &'static str,
|
|
pub description: &'static str,
|
|
/// Map query string the OG screenshot should frame (empty = default map).
|
|
pub screenshot_query: &'static str,
|
|
}
|
|
|
|
pub static DATA_PAGES: &[DataPage] = &[
|
|
DataPage { path: "/cheaper-twin/br3-3-vs-cr0-7", title: "Beckenham vs Croydon: the same terraced house, about 31% cheaper per m²", description: "£201,870 less for an equivalent terraced house: same station, similar schools, ~2.02km apart", screenshot_query: "lat=51.38969&lon=-0.04244&zoom=12.5&filter=Est.%20price%20per%20sqm:0:5200&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/ha7-2-vs-ha3-0", title: "Stanmore vs Kenton: the same semi-detached house, about 17% cheaper per m²", description: "£106,920 less for an equivalent semi-detached house: same station, similar schools, ~2.57km apart", screenshot_query: "lat=51.59199&lon=-0.3079&zoom=12.5&filter=Est.%20price%20per%20sqm:0:5900&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/ig8-7-vs-ig6-2", title: "Woodford Green vs Barkingside: the same terraced house, about 26% cheaper per m²", description: "£164,070 less for an equivalent terraced house: same station, similar schools, ~2.98km apart", screenshot_query: "lat=51.60238&lon=0.06063&zoom=12.5&filter=Est.%20price%20per%20sqm:0:5600&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/l16-7-vs-l14-6", title: "Childwall vs Broadgreen: the same semi-detached house, about 30% cheaper per m²", description: "£106,740 less for an equivalent semi-detached house: same station, similar schools, ~1.88km apart", screenshot_query: "lat=53.40344&lon=-2.88529&zoom=12.5&filter=Est.%20price%20per%20sqm:0:3000&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/m40-5-vs-m9-4", title: "Newton Heath vs Harpurhey: the same terraced house, about 42% cheaper per m²", description: "£106,740 less for an equivalent terraced house: same station, similar schools, ~1.18km apart", screenshot_query: "lat=53.51293&lon=-2.19574&zoom=12.5&filter=Est.%20price%20per%20sqm:0:1700&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/rm14-2-vs-rm12-5", title: "Upminster vs Hornchurch: the same semi-detached house, about 20% cheaper per m²", description: "£115,290 less for an equivalent semi-detached house: same station, similar schools, ~2.99km apart", screenshot_query: "lat=51.54892&lon=0.22193&zoom=12.5&filter=Est.%20price%20per%20sqm:0:5300&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/se28-8-vs-da18-4", title: "SE28 8 vs DA18 4: the same terraced house, about 30% cheaper per m²", description: "£129,690 less for an equivalent terraced house: same station, similar schools, ~1.72km apart", screenshot_query: "lat=51.50039&lon=0.12568&zoom=12.5&filter=Est.%20price%20per%20sqm:0:3600&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/sw1x-8-vs-sw7-2", title: "SW1X 8 vs SW7 2: the same flat, about 42% cheaper per m²", description: "£1,001,160 less for an equivalent flat: same station, similar schools, ~1.31km apart", screenshot_query: "lat=51.49758&lon=-0.16439&zoom=12.5&filter=Est.%20price%20per%20sqm:0:16400&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/tw12-3-vs-kt8-1", title: "Hampton vs East Molesey: the same terraced house, about 19% cheaper per m²", description: "£120,060 less for an equivalent terraced house: same station, similar schools, ~2.23km apart", screenshot_query: "lat=51.41616&lon=-0.37365&zoom=12.5&filter=Est.%20price%20per%20sqm:0:6000&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/tw2-7-vs-tw3-2", title: "Twickenham vs Hounslow: the same semi-detached house, about 19% cheaper per m²", description: "£121,590 less for an equivalent semi-detached house: same station, similar schools, ~1.0km apart", screenshot_query: "lat=51.45678&lon=-0.35702&zoom=12.5&filter=Est.%20price%20per%20sqm:0:5900&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/w1j-7-vs-sw7-3", title: "W1J 7 vs SW7 3: the same flat, about 41% cheaper per m²", description: "£1,223,460 less for an equivalent flat: same station, similar schools, ~2.6km apart", screenshot_query: "lat=51.49856&lon=-0.16253&zoom=12.5&filter=Est.%20price%20per%20sqm:0:20400&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/w1j-8-vs-sw1a-2", title: "W1J 8 vs SW1A 2: the same flat, about 37% cheaper per m²", description: "£916,380 less for an equivalent flat: same station, similar schools, ~1.31km apart", screenshot_query: "lat=51.50663&lon=-0.13494&zoom=12.5&filter=Est.%20price%20per%20sqm:0:17900&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/w1k-2-vs-sw1x-0", title: "W1K 2 vs SW1X 0: the same flat, about 32% cheaper per m²", description: "£978,570 less for an equivalent flat: same station, similar schools, ~1.62km apart", screenshot_query: "lat=51.50311&lon=-0.15673&zoom=12.5&filter=Est.%20price%20per%20sqm:0:24700&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/w1u-4-vs-nw1-4", title: "Marylebone vs Camden: the same flat, about 43% cheaper per m²", description: "£942,480 less for an equivalent flat: same station, similar schools, ~0.97km apart", screenshot_query: "lat=51.5238&lon=-0.15091&zoom=12.5&filter=Est.%20price%20per%20sqm:0:14500&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/cheaper-twin/wc2a-2-vs-ec2a-2", title: "WC2A 2 vs EC2A 2: the same flat, about 43% cheaper per m²", description: "£981,540 less for an equivalent flat: same station, similar schools, ~2.3km apart", screenshot_query: "lat=51.51807&lon=-0.09837&zoom=12.5&filter=Est.%20price%20per%20sqm:0:15300&filter=Good%2B%20secondary%20school%20catchments:1:11" },
|
|
DataPage { path: "/square-metres-per-100k", title: "How many square metres £100,000 buys across England", description: "£100k buys ~152 m² of floor space in BD21 3 but only ~3 m² in Mayfair (W1K 2)", screenshot_query: "zoom=6&filter=Est.%20price%20per%20sqm:0:4000" },
|
|
DataPage { path: "/cheaper-twins", title: "Cheaper twin postcodes in England", description: "Neighbouring England postcodes priced apart for the name, not the home.", screenshot_query: "" },
|
|
];
|
|
|
|
/// Look up a generated data page by request path (already trailing-slash-trimmed).
|
|
pub fn data_page(path: &str) -> Option<&'static DataPage> {
|
|
DATA_PAGES.iter().find(|p| p.path == path)
|
|
}
|