Compare commits
43 Commits
v202603072
...
v202603101
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
301f3b76c3 | ||
|
|
018eacb0f3 | ||
|
|
abacaac3f5 | ||
|
|
241e0de78e | ||
|
|
fc21c25c82 | ||
|
|
bd7fa1ae9a | ||
|
|
511a0ebac7 | ||
|
|
97ba13c42a | ||
|
|
1bd5bae90d | ||
|
|
608f16f578 | ||
|
|
927f77ae5e | ||
|
|
adf6f0c1ef | ||
|
|
9dc705970e | ||
|
|
9c5bed01f5 | ||
|
|
3ce97cd41b | ||
|
|
ff6401254a | ||
|
|
487722c2f3 | ||
|
|
23c7570736 | ||
|
|
e39dd4ec0b | ||
|
|
cce3c466ba | ||
|
|
00d2e37934 | ||
|
|
8e0dd6af63 | ||
|
|
eff50aef7d | ||
|
|
5d0e52ade7 | ||
|
|
cd95ff7b6c | ||
|
|
6d44c116aa | ||
|
|
bda2f85fd6 | ||
|
|
a47dfd5535 | ||
|
|
116a4272f1 | ||
|
|
8ced3a986e | ||
|
|
291fb2abd9 | ||
|
|
bfb0178615 | ||
|
|
40d8c75b81 | ||
|
|
d7bd053dc6 | ||
|
|
d379dc7551 | ||
|
|
814e8290a2 | ||
|
|
67fbfde53d | ||
|
|
bf811444ba | ||
|
|
3c135051fd | ||
|
|
c3847bb617 | ||
|
|
fcef47cb22 | ||
|
|
118c2c0fc7 | ||
|
|
cd6d950233 |
@@ -74,12 +74,13 @@ GSC_SERVICE_ACCOUNT_PATH=
|
||||
GSC_SITE_URL=
|
||||
BING_WEBMASTER_API_KEY=
|
||||
BING_SITE_URL=
|
||||
CLARITY_PROJECT_ID=ENC[AES256_GCM,data:PQ==,iv:GqQLR3UERBEGtqpZXAkZ8ETyVdj7+pk4YwuBPVxcjyE=,tag:1uuH2Gw3zE78Pugy6i6eDg==,type:str]
|
||||
#ENC[AES256_GCM,data:ECsuDMQipS6YmFpSm1vqCsR2fUW2zN1Mg9VcUlw0roM=,iv:j+F6Akx2bklGMkFTux230YcZjMibA+Qp+qvgkGXl4Jw=,tag:7aO0wbmP/qB73wLgtiSJ2w==,type:comment]
|
||||
GEONAMES_USERNAME=ENC[AES256_GCM,data:aSkVdLNrhiF6tlg=,iv:eemFGwDIv3EG/P3lVHGZj96MieIsr85e4xYmEIpZyfM=,tag:McpZMNOIO3FDkSebae2gOQ==,type:str]
|
||||
CENSUS_API_KEY=ENC[AES256_GCM,data:qqG971573aGq9MiHI2xLlanKKFwjfcNNoMXtm8LNbyh0rMbQN2XukQ==,iv:az2i0ldH75nHGah4DeOxaXmDbVYqmC1c77ptZqFA9BI=,tag:zoDdKj9bR7fgIDo1/dEU2g==,type:str]
|
||||
sops_age__list_0__map_enc=-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBxNWNmUzVNUGdWRnE0ZFpF\nM0JQZWZ3UDdEVzlwTmIxakxOZXBkT2x2ZlNrClRtV2M3S2daSGxUZmFDSWQ2Nmh4\neU51QndFcUxlSE00RFovOVJTcDZmUUUKLS0tIDcvL3hRMDRoMWZZSXljNzA3WG5o\nMWFic21MV0krMzlIaldBTVU0ZDdlTE0K7euGQtA+9lHNws+x7TMCArZamm9att96\nL8cXoUDWe5fNI5+M1bXReqVfNwPTwZsV6j/+ZtYKybklIzWz02Ex4A==\n-----END AGE ENCRYPTED FILE-----\n
|
||||
sops_age__list_0__map_recipient=age1f5002gj4s78jju45jd28kuejtcfhn5cdujz885fl7z2p9ym68pnsgky87a
|
||||
sops_lastmodified=2026-03-03T15:16:35Z
|
||||
sops_mac=ENC[AES256_GCM,data:T0qph3KPd68Lo4hxd6ECP+wv87uwRFsAFZwnVyf/MXvuG7raraUW02RLox0xklVcKBJXk+9jM7ycQ1nuk95UIuu7uRU88g11RaAm67XaOsafgwDMrC17AjIlg0Vf0w64WAJBrQLaXhJlh/Gz45bXlz82F+XVnTW8fGCpHRZooMY=,iv:cDgMZX6FRVe9JqQXLN6OhO06Ysfg2AKP2hG0B/GeajU=,tag:vHavf9Hw2xqJrqM3vVUTjA==,type:str]
|
||||
sops_lastmodified=2026-03-10T15:07:09Z
|
||||
sops_mac=ENC[AES256_GCM,data:mYPhIGSZIN+nqFEQE5VmLGaoTOvxFQ7fXvOHWcYtjr+AL/Zmnt81bo8Icgja5IMQPplSWoBo4J/7N08kSHATuBDuvCxNrsJaqTzCriTwfXq0WFa5yvoce/Sd29JEDAN505L+mR1PovhfIPndTR/E1bLvcyTz2NuAq5VGSg6KcUU=,iv:6mrSOWqIOItVt7Dp6jNecvzLjaTw/qQMr5b28I/bZWU=,tag:bT6Zi0Mb5Ci0CZBqr9iB3g==,type:str]
|
||||
sops_unencrypted_suffix=_unencrypted
|
||||
sops_version=3.12.1
|
||||
|
||||
@@ -50,6 +50,8 @@ GSC_SERVICE_ACCOUNT_PATH=ENC[AES256_GCM,data:Vki6yHk+gd4n,iv:rxzKvwrGnAkLcpS41EZ
|
||||
GSC_SITE_URL=ENC[AES256_GCM,data:K0i1xRym+laMP6kgOMEfUyoAn2eNgQ==,iv:kyb+grzFq1e5CG/0NJRO3LkSXexOuCK07uJYApAdWsA=,tag:faljHqYjGTgrR/Zbh27/Yw==,type:str]
|
||||
BING_WEBMASTER_API_KEY=ENC[AES256_GCM,data:kSQxJOpsYCuJ,iv:Kc4jJpOd64PATeBjidNHTwBr/bNnCeqsTrUqAAYM5Vs=,tag:4jBxqgpyomzMLwiC9XpfVQ==,type:str]
|
||||
BING_SITE_URL=ENC[AES256_GCM,data:M33VI97DyxH8gRR3ZUXoXg4QrEv5og==,iv:GxZtwfbBVihUbp6XNQKzAalhO1GfQF1l1j1MeEIBCFQ=,tag:9njlBp4v684PeFl3HebyIg==,type:str]
|
||||
INDEXNOW_KEY=ENC[AES256_GCM,data:3AJnmPOQJoKw525QR7jx6QBzV9kznUsWqHRmQjv1cU8=,iv:4XRmcPKrFE8S3GzsfNbxUdaUNaKc6z9T+ihUUwjZ8Y0=,tag:wERrhY9whJ9yTEgt8ewaMQ==,type:str]
|
||||
CLARITY_PROJECT_ID=ENC[AES256_GCM,data:mLQ4vvtDFpZOpCg=,iv:S58K5Qf32EFlAuh8xkjo603wVpCOhNodZLJ4ZyaGF6c=,tag:LUQor6rIRc7unYCyytSgSg==,type:str]
|
||||
#ENC[AES256_GCM,data:OTUMKNkRW0zrupNppXthwE1oieILhNjM+cjx5hFn69g=,iv:48ID2qtSe9ggD2X+G/iUqp3v2uwEc7fZw8lxHIvVXmk=,tag:okBn0Npk1K9dDOFWA/AB1A==,type:comment]
|
||||
GEONAMES_USERNAME=ENC[AES256_GCM,data:UXd/S2TzXPiGmLY=,iv:OMURM5E6SFEsaqroUlH76DEnr7C/ujNk9UQnbWT0hK4=,tag:VsjjS12QDbudiEhdAQ/OCQ==,type:str]
|
||||
CENSUS_API_KEY=ENC[AES256_GCM,data:9RbKlxSD17LqIuuNXaOKSgZ8LnFh9Wbze3XHgpctfV/1TqBMZTIedQ==,iv:WwsmR3HLUEcgUpLliGRaUPhGM9vFNPMGXSAQQ6+9UVc=,tag:R4EMNy5MxxvK0UTaCL0umA==,type:str]
|
||||
@@ -64,7 +66,7 @@ sops_age__list_1__map_enc=-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb2
|
||||
sops_age__list_1__map_recipient=age1wjepykv3glvsrtegu25tevg7vyn3ngpl607u3yjc9ucay04s045s796msw
|
||||
sops_age__list_2__map_enc=-----BEGIN AGE ENCRYPTED FILE-----\nYWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBFeHhaOURNZnRVMEwxNThu\nUjF4Q0kwUXhTUE1QSzZJbmpubnh3RnpQTmdvCjRmWWxpNkxFUmVGb3NRbnlydW5O\nWEg3ZXJQTU4vcndzS2pUQXY3Q0ttYjAKLS0tIE9IRFJ1c2ZxbGVHa2xTL0swbGN1\nTzgwMThPUDRFTWhuZHJjZUYxOTZrU00KY62qrNBCUQYxwcLMXFEnLkwncxq3BPJB\nKm4NzeHBU87XmPWVrgrKuf+PH1mxJlBsl7Hev8xBTy7l6feiZjLIvQ==\n-----END AGE ENCRYPTED FILE-----\n
|
||||
sops_age__list_2__map_recipient=age1c783ym2q5x9tv7py5d28uc4k44aguudjn03g97l9nzs00dd9tsrqum8h4d
|
||||
sops_lastmodified=2026-03-05T15:55:19Z
|
||||
sops_mac=ENC[AES256_GCM,data:orLypjurBTYmk3um0bDQV3wFxj1pjCsjOf2D+AZyoIYY88MeY8BjK8mg8BWhmJYlGWqHH1FCpoJS+2SECv2Bvgejqvx/C/HSysA8et5CArM/p/MBbcupLAKOD8bTXorKMRDYPkWpK/snkPToxIZZd7dNj/zSU+OhRp5qLGCHkvM=,iv:eBn93z4DSk8UPHgP/Jf/Kz+3KwoKIQ9Et72pbLFcLP8=,tag:79kzPIKp0rtHGhH1CkXqwg==,type:str]
|
||||
sops_lastmodified=2026-03-10T15:05:54Z
|
||||
sops_mac=ENC[AES256_GCM,data:85sRBn6/gjXZFgyZlFk2RyMQGYK/e6rVC879F7/APj0xeguY5q4ui4OaE7OpO+joRMoLbE+rCWjYEyTeToTTdCNJ30yLiwlTrKR+tnmegJ/8wUAdyJtI8KO6XxKZpAesbiKl+o4F38iBZMhuZ6iybQx1RGF8SzQRu+E3fUEIiKk=,iv:/uW53lMRNNk/a/bzPvWqwDzP0un5/1muBDvDLSRet58=,tag:56LC972g6HSipvwxfSepJg==,type:str]
|
||||
sops_unencrypted_suffix=_unencrypted
|
||||
sops_version=3.12.1
|
||||
|
||||
34
CHANGELOG.md
34
CHANGELOG.md
@@ -6,7 +6,41 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
### Added
|
||||
- **Microsoft Clarity integration** — consent-gated heatmaps and session recordings (project ID via `CLARITY_PROJECT_ID` env var). Script only loads when the user has accepted functional cookies; bootstraps immediately on consent without requiring a reload. Privacy policy (EN + DE) updated with Clarity disclosure: data collection, sub-processor, cookies (`_clck`, `_clsk`), and international transfers.
|
||||
- **IndexNow integration** — push-notify Bing, Yandex, Seznam, and Naver when articles are published/unpublished/edited or suppliers are created. Bulk operations batch all URLs into a single request. Skips silently in dev (no key configured). Serves key verification file at `/{key}.txt`.
|
||||
|
||||
### Fixed
|
||||
- **SEO audit fixes** — sitemap: replaced `/market-score` with `/padelnomics-score`, added `/opportunity-map`, removed `/billing/pricing` (blocked by robots.txt), deduplicated articles query (was producing 4 entries per article instead of 2). Fixed `/market-score` redirect chain (1 hop instead of 2). Moved default OG tags inside `{% block head %}` so child templates replace rather than duplicate them. Added JSON-LD WebPage + BreadcrumbList schema to features, planner, and directory pages. Added meta descriptions to export pages.
|
||||
|
||||
### Changed
|
||||
- **Opportunity Score v7 → v8** — better spread and discrimination across the full 0-100 range. Addressable market weight reduced (20→15 pts) with steeper sqrt curve (ceiling 1M, was LN/500K). Economic power reduced (15→10 pts). Supply deficit increased (40→50 pts) with market existence dampener: countries with zero padel venues get max 5 pts supply deficit (factor 0.1), scaling linearly to full credit at 50+ venues. NULL nearest-court distance now treated as 0 (assume nearby) instead of 0.5. Added `country_percentile` output column (PERCENT_RANK within country). Target: P5-P95 spread ≥40 pts (was 22), zero-venue countries avg <30.
|
||||
- **Opportunity Score v6 → v7 (calibration fix)** — two fixes for inflated scores in saturated markets. (1) `dim_locations` now sources venue coordinates from `dim_venues` (deduplicated OSM + Playtomic) instead of `stg_padel_courts` (OSM only), making Playtomic-only venues visible to spatial lookups. (2) Country-level supply saturation dampener on the 40-pt supply deficit component: saturated countries (Spain ~4.5/100k) get dampened supply deficit (×0.55 → 22 pts max), emerging markets (Germany ~0.7/100k) are nearly unaffected (×0.93 → ~37 pts).
|
||||
- **Single-score simplification** — consolidated two public-facing scores (Market Score + Opportunity Score) into one **Padelnomics Score** (internally: `opportunity_score`). All maps, tooltips, article templates, and the methodology page now show a single score. Dual-ring markers reverted to single-color markers. `/market-score` route renamed to `/padelnomics-score` (old URL 301-redirects). All `mscore_*` i18n keys replaced with `pnscore_*`. Business plan queries `opportunity_score` from `location_profiles` (replaces legacy `city_market_overview` view). Map tooltip strings now i18n'd via `window.__MAP_T` (12 keys, EN + DE).
|
||||
|
||||
### Fixed
|
||||
- **Non-Latin city names on map** — GeoNames entries with CJK/Cyrillic/Arabic characters (e.g. "Seelow" showing Japanese) now filtered in `stg_population_geonames` via Latin-only regex.
|
||||
- **GeoNames regex DuckDB compatibility** — replaced Python-style `\u00C0` Unicode escapes in `stg_population_geonames` regex with literal Unicode characters (`À-ɏḀ-ỿ`) for DuckDB compatibility.
|
||||
- **Score range safety** — `location_profiles` clamps both scores to 0-100 via `LEAST/GREATEST`.
|
||||
- **Pipeline cast fix** — `venue_pricing_benchmarks.sql` defensively casts `snapshot_date` VARCHAR to DATE.
|
||||
|
||||
### Changed
|
||||
- **Dual-ring map markers** — map markers now encode two scores visually: inner core = primary score, outer ring = secondary score. Markets hub and country overview show Market Score (core) + Opportunity Score (ring). Opportunity map shows Opportunity Score (core) + Market Score (ring). City venue maps unchanged (navy dots). Color scale upgraded from 3-tier (green/amber/red) to 5-tier (deep green ≥80, teal ≥60, amber ≥40, orange-red ≥20, red <20) with distinct luminance at each tier for colorblind safety. Markers < 18px fall back to single-layer (no ring). Muted markers (cities without articles) show dashed ring outline. Highlighted markers (user's geo city) get blue outer glow. Opportunity map markers with score ≥75 pulse gently to highlight top investment targets. Tooltip lines now have inline color dots matching marker layers. All map scripts share a single `map-markers.js` module (`PNMarkers.scoreColor` + `PNMarkers.makeIcon`), replacing 3 duplicated implementations.
|
||||
|
||||
### Added
|
||||
- **Geo headers on city/region hubs** — Cloudflare geo headers (`CF-IPCountry`, `CF-IPCity`) now used across location-based pages. Opportunity map pre-selects and auto-loads the user's country. Country overview maps highlight the user's city with a blue ring (best-effort CF-IPCity name match). `window.__GEO` JS global injected via `base.html` for client-side map code.
|
||||
|
||||
### Fixed
|
||||
- **Opportunity map color scale** — low-score bubbles used blue (`#3B82F6`) instead of red (`#DC2626`), inconsistent with the unified `scoreColor()` scale used everywhere else. Fixed in `oppColor()`, legend, and `article-maps.js` tooltip colors. Thresholds aligned to ≥60/30/\<30.
|
||||
|
||||
### Changed
|
||||
- **Opportunity Score v5 → v6** — calibrates for saturated markets (Spain avg dropped from ~78 to ~50-60 range). Density ceiling lowered from 8 → 5/100k (Spain at 6-16/100k now hits zero-gap). Supply deficit weight increased from 35 → 40 pts. Addressable market reduced from 25 → 20 pts. Market validation inverted → "market headroom": high country avg maturity now reduces opportunity (saturated market = less room for new entrants).
|
||||
- **Markets page map legend** — bubble map now has a visual legend explaining size = venue count, color = Market Score. Opportunity score tooltip color unified to same green/amber/red scale (was using blue for low scores, inconsistent).
|
||||
- **Geo-localized article sorting** — `/markets` page sorts articles by user proximity using Cloudflare CF-IPCountry header. User's country first, nearby countries second (DACH, Iberia, Nordics, etc.), rest by published_at. Map bubbles re-ordered so user's country renders on top. Falls back to chronological order when header is absent (local dev).
|
||||
- **Score v6: Global economic data** — `dim_countries.median_income_pps` and `pli_construction` now cover all target markets, not just EU. World Bank WDI indicators (GNI per capita PPP + price level ratio) fill gaps for non-EU countries (AR, MX, AE, AU, etc.) with values calibrated to the Eurostat scale using Germany as anchor. EU countries keep exact Eurostat values. New extractor (`worldbank.py`), staging model (`stg_worldbank_income`), and `dim_countries` fallback CTEs. No changes to scoring formulas — the fix is upstream in the data layer.
|
||||
- **Market Score v3 → v4** — fixes Spain averaging 54 (should be 65-80). Four calibration changes: count gate threshold lowered from 5 → 3 venues (3 establishes a market pattern), density ceiling lowered from LN(21) → LN(11) (10/100k is reachable for mature markets), demand evidence fallback raised from 0.4 → 0.65 multiplier with 0.3 floor (existence of venues IS evidence of demand), economic context ceiling changed from income/200 → income/25000 (actual discrimination instead of free 10 pts for everyone).
|
||||
- **Opportunity Score v4 → v5** — fixes structural flaws: supply gap (30pts) + catchment gap (15pts) merged into single supply deficit (35pts, GREATEST of density gap and distance gap) eliminating ~80% correlated double-count. New sports culture signal (10pts) using tennis court density as racquet-sport adoption proxy. New construction affordability signal (5pts) using income relative to PLI construction costs from `dim_countries`. Economic power reduced from 20 → 15pts. New dependency on `foundation.dim_countries` for `pli_construction`.
|
||||
|
||||
- **Unified `location_profiles` serving model** — merged `city_market_profile` and `location_opportunity_profile` into a single `serving.location_profiles` table at `(country_code, geoname_id)` grain. Both Marktreife-Score (Market Score) and Marktpotenzial-Score (Opportunity Score) are now computed per location. City data enriched via LEFT JOIN `dim_cities` on `geoname_id`. Downstream models (`planner_defaults`, `pseo_city_costs_de`, `pseo_city_pricing`) updated to query `location_profiles` directly. `city_padel_venue_count` (exact from dim_cities) distinguished from `padel_venue_count` (spatial 5km from dim_locations).
|
||||
- **Both scores on all map tooltips** — country map shows avg Market Score + avg Opportunity Score; city map shows Market Score + Opportunity Score per city; opportunity map shows Opportunity Score + Market Score per location. All score labels use the trademarked "Padelnomics Market Score" / "Padelnomics Opportunity Score" names.
|
||||
- **API endpoints** — `/api/markets/countries.json` adds `avg_opportunity_score`; `/api/markets/<country>/cities.json` adds `opportunity_score`; `/api/opportunity/<country>.json` adds `market_score`.
|
||||
|
||||
@@ -159,6 +159,7 @@
|
||||
- [x] Feedback widget (HTMX POST, rate-limited)
|
||||
- [x] Interactive ROI calculator widget on landing page (JS sliders, no server call)
|
||||
- [x] **CRO overhaul — homepage + supplier landing pages** — JTBD-driven copy rewrite (feature → outcome framing), proof strip, struggling-moments sections, "Why Padelnomics" comparison, rewritten FAQ, conditional supplier stats, data-backed proof points, tier-specific CTAs (EN + DE)
|
||||
- [x] **Single-score simplification** — consolidated Market Score + Opportunity Score into one public "Padelnomics Score" (`opportunity_score`). Single-color map markers, unified methodology page at `/padelnomics-score`, i18n'd map tooltips, updated pSEO templates + business plan. Non-Latin city name filter in pipeline.
|
||||
|
||||
---
|
||||
|
||||
@@ -180,12 +181,12 @@
|
||||
| Submit sitemap to Google Search Console | Set up Google Search Console + Bing Webmaster Tools (SEO hub ready — just add env vars) |
|
||||
| Verify Litestream R2 backup running on prod | |
|
||||
|
||||
### Gemeinde-level pSEO (follow-up from dual score work)
|
||||
### Gemeinde-level pSEO (follow-up from single-score simplification)
|
||||
|
||||
| 🛠 Tech |
|
||||
|--------|
|
||||
| Gemeinde-level pSEO article template — consumes `location_opportunity_profile` data, targets "Padel in [Ort]" + "Padel bauen in [Ort]" queries (zero SERP competition confirmed) |
|
||||
| "Top 50 underserved locations" ranking page — high-value SEO content, fully programmatic from `location_opportunity_profile` ORDER BY opportunity_score DESC |
|
||||
| Gemeinde-level pSEO article template — consumes `location_profiles` data, targets "Padel in [Ort]" + "Padel bauen in [Ort]" queries (zero SERP competition confirmed) |
|
||||
| "Top 50 underserved locations" ranking page — high-value SEO content, fully programmatic from `location_profiles` ORDER BY opportunity_score DESC |
|
||||
|
||||
### Week 1–2 — First Revenue
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ extract-census-usa-income = "padelnomics_extract.census_usa_income:main"
|
||||
extract-ons-uk = "padelnomics_extract.ons_uk:main"
|
||||
extract-geonames = "padelnomics_extract.geonames:main"
|
||||
extract-gisco = "padelnomics_extract.gisco:main"
|
||||
extract-worldbank = "padelnomics_extract.worldbank:main"
|
||||
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
|
||||
@@ -7,7 +7,7 @@ A graphlib.TopologicalSorter schedules them: tasks with no unmet dependencies
|
||||
run immediately in parallel; each completion may unlock new tasks.
|
||||
|
||||
Current dependency graph:
|
||||
- All 9 non-availability extractors have no dependencies (run in parallel)
|
||||
- All 10 non-availability extractors have no dependencies (run in parallel)
|
||||
- playtomic_availability depends on playtomic_tenants (starts as soon as
|
||||
tenants finishes, even if other extractors are still running)
|
||||
"""
|
||||
@@ -38,6 +38,8 @@ from .playtomic_availability import EXTRACTOR_NAME as AVAILABILITY_NAME
|
||||
from .playtomic_availability import extract as extract_availability
|
||||
from .playtomic_tenants import EXTRACTOR_NAME as TENANTS_NAME
|
||||
from .playtomic_tenants import extract as extract_tenants
|
||||
from .worldbank import EXTRACTOR_NAME as WORLDBANK_NAME
|
||||
from .worldbank import extract as extract_worldbank
|
||||
|
||||
logger = setup_logging("padelnomics.extract")
|
||||
|
||||
@@ -54,6 +56,7 @@ EXTRACTORS: dict[str, tuple] = {
|
||||
GEONAMES_NAME: (extract_geonames, []),
|
||||
GISCO_NAME: (extract_gisco, []),
|
||||
TENANTS_NAME: (extract_tenants, []),
|
||||
WORLDBANK_NAME: (extract_worldbank, []),
|
||||
AVAILABILITY_NAME: (extract_availability, [TENANTS_NAME]),
|
||||
}
|
||||
|
||||
|
||||
153
extract/padelnomics_extract/src/padelnomics_extract/worldbank.py
Normal file
153
extract/padelnomics_extract/src/padelnomics_extract/worldbank.py
Normal file
@@ -0,0 +1,153 @@
|
||||
"""World Bank WDI extractor — GNI per capita PPP and price level ratio.
|
||||
|
||||
Fetches two indicators (one API call each, no key required):
|
||||
- NY.GNP.PCAP.PP.CD — GNI per capita, PPP (international $)
|
||||
- PA.NUS.PPPC.RF — Price level ratio (PPP conversion factor / exchange rate)
|
||||
|
||||
These provide global fallbacks behind Eurostat for dim_countries.median_income_pps
|
||||
and dim_countries.pli_construction (see dim_countries.sql for calibration logic).
|
||||
|
||||
API: World Bank API v2 — https://api.worldbank.org/v2/
|
||||
No API key required. No env vars.
|
||||
|
||||
Landing: {LANDING_DIR}/worldbank/{year}/{month}/wdi_indicators.json.gz
|
||||
Output: {"rows": [{"country_code": "DE", "indicator": "NY.GNP.PCAP.PP.CD",
|
||||
"ref_year": 2023, "value": 74200.0}, ...], "count": N}
|
||||
"""
|
||||
|
||||
import json
|
||||
import sqlite3
|
||||
from pathlib import Path
|
||||
|
||||
import niquests
|
||||
|
||||
from ._shared import HTTP_TIMEOUT_SECONDS, run_extractor, setup_logging
|
||||
from .utils import get_last_cursor, landing_path, write_gzip_atomic
|
||||
|
||||
logger = setup_logging("padelnomics.extract.worldbank")
|
||||
|
||||
EXTRACTOR_NAME = "worldbank"
|
||||
|
||||
INDICATORS = ["NY.GNP.PCAP.PP.CD", "PA.NUS.PPPC.RF"]
|
||||
# 6 years of data — we take the latest non-null per country in staging
|
||||
DATE_RANGE = "2019:2025"
|
||||
MAX_PER_PAGE = 5000
|
||||
MAX_PAGES = 3
|
||||
|
||||
WDI_BASE_URL = "https://api.worldbank.org/v2/country/all/indicator"
|
||||
|
||||
# WB aggregate codes that look like real 2-letter country codes.
|
||||
# These are regional/income-group aggregates, not actual countries.
|
||||
_WB_AGGREGATE_CODES = frozenset({
|
||||
"EU", "OE",
|
||||
"XC", "XD", "XE", "XF", "XG", "XH", "XI", "XJ", "XL", "XM",
|
||||
"XN", "XO", "XP", "XQ", "XR", "XS", "XT", "XU", "XV", "XY",
|
||||
"ZF", "ZG", "ZH", "ZI", "ZJ", "ZQ", "ZT",
|
||||
"V1", "V2", "V3", "V4",
|
||||
})
|
||||
|
||||
|
||||
def _normalize_country_code(wb_code: str) -> str | None:
|
||||
"""Normalize WB country code to ISO alpha-2. Returns None for aggregates."""
|
||||
code = wb_code.strip().upper()
|
||||
if len(code) != 2:
|
||||
return None
|
||||
# Reject codes starting with a digit (e.g. "1W" for World)
|
||||
if code[0].isdigit():
|
||||
return None
|
||||
if code in _WB_AGGREGATE_CODES:
|
||||
return None
|
||||
return code
|
||||
|
||||
|
||||
def _fetch_indicator(
|
||||
session: niquests.Session,
|
||||
indicator: str,
|
||||
) -> list[dict]:
|
||||
"""Fetch all records for one indicator. Returns list of row dicts."""
|
||||
rows: list[dict] = []
|
||||
page = 1
|
||||
|
||||
while page <= MAX_PAGES:
|
||||
url = (
|
||||
f"{WDI_BASE_URL}/{indicator}"
|
||||
f"?format=json&date={DATE_RANGE}&per_page={MAX_PER_PAGE}&page={page}"
|
||||
)
|
||||
logger.info("GET %s page %d", indicator, page)
|
||||
resp = session.get(url, timeout=HTTP_TIMEOUT_SECONDS * 2)
|
||||
resp.raise_for_status()
|
||||
|
||||
data = resp.json()
|
||||
assert isinstance(data, list) and len(data) == 2, (
|
||||
f"unexpected WB response shape for {indicator}: {type(data)}, len={len(data)}"
|
||||
)
|
||||
meta, records = data
|
||||
total_pages = meta.get("pages", 1)
|
||||
|
||||
if records is None:
|
||||
logger.warning("WB returned null data for %s page %d", indicator, page)
|
||||
break
|
||||
|
||||
for record in records:
|
||||
value = record.get("value")
|
||||
if value is None:
|
||||
continue
|
||||
country_code = _normalize_country_code(record["country"]["id"])
|
||||
if country_code is None:
|
||||
continue
|
||||
rows.append({
|
||||
"country_code": country_code,
|
||||
"indicator": indicator,
|
||||
"ref_year": int(record["date"]),
|
||||
"value": float(value),
|
||||
})
|
||||
|
||||
if page >= total_pages:
|
||||
break
|
||||
page += 1
|
||||
|
||||
return rows
|
||||
|
||||
|
||||
def extract(
|
||||
landing_dir: Path,
|
||||
year_month: str,
|
||||
conn: sqlite3.Connection,
|
||||
session: niquests.Session,
|
||||
) -> dict:
|
||||
"""Fetch WDI indicators. Skips if already run this month."""
|
||||
last_cursor = get_last_cursor(conn, EXTRACTOR_NAME)
|
||||
if last_cursor == year_month:
|
||||
logger.info("already have data for %s — skipping", year_month)
|
||||
return {"files_written": 0, "files_skipped": 1, "bytes_written": 0}
|
||||
|
||||
rows: list[dict] = []
|
||||
for indicator in INDICATORS:
|
||||
indicator_rows = _fetch_indicator(session, indicator)
|
||||
logger.info("%s: %d records", indicator, len(indicator_rows))
|
||||
rows.extend(indicator_rows)
|
||||
|
||||
assert len(rows) >= 200, f"expected ≥200 WB records, got {len(rows)} — API may have changed"
|
||||
logger.info("total: %d WDI records", len(rows))
|
||||
|
||||
year, month = year_month.split("/")
|
||||
dest_dir = landing_path(landing_dir, "worldbank", year, month)
|
||||
dest = dest_dir / "wdi_indicators.json.gz"
|
||||
payload = json.dumps({"rows": rows, "count": len(rows)}).encode()
|
||||
bytes_written = write_gzip_atomic(dest, payload)
|
||||
logger.info("written %s bytes compressed", f"{bytes_written:,}")
|
||||
|
||||
return {
|
||||
"files_written": 1,
|
||||
"files_skipped": 0,
|
||||
"bytes_written": bytes_written,
|
||||
"cursor_value": year_month,
|
||||
}
|
||||
|
||||
|
||||
def main() -> None:
|
||||
run_extractor(EXTRACTOR_NAME, extract)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -72,3 +72,8 @@ description = "UK local authority population estimates from ONS"
|
||||
module = "padelnomics_extract.gisco"
|
||||
schedule = "0 0 1 1 *"
|
||||
description = "EU geographic boundaries (NUTS2 polygons) from Eurostat GISCO"
|
||||
|
||||
[worldbank]
|
||||
module = "padelnomics_extract.worldbank"
|
||||
schedule = "monthly"
|
||||
description = "GNI per capita PPP + price level ratio from World Bank WDI"
|
||||
|
||||
124
scripts/prod_query.py
Normal file
124
scripts/prod_query.py
Normal file
@@ -0,0 +1,124 @@
|
||||
"""
|
||||
Run a read-only SQL query against the production DuckDB (analytics or lakehouse).
|
||||
|
||||
Usage:
|
||||
uv run python scripts/prod_query.py "SELECT COUNT(*) FROM serving.location_profiles"
|
||||
uv run python scripts/prod_query.py --db lakehouse "SELECT * FROM foundation.dim_countries LIMIT 5"
|
||||
echo "SELECT 1" | uv run python scripts/prod_query.py --stdin
|
||||
|
||||
The script SSHes to the prod server, runs the query via Python/DuckDB, and prints
|
||||
tab-separated results with a header row. Read-only: DuckDB is opened with read_only=True.
|
||||
|
||||
For lakehouse queries, automatically aliases the catalog as "local" so SQLMesh views work.
|
||||
|
||||
Designed for Claude Code to call without nested shell escaping nightmares.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import base64
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
SSH_HOST = "hetzner_root"
|
||||
SSH_USER = "padelnomics_service"
|
||||
DB_PATHS = {
|
||||
"analytics": "/opt/padelnomics/data/analytics.duckdb",
|
||||
"lakehouse": "/opt/padelnomics/data/lakehouse.duckdb",
|
||||
}
|
||||
MAX_ROWS = 500
|
||||
TIMEOUT_SECONDS = 30
|
||||
|
||||
# Mutation keywords blocked (defense in depth — DB is read_only anyway)
|
||||
BLOCKED_KEYWORDS = {"CREATE", "DROP", "ALTER", "INSERT", "UPDATE", "DELETE", "ATTACH", "COPY", "EXPORT", "INSTALL", "LOAD"}
|
||||
|
||||
# Remote Python script template. Receives SQL as base64 via {b64_sql}.
|
||||
# Uses ATTACH + USE to alias the lakehouse catalog as "local" for SQLMesh view compat.
|
||||
REMOTE_SCRIPT = """\
|
||||
import duckdb, json, sys, base64
|
||||
db_path = "{db_path}"
|
||||
sql = base64.b64decode("{b64_sql}").decode()
|
||||
max_rows = {max_rows}
|
||||
output_json = {output_json}
|
||||
try:
|
||||
if "lakehouse" in db_path:
|
||||
con = duckdb.connect(":memory:")
|
||||
con.execute(f"ATTACH '{db_path}' AS local (READ_ONLY)")
|
||||
con.execute("USE local")
|
||||
else:
|
||||
con = duckdb.connect(db_path, read_only=True)
|
||||
result = con.execute(sql)
|
||||
cols = [d[0] for d in result.description]
|
||||
rows = result.fetchmany(max_rows)
|
||||
if output_json:
|
||||
print(json.dumps({{"columns": cols, "rows": [list(r) for r in rows], "count": len(rows)}}, default=str))
|
||||
else:
|
||||
print("\\t".join(cols))
|
||||
for row in rows:
|
||||
print("\\t".join(str(v) if v is not None else "NULL" for v in row))
|
||||
if len(rows) == max_rows:
|
||||
print(f"... truncated at {{max_rows}} rows", file=sys.stderr)
|
||||
except Exception as e:
|
||||
print(f"ERROR: {{e}}", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
"""
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description="Query prod DuckDB over SSH")
|
||||
parser.add_argument("sql", nargs="?", help="SQL query to run")
|
||||
parser.add_argument("--stdin", action="store_true", help="Read SQL from stdin")
|
||||
parser.add_argument(
|
||||
"--db",
|
||||
choices=list(DB_PATHS.keys()),
|
||||
default="analytics",
|
||||
help="Which database (default: analytics)",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--max-rows", type=int, default=MAX_ROWS, help=f"Max rows (default: {MAX_ROWS})"
|
||||
)
|
||||
parser.add_argument("--json", action="store_true", help="Output JSON instead of TSV")
|
||||
args = parser.parse_args()
|
||||
|
||||
sql = args.sql
|
||||
if args.stdin or sql is None:
|
||||
sql = sys.stdin.read().strip()
|
||||
if not sql:
|
||||
print("ERROR: No SQL provided", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
sql_upper = sql.upper()
|
||||
for kw in BLOCKED_KEYWORDS:
|
||||
if kw in sql_upper:
|
||||
print(f"ERROR: Blocked keyword '{kw}' in query", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
b64_sql = base64.b64encode(sql.encode()).decode()
|
||||
remote_script = REMOTE_SCRIPT.format(
|
||||
db_path=DB_PATHS[args.db],
|
||||
b64_sql=b64_sql,
|
||||
max_rows=args.max_rows,
|
||||
output_json=args.json,
|
||||
)
|
||||
|
||||
cmd = [
|
||||
"ssh", SSH_HOST,
|
||||
f"sudo -u {SSH_USER} bash -lc 'cd /opt/padelnomics && uv run python3 -'",
|
||||
]
|
||||
|
||||
result = subprocess.run(
|
||||
cmd,
|
||||
input=remote_script,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
timeout=TIMEOUT_SECONDS + 10,
|
||||
)
|
||||
|
||||
if result.stdout:
|
||||
print(result.stdout, end="")
|
||||
if result.stderr:
|
||||
print(result.stderr, end="", file=sys.stderr)
|
||||
sys.exit(result.returncode)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -267,48 +267,6 @@ def run_export() -> None:
|
||||
send_alert(f"[export] {err}")
|
||||
|
||||
|
||||
_last_seen_head: str | None = None
|
||||
|
||||
|
||||
def web_code_changed() -> bool:
|
||||
"""True on the first tick after a commit that changed web app code or secrets.
|
||||
|
||||
Compares the current HEAD to the HEAD from the previous tick. On first call
|
||||
after process start (e.g. after os.execv reloads new code), falls back to
|
||||
HEAD~1 so the just-deployed commit is evaluated exactly once.
|
||||
|
||||
Records HEAD before returning so the same commit never triggers twice.
|
||||
"""
|
||||
global _last_seen_head
|
||||
result = subprocess.run(
|
||||
["git", "rev-parse", "HEAD"], capture_output=True, text=True, timeout=10,
|
||||
)
|
||||
if result.returncode != 0:
|
||||
return False
|
||||
current_head = result.stdout.strip()
|
||||
|
||||
if _last_seen_head is None:
|
||||
# Fresh process — use HEAD~1 as base (evaluates the newly deployed tag).
|
||||
base_result = subprocess.run(
|
||||
["git", "rev-parse", "HEAD~1"], capture_output=True, text=True, timeout=10,
|
||||
)
|
||||
base = base_result.stdout.strip() if base_result.returncode == 0 else current_head
|
||||
else:
|
||||
base = _last_seen_head
|
||||
|
||||
_last_seen_head = current_head # advance now — won't fire again for this HEAD
|
||||
|
||||
if base == current_head:
|
||||
return False
|
||||
|
||||
diff = subprocess.run(
|
||||
["git", "diff", "--name-only", base, current_head, "--",
|
||||
"web/", "Dockerfile", ".env.prod.sops"],
|
||||
capture_output=True, text=True, timeout=30,
|
||||
)
|
||||
return bool(diff.stdout.strip())
|
||||
|
||||
|
||||
def current_deployed_tag() -> str | None:
|
||||
"""Return the highest-version tag pointing at HEAD, or None.
|
||||
|
||||
@@ -360,6 +318,15 @@ def git_pull_and_sync() -> None:
|
||||
run_shell("uv sync --all-packages")
|
||||
# Apply any model changes (FULL→INCREMENTAL, new models, etc.) before re-exec
|
||||
run_shell("uv run sqlmesh -p transform/sqlmesh_padelnomics plan prod --auto-apply")
|
||||
# Always redeploy the web app on new tag — blue/green swap is zero-downtime
|
||||
# and Docker layer caching makes no-op builds fast. Previous approach of
|
||||
# diffing HEAD~1 missed changes inside merge commits.
|
||||
logger.info("Deploying web app (blue/green swap)")
|
||||
ok, err = run_shell("./deploy.sh")
|
||||
if ok:
|
||||
send_alert(f"[deploy] {latest} ok")
|
||||
else:
|
||||
send_alert(f"[deploy] {latest} failed: {err}")
|
||||
# Re-exec so the new code is loaded. os.execv replaces this process in-place;
|
||||
# systemd sees it as the same PID and does not restart the unit.
|
||||
logger.info("Deploy complete — re-execing to load new code")
|
||||
@@ -408,14 +375,6 @@ def tick() -> None:
|
||||
# Export serving tables
|
||||
run_export()
|
||||
|
||||
# Deploy web app if code changed
|
||||
if os.getenv("SUPERVISOR_GIT_PULL") and web_code_changed():
|
||||
logger.info("Web code changed — deploying")
|
||||
ok, err = run_shell("./deploy.sh")
|
||||
if ok:
|
||||
send_alert("[deploy] ok")
|
||||
else:
|
||||
send_alert(f"[deploy] failed: {err}")
|
||||
finally:
|
||||
conn.close()
|
||||
|
||||
|
||||
@@ -2,10 +2,14 @@
|
||||
--
|
||||
-- Consolidates data previously duplicated across dim_cities and dim_locations:
|
||||
-- - country_name_en / country_slug (was: ~50-line CASE blocks in both models)
|
||||
-- - median_income_pps (was: country_income CTE in both models)
|
||||
-- - energy prices, labour costs, PLI indices (new — from Eurostat datasets)
|
||||
-- - median_income_pps (Eurostat PPS preferred, World Bank GNI PPP fallback)
|
||||
-- - energy prices, labour costs, PLI indices (Eurostat, WB price level ratio fallback)
|
||||
-- - cost override columns for the financial calculator
|
||||
--
|
||||
-- World Bank fallback: for non-EU countries (AR, MX, AE, AU, etc.), income and PLI
|
||||
-- are derived from WB WDI indicators calibrated to the Eurostat scale using Germany
|
||||
-- as anchor. See de_calibration CTE. EU countries keep exact Eurostat values.
|
||||
--
|
||||
-- Used by: dim_cities, dim_locations, pseo_city_costs_de, planner_defaults.
|
||||
-- Grain: country_code (one row per ISO 3166-1 alpha-2 country code).
|
||||
-- Kind: FULL — small table (~40 rows), full refresh daily.
|
||||
@@ -82,6 +86,26 @@ de_elec AS (
|
||||
de_gas AS (
|
||||
SELECT gas_eur_gj FROM latest_gas WHERE country_code = 'DE'
|
||||
),
|
||||
-- Latest World Bank WDI per country (GNI PPP + price level ratio)
|
||||
latest_wb AS (
|
||||
SELECT country_code, gni_ppp, price_level_ratio, ref_year AS wb_year
|
||||
FROM staging.stg_worldbank_income
|
||||
WHERE gni_ppp IS NOT NULL OR price_level_ratio IS NOT NULL
|
||||
QUALIFY ROW_NUMBER() OVER (PARTITION BY country_code ORDER BY ref_year DESC) = 1
|
||||
),
|
||||
-- Germany calibration anchor: Eurostat PPS + WB GNI PPP + WB price ratio + Eurostat PLI construction.
|
||||
-- Used to scale World Bank values into Eurostat-comparable ranges.
|
||||
-- Single row; if DE is missing from any source, that ratio produces NULL (safe fallthrough).
|
||||
de_calibration AS (
|
||||
SELECT
|
||||
i.median_income_pps AS de_eurostat_pps,
|
||||
wb.gni_ppp AS de_gni_ppp,
|
||||
wb.price_level_ratio AS de_price_level_ratio,
|
||||
p.construction AS de_pli_construction
|
||||
FROM (SELECT median_income_pps FROM latest_income WHERE country_code = 'DE') i
|
||||
CROSS JOIN (SELECT gni_ppp, price_level_ratio FROM latest_wb WHERE country_code = 'DE') wb
|
||||
CROSS JOIN (SELECT construction FROM pli_pivoted WHERE country_code = 'DE') p
|
||||
),
|
||||
-- All distinct country codes from any source
|
||||
all_countries AS (
|
||||
SELECT country_code FROM latest_income
|
||||
@@ -93,6 +117,8 @@ all_countries AS (
|
||||
SELECT country_code FROM latest_labour
|
||||
UNION
|
||||
SELECT country_code FROM pli_pivoted
|
||||
UNION
|
||||
SELECT country_code FROM latest_wb
|
||||
-- Ensure known padel markets appear even if Eurostat doesn't cover them yet
|
||||
UNION ALL
|
||||
SELECT unnest(['DE','ES','GB','FR','IT','PT','AT','CH','NL','BE','SE','NO','DK','FI',
|
||||
@@ -149,15 +175,21 @@ SELECT
|
||||
ELSE ac.country_code
|
||||
END, '[^a-zA-Z0-9]+', '-'
|
||||
)) AS country_slug,
|
||||
-- Income data
|
||||
i.median_income_pps,
|
||||
i.income_year,
|
||||
-- Income: Eurostat PPS preferred, World Bank GNI PPP scaled to PPS as fallback
|
||||
COALESCE(
|
||||
i.median_income_pps,
|
||||
ROUND(wb.gni_ppp * (de_cal.de_eurostat_pps / NULLIF(de_cal.de_gni_ppp, 0)), 0)
|
||||
) AS median_income_pps,
|
||||
COALESCE(i.income_year, wb.wb_year) AS income_year,
|
||||
-- Raw energy and labour data (for reference / future staffed-scenario use)
|
||||
e.electricity_eur_kwh,
|
||||
g.gas_eur_gj,
|
||||
la.labour_cost_eur_hour,
|
||||
-- PLI indices per category (EU27=100)
|
||||
p.construction AS pli_construction,
|
||||
-- PLI construction: Eurostat preferred, World Bank price level ratio scaled to PLI as fallback
|
||||
COALESCE(
|
||||
p.construction,
|
||||
ROUND(wb.price_level_ratio / NULLIF(de_cal.de_price_level_ratio, 0) * de_cal.de_pli_construction, 1)
|
||||
) AS pli_construction,
|
||||
p.housing AS pli_housing,
|
||||
p.services AS pli_services,
|
||||
p.misc AS pli_misc,
|
||||
@@ -278,8 +310,10 @@ LEFT JOIN latest_electricity e ON ac.country_code = e.country_code
|
||||
LEFT JOIN latest_gas g ON ac.country_code = g.country_code
|
||||
LEFT JOIN latest_labour la ON ac.country_code = la.country_code
|
||||
LEFT JOIN pli_pivoted p ON ac.country_code = p.country_code
|
||||
LEFT JOIN latest_wb wb ON ac.country_code = wb.country_code
|
||||
CROSS JOIN de_pli de_p
|
||||
CROSS JOIN de_elec de_e
|
||||
CROSS JOIN de_gas de_g
|
||||
CROSS JOIN de_calibration de_cal
|
||||
-- Enforce grain
|
||||
QUALIFY ROW_NUMBER() OVER (PARTITION BY ac.country_code ORDER BY ac.country_code) = 1
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
-- foundation.dim_countries → country_name_en, country_slug, median_income_pps
|
||||
-- stg_nuts2_boundaries + stg_regional_income → EU NUTS-2/NUTS-1 income (spatial join)
|
||||
-- stg_income_usa → US state-level income (PPS-normalised)
|
||||
-- stg_padel_courts → padel venue count + nearest court distance (km)
|
||||
-- foundation.dim_venues → padel venue count + nearest court distance (km)
|
||||
-- stg_tennis_courts → tennis court count within 25km radius
|
||||
--
|
||||
-- Income resolution cascade:
|
||||
@@ -48,6 +48,7 @@ locations AS (
|
||||
ref_year
|
||||
FROM staging.stg_population_geonames
|
||||
WHERE lat IS NOT NULL AND lon IS NOT NULL
|
||||
AND LENGTH(TRIM(city_name)) > 0
|
||||
),
|
||||
-- ── EU NUTS-2 income via spatial join ──────────────────────────────────────
|
||||
-- Each EU location's (lon, lat) is matched against NUTS-2 boundary polygons.
|
||||
@@ -136,10 +137,12 @@ us_income AS (
|
||||
PARTITION BY m.admin1_code ORDER BY s.ref_year DESC
|
||||
) = 1
|
||||
),
|
||||
-- Padel court lat/lon for distance and density calculations
|
||||
-- Padel venue lat/lon for distance and density calculations.
|
||||
-- Uses dim_venues (deduplicated OSM + Playtomic) instead of stg_padel_courts (OSM only)
|
||||
-- so Playtomic-only venues are visible to spatial lookups.
|
||||
padel_courts AS (
|
||||
SELECT lat, lon, country_code
|
||||
FROM staging.stg_padel_courts
|
||||
FROM foundation.dim_venues
|
||||
WHERE lat IS NOT NULL AND lon IS NOT NULL
|
||||
),
|
||||
-- Nearest padel court distance per location (bbox pre-filter → exact sphere distance)
|
||||
|
||||
@@ -5,30 +5,40 @@
|
||||
--
|
||||
-- Two scores per location:
|
||||
--
|
||||
-- Padelnomics Market Score (Marktreife-Score v3, 0–100):
|
||||
-- Padelnomics Market Score (Marktreife-Score v4, 0–100):
|
||||
-- "How mature/established is this padel market?"
|
||||
-- Only meaningful for locations matched to a dim_cities row (city_slug IS NOT NULL)
|
||||
-- with padel venues. 0 for all other locations.
|
||||
--
|
||||
-- 40 pts supply development — log-scaled density (LN ceiling 20/100k) × count gate
|
||||
-- 25 pts demand evidence — occupancy when available; 40% density proxy otherwise
|
||||
-- v4 changes: lower count gate (5→3), lower density ceiling (LN(21)→LN(11)),
|
||||
-- better demand fallback (0.4→0.65 with 0.3 floor), economic context discrimination (200→25K).
|
||||
--
|
||||
-- 40 pts supply development — log-scaled density (LN ceiling 10/100k) × count gate (3)
|
||||
-- 25 pts demand evidence — occupancy when available; 65% density proxy + 0.3 floor otherwise
|
||||
-- 15 pts addressable market — log-scaled population, ceiling 1M
|
||||
-- 10 pts economic context — income PPS normalised to 200 ceiling
|
||||
-- 10 pts economic context — income PPS normalised to 25,000 ceiling
|
||||
-- 10 pts data quality — completeness discount
|
||||
--
|
||||
-- Padelnomics Opportunity Score (Marktpotenzial-Score v4, 0–100):
|
||||
-- Padelnomics Opportunity Score (Marktpotenzial-Score v8, 0–100):
|
||||
-- "Where should I build a padel court?"
|
||||
-- Computed for ALL locations — zero-court locations score highest on supply gap.
|
||||
-- H3 catchment methodology: addressable market and supply gap use a regional
|
||||
-- Computed for ALL locations — zero-court locations score highest on supply deficit.
|
||||
-- H3 catchment methodology: addressable market and supply deficit use a regional
|
||||
-- H3 catchment (res-5 cell + 6 neighbours, ~24km radius).
|
||||
--
|
||||
-- 25 pts addressable market — log-scaled catchment population, ceiling 500K
|
||||
-- 20 pts economic power — income PPS, normalised to 35,000
|
||||
-- 30 pts supply gap — inverted catchment venue density; 0 courts = full marks
|
||||
-- 15 pts catchment gap — distance to nearest padel court
|
||||
-- 10 pts market validation — country-level avg market maturity (from market_scored CTE).
|
||||
-- Replaces sports culture proxy (v3: tennis data was all zeros).
|
||||
-- ES (~60/100) → ~6 pts, SE (~35/100) → ~3.5 pts, unknown → 5 pts.
|
||||
-- v8 changes: better spread/discrimination.
|
||||
-- - Reweight: addressable market 20→15, economic power 15→10, supply deficit 40→50.
|
||||
-- - Supply deficit existence dampener: country_venues/50 factor (0.1–1.0).
|
||||
-- Zero-venue countries get max 5 pts supply deficit (was 50).
|
||||
-- - Steeper addressable market curve: LN/500K → SQRT/1M.
|
||||
-- - NULL distance gap → 0.0 (was 0.5). Unknown = assume nearby.
|
||||
-- - Added country_percentile output column (PERCENT_RANK within country).
|
||||
--
|
||||
-- 15 pts addressable market — sqrt-scaled catchment population, ceiling 1M
|
||||
-- 10 pts economic power — income PPS, normalised to 35,000
|
||||
-- 50 pts supply deficit — max(density gap, distance gap) × existence dampener
|
||||
-- 10 pts sports culture — tennis court density as racquet-sport adoption proxy
|
||||
-- 5 pts construction affordability — income relative to construction costs (PLI)
|
||||
-- 10 pts market headroom — inverse country-level avg market maturity
|
||||
--
|
||||
-- Consumers query directly with WHERE filters:
|
||||
-- cities API: WHERE country_slug = ? AND city_slug IS NOT NULL
|
||||
@@ -107,7 +117,7 @@ city_match AS (
|
||||
ORDER BY c.padel_venue_count DESC
|
||||
) = 1
|
||||
),
|
||||
-- Pricing / occupancy from Playtomic (via city_slug) + H3 catchment
|
||||
-- Pricing / occupancy from Playtomic (via city_slug) + H3 catchment + country PLI
|
||||
with_pricing AS (
|
||||
SELECT
|
||||
b.*,
|
||||
@@ -120,6 +130,7 @@ with_pricing AS (
|
||||
vpb.median_occupancy_rate,
|
||||
vpb.median_daily_revenue_per_venue,
|
||||
vpb.price_currency,
|
||||
dc.pli_construction,
|
||||
COALESCE(ct.catchment_population, b.population)::BIGINT AS catchment_population,
|
||||
COALESCE(ct.catchment_padel_courts, b.padel_venue_count)::INTEGER AS catchment_padel_courts
|
||||
FROM base b
|
||||
@@ -131,6 +142,8 @@ with_pricing AS (
|
||||
AND cm.city_slug = vpb.city_slug
|
||||
LEFT JOIN catchment ct
|
||||
ON b.geoname_id = ct.geoname_id
|
||||
LEFT JOIN foundation.dim_countries dc
|
||||
ON b.country_code = dc.country_code
|
||||
),
|
||||
-- Step 1: market score only — needed first so we can aggregate country averages.
|
||||
market_scored AS (
|
||||
@@ -146,34 +159,38 @@ market_scored AS (
|
||||
WHEN population > 0 OR COALESCE(city_padel_venue_count, 0) > 0 THEN 0.5
|
||||
ELSE 0.0
|
||||
END AS data_confidence,
|
||||
-- ── Market Score (Marktreife-Score v3) ──────────────────────────────────
|
||||
-- ── Market Score (Marktreife-Score v4) ──────────────────────────────────
|
||||
-- 0 when no city match or no venues (city_padel_venue_count NULL or 0)
|
||||
CASE WHEN COALESCE(city_padel_venue_count, 0) > 0 THEN
|
||||
ROUND(
|
||||
-- Supply development (40 pts)
|
||||
-- density ceiling 10/100k (LN(11)), count gate 3 venues
|
||||
40.0 * LEAST(1.0, LN(
|
||||
COALESCE(
|
||||
CASE WHEN population > 0
|
||||
THEN COALESCE(city_padel_venue_count, 0)::DOUBLE / population * 100000
|
||||
ELSE 0 END
|
||||
, 0) + 1) / LN(21))
|
||||
* LEAST(1.0, COALESCE(city_padel_venue_count, 0) / 5.0)
|
||||
, 0) + 1) / LN(11))
|
||||
* LEAST(1.0, COALESCE(city_padel_venue_count, 0) / 3.0)
|
||||
-- Demand evidence (25 pts)
|
||||
-- with occupancy: scale to 65% target. Without: 65% of supply proxy + 0.3 floor
|
||||
-- (existence of venues IS evidence of demand)
|
||||
+ 25.0 * CASE
|
||||
WHEN median_occupancy_rate IS NOT NULL
|
||||
THEN LEAST(1.0, median_occupancy_rate / 0.65)
|
||||
ELSE 0.4 * LEAST(1.0, LN(
|
||||
ELSE GREATEST(0.3, 0.65 * LEAST(1.0, LN(
|
||||
COALESCE(
|
||||
CASE WHEN population > 0
|
||||
THEN COALESCE(city_padel_venue_count, 0)::DOUBLE / population * 100000
|
||||
ELSE 0 END
|
||||
, 0) + 1) / LN(21))
|
||||
* LEAST(1.0, COALESCE(city_padel_venue_count, 0) / 5.0)
|
||||
, 0) + 1) / LN(11))
|
||||
* LEAST(1.0, COALESCE(city_padel_venue_count, 0) / 3.0))
|
||||
END
|
||||
-- Addressable market (15 pts)
|
||||
+ 15.0 * LEAST(1.0, LN(GREATEST(population, 1)) / LN(1000000))
|
||||
-- Economic context (10 pts)
|
||||
+ 10.0 * LEAST(1.0, COALESCE(median_income_pps, 100) / 200.0)
|
||||
-- ceiling 25,000 PPS discriminates between wealthy and poorer markets
|
||||
+ 10.0 * LEAST(1.0, COALESCE(median_income_pps, 15000) / 25000.0)
|
||||
-- Data quality (10 pts)
|
||||
+ 10.0 * CASE
|
||||
WHEN population > 0 AND COALESCE(city_padel_venue_count, 0) > 0 THEN 1.0
|
||||
@@ -185,9 +202,9 @@ market_scored AS (
|
||||
END AS market_score
|
||||
FROM with_pricing
|
||||
),
|
||||
-- Step 2: country-level avg market maturity — used as market validation signal (10 pts).
|
||||
-- Step 2: country-level avg market maturity — used as market headroom signal (10 pts).
|
||||
-- Filter to market_score > 0 (cities with padel courts only) so zero-court locations
|
||||
-- don't dilute the country signal. ES proven demand → ~60, SE struggling → ~35.
|
||||
-- don't dilute the country signal. Higher avg = more saturated = less headroom.
|
||||
country_market AS (
|
||||
SELECT
|
||||
country_code,
|
||||
@@ -196,31 +213,65 @@ country_market AS (
|
||||
WHERE market_score > 0
|
||||
GROUP BY country_code
|
||||
),
|
||||
-- Step 3: add opportunity_score using country market validation signal.
|
||||
-- Step 3: country-level supply saturation — venues per 100K at the country level.
|
||||
-- Used to dampen supply deficit in saturated markets (Spain, Sweden).
|
||||
country_supply AS (
|
||||
SELECT
|
||||
country_code,
|
||||
SUM(padel_venue_count) AS country_venues,
|
||||
SUM(population) AS country_pop,
|
||||
CASE WHEN SUM(population) > 0
|
||||
THEN SUM(padel_venue_count) * 100000.0 / SUM(population)
|
||||
ELSE 0
|
||||
END AS venues_per_100k
|
||||
FROM foundation.dim_cities
|
||||
WHERE population > 0
|
||||
GROUP BY country_code
|
||||
),
|
||||
-- Step 4: add opportunity_score using country market validation + supply saturation.
|
||||
scored AS (
|
||||
SELECT ms.*,
|
||||
-- ── Opportunity Score (Marktpotenzial-Score v4, H3 catchment) ──────────
|
||||
-- ── Opportunity Score (Marktpotenzial-Score v8, H3 catchment) ──────────
|
||||
ROUND(
|
||||
-- Addressable market (25 pts): log-scaled catchment population, ceiling 500K
|
||||
25.0 * LEAST(1.0, LN(GREATEST(catchment_population, 1)) / LN(500000))
|
||||
-- Economic power (20 pts): income PPS normalised to 35,000
|
||||
+ 20.0 * LEAST(1.0, COALESCE(median_income_pps, 15000) / 35000.0)
|
||||
-- Supply gap (30 pts): inverted catchment venue density
|
||||
+ 30.0 * GREATEST(0.0, 1.0 - COALESCE(
|
||||
CASE WHEN catchment_population > 0
|
||||
THEN GREATEST(catchment_padel_courts, COALESCE(city_padel_venue_count, 0))::DOUBLE / catchment_population * 100000
|
||||
ELSE 0.0
|
||||
END, 0.0) / 8.0)
|
||||
-- Catchment gap (15 pts): distance to nearest court
|
||||
+ 15.0 * COALESCE(LEAST(1.0, nearest_padel_court_km / 30.0), 0.5)
|
||||
-- Market validation (10 pts): country-level avg market maturity.
|
||||
-- Replaces sports culture (v3 tennis data was all zeros = dead code).
|
||||
-- ES (~60/100): proven demand → ~6 pts. SE (~35/100): struggling → ~3.5 pts.
|
||||
-- NULL (no courts in country yet): 0.5 neutral → 5 pts (untested, not penalised).
|
||||
+ 10.0 * COALESCE(cm.country_avg_market_score / 100.0, 0.5)
|
||||
-- Addressable market (15 pts): sqrt-scaled catchment population, ceiling 1M
|
||||
15.0 * LEAST(1.0, SQRT(GREATEST(catchment_population, 1) / 1000000.0))
|
||||
-- Economic power (10 pts): income PPS normalised to 35,000
|
||||
+ 10.0 * LEAST(1.0, COALESCE(median_income_pps, 15000) / 35000.0)
|
||||
-- Supply deficit (50 pts): max of density gap and distance gap.
|
||||
-- Dampened by market existence: country_venues/50 (0.1–1.0).
|
||||
-- 0 venues in country → factor 0.1 → max 5 pts supply deficit
|
||||
-- 10 venues → 0.2 → max 10 pts
|
||||
-- 50+ venues → 1.0 → full credit
|
||||
+ 50.0 * GREATEST(
|
||||
-- density-based gap (H3 catchment): 0 courts = 1.0, 5/100k = 0.0
|
||||
GREATEST(0.0, 1.0 - COALESCE(
|
||||
CASE WHEN catchment_population > 0
|
||||
THEN GREATEST(catchment_padel_courts, COALESCE(city_padel_venue_count, 0))::DOUBLE / catchment_population * 100000
|
||||
ELSE 0.0
|
||||
END, 0.0) / 5.0),
|
||||
-- distance-based gap: 30km+ = 1.0, 0km = 0.0; NULL = 0.0 (assume nearby)
|
||||
COALESCE(LEAST(1.0, nearest_padel_court_km / 30.0), 0.0)
|
||||
)
|
||||
-- Market existence dampener: zero-venue countries get 0.1, 50+ venues = 1.0
|
||||
* GREATEST(0.1, LEAST(1.0, COALESCE(cs.country_venues, 0) / 50.0))
|
||||
-- Sports culture (10 pts): tennis density as racquet-sport adoption proxy.
|
||||
-- Ceiling 50 courts within 25km. Harmless when tennis data is zero (contributes 0).
|
||||
+ 10.0 * LEAST(1.0, COALESCE(tennis_courts_within_25km, 0) / 50.0)
|
||||
-- Construction affordability (5 pts): income purchasing power relative to build costs.
|
||||
-- PLI construction is EU27=100 index. High income + low construction cost = high score.
|
||||
+ 5.0 * LEAST(1.0,
|
||||
COALESCE(median_income_pps, 15000) / 35000.0
|
||||
/ GREATEST(0.5, COALESCE(pli_construction, 100.0) / 100.0)
|
||||
)
|
||||
-- Market headroom (10 pts): INVERSE country-level avg market maturity.
|
||||
-- High avg market score = saturated market = LESS opportunity for new entrants.
|
||||
-- ES (~46/100): proven demand, less headroom → ~5.4 pts.
|
||||
-- SE (~40/100): emerging → ~6 pts. NULL: 0.5 neutral → 5 pts.
|
||||
+ 10.0 * (1.0 - COALESCE(cm.country_avg_market_score / 100.0, 0.5))
|
||||
, 1) AS opportunity_score
|
||||
FROM market_scored ms
|
||||
LEFT JOIN country_market cm ON ms.country_code = cm.country_code
|
||||
LEFT JOIN country_supply cs ON ms.country_code = cs.country_code
|
||||
)
|
||||
SELECT
|
||||
s.geoname_id,
|
||||
@@ -252,8 +303,11 @@ SELECT
|
||||
THEN ROUND(s.catchment_padel_courts::DOUBLE / s.catchment_population * 100000, 2)
|
||||
ELSE NULL
|
||||
END AS catchment_venues_per_100k,
|
||||
s.market_score,
|
||||
s.opportunity_score,
|
||||
LEAST(GREATEST(s.market_score, 0), 100) AS market_score,
|
||||
LEAST(GREATEST(s.opportunity_score, 0), 100) AS opportunity_score,
|
||||
ROUND(PERCENT_RANK() OVER (
|
||||
PARTITION BY s.country_code ORDER BY s.opportunity_score
|
||||
) * 100, 0) AS country_percentile,
|
||||
s.median_hourly_rate,
|
||||
s.median_peak_rate,
|
||||
s.median_offpeak_rate,
|
||||
|
||||
@@ -27,7 +27,7 @@ WITH venue_stats AS (
|
||||
MAX(da.active_court_count) AS court_count,
|
||||
COUNT(DISTINCT da.snapshot_date) AS days_observed
|
||||
FROM foundation.fct_daily_availability da
|
||||
WHERE da.snapshot_date >= CURRENT_DATE - INTERVAL '30 days'
|
||||
WHERE CAST(da.snapshot_date AS DATE) >= CURRENT_DATE - INTERVAL '30 days'
|
||||
AND da.occupancy_rate IS NOT NULL
|
||||
AND da.occupancy_rate BETWEEN 0 AND 1.5
|
||||
GROUP BY da.tenant_id, da.country_code, da.city, da.city_slug, da.price_currency
|
||||
|
||||
@@ -34,7 +34,7 @@ all_jsonl AS (
|
||||
tenant_id,
|
||||
slots AS slots_json
|
||||
FROM read_json(
|
||||
@LANDING_DIR || '/playtomic/*/*/availability_' || @start_ds || '*.jsonl.gz',
|
||||
@LANDING_DIR || '/playtomic/*/*/availability_*.jsonl.gz',
|
||||
format = 'newline_delimited',
|
||||
columns = {
|
||||
date: 'VARCHAR',
|
||||
@@ -46,6 +46,7 @@ all_jsonl AS (
|
||||
filename = true
|
||||
)
|
||||
WHERE tenant_id IS NOT NULL
|
||||
AND CAST(date AS DATE) BETWEEN @start_ds AND @end_ds
|
||||
),
|
||||
raw_resources AS (
|
||||
SELECT
|
||||
|
||||
@@ -38,3 +38,6 @@ WHERE geoname_id IS NOT NULL
|
||||
AND city_name IS NOT NULL
|
||||
AND lat IS NOT NULL
|
||||
AND lon IS NOT NULL
|
||||
-- Reject names with non-Latin characters (CJK, Cyrillic, Arabic, Thai, etc.)
|
||||
-- Allows ASCII + Latin Extended (diacritics: ÄÖÜ, àéî, ñ, ø, etc.)
|
||||
AND regexp_matches(city_name, '^[\x20-\x7EÀ-ɏḀ-ỿ]+$')
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
-- World Bank WDI indicators: GNI per capita PPP and price level ratio.
|
||||
-- Pivoted to one row per (country_code, ref_year) with both indicators as columns.
|
||||
--
|
||||
-- Source: data/landing/worldbank/{year}/{month}/wdi_indicators.json.gz
|
||||
-- Extracted by: worldbank.py
|
||||
-- Used by: dim_countries (fallback behind Eurostat for non-EU countries)
|
||||
|
||||
MODEL (
|
||||
name staging.stg_worldbank_income,
|
||||
kind FULL,
|
||||
cron '@daily',
|
||||
grain (country_code, ref_year)
|
||||
);
|
||||
|
||||
WITH parsed AS (
|
||||
SELECT
|
||||
row ->> 'country_code' AS country_code,
|
||||
TRY_CAST(row ->> 'ref_year' AS INTEGER) AS ref_year,
|
||||
row ->> 'indicator' AS indicator,
|
||||
TRY_CAST(row ->> 'value' AS DOUBLE) AS value,
|
||||
CURRENT_DATE AS extracted_date
|
||||
FROM (
|
||||
SELECT UNNEST(rows) AS row
|
||||
FROM read_json(
|
||||
@LANDING_DIR || '/worldbank/*/*/wdi_indicators.json.gz',
|
||||
auto_detect = true
|
||||
)
|
||||
)
|
||||
WHERE (row ->> 'country_code') IS NOT NULL
|
||||
)
|
||||
SELECT
|
||||
country_code,
|
||||
ref_year,
|
||||
MAX(value) FILTER (WHERE indicator = 'NY.GNP.PCAP.PP.CD') AS gni_ppp,
|
||||
MAX(value) FILTER (WHERE indicator = 'PA.NUS.PPPC.RF') AS price_level_ratio,
|
||||
MAX(extracted_date) AS extracted_date
|
||||
FROM parsed
|
||||
WHERE value IS NOT NULL
|
||||
AND value > 0
|
||||
AND LENGTH(country_code) = 2
|
||||
GROUP BY country_code, ref_year
|
||||
@@ -111,7 +111,7 @@ _DAG: dict[str, list[str]] = {
|
||||
"fct_daily_availability": ["fct_availability_slot", "dim_venue_capacity"],
|
||||
# Serving
|
||||
"venue_pricing_benchmarks": ["fct_daily_availability"],
|
||||
"location_profiles": ["dim_locations", "dim_cities", "venue_pricing_benchmarks"],
|
||||
"location_profiles": ["dim_locations", "dim_cities", "dim_countries", "venue_pricing_benchmarks"],
|
||||
"planner_defaults": ["venue_pricing_benchmarks", "location_profiles"],
|
||||
"pseo_city_costs_de": [
|
||||
"location_profiles", "planner_defaults",
|
||||
|
||||
@@ -1105,6 +1105,10 @@ async def supplier_new():
|
||||
category, tier, contact_name, contact_email, contact_role,
|
||||
services_offered, linkedin_url, instagram_url, youtube_url, now),
|
||||
)
|
||||
from ..sitemap import invalidate_sitemap_cache, notify_indexnow
|
||||
invalidate_sitemap_cache()
|
||||
await notify_indexnow([f"/directory/{slug}"])
|
||||
|
||||
await flash(f"Supplier '{name}' created.", "success")
|
||||
return redirect(url_for("admin.supplier_detail", supplier_id=supplier_id))
|
||||
|
||||
@@ -2625,20 +2629,28 @@ async def articles_bulk():
|
||||
)
|
||||
|
||||
if action == "publish":
|
||||
affected = await fetch_all(
|
||||
f"SELECT DISTINCT url_path FROM articles WHERE {where}", tuple(where_params)
|
||||
)
|
||||
await execute(
|
||||
f"UPDATE articles SET status = 'published', updated_at = ? WHERE {where}",
|
||||
(now, *where_params),
|
||||
)
|
||||
from ..sitemap import invalidate_sitemap_cache
|
||||
from ..sitemap import invalidate_sitemap_cache, notify_indexnow
|
||||
invalidate_sitemap_cache()
|
||||
await notify_indexnow([r["url_path"] for r in affected])
|
||||
|
||||
elif action == "unpublish":
|
||||
affected = await fetch_all(
|
||||
f"SELECT DISTINCT url_path FROM articles WHERE {where}", tuple(where_params)
|
||||
)
|
||||
await execute(
|
||||
f"UPDATE articles SET status = 'draft', updated_at = ? WHERE {where}",
|
||||
(now, *where_params),
|
||||
)
|
||||
from ..sitemap import invalidate_sitemap_cache
|
||||
from ..sitemap import invalidate_sitemap_cache, notify_indexnow
|
||||
invalidate_sitemap_cache()
|
||||
await notify_indexnow([r["url_path"] for r in affected])
|
||||
|
||||
elif action == "toggle_noindex":
|
||||
await execute(
|
||||
@@ -2685,16 +2697,26 @@ async def articles_bulk():
|
||||
f"UPDATE articles SET status = 'published', updated_at = ? WHERE id IN ({placeholders})",
|
||||
(now, *article_ids),
|
||||
)
|
||||
from ..sitemap import invalidate_sitemap_cache
|
||||
from ..sitemap import invalidate_sitemap_cache, notify_indexnow
|
||||
invalidate_sitemap_cache()
|
||||
affected = await fetch_all(
|
||||
f"SELECT DISTINCT url_path FROM articles WHERE id IN ({placeholders})",
|
||||
tuple(article_ids),
|
||||
)
|
||||
await notify_indexnow([r["url_path"] for r in affected])
|
||||
|
||||
elif action == "unpublish":
|
||||
await execute(
|
||||
f"UPDATE articles SET status = 'draft', updated_at = ? WHERE id IN ({placeholders})",
|
||||
(now, *article_ids),
|
||||
)
|
||||
from ..sitemap import invalidate_sitemap_cache
|
||||
from ..sitemap import invalidate_sitemap_cache, notify_indexnow
|
||||
invalidate_sitemap_cache()
|
||||
affected = await fetch_all(
|
||||
f"SELECT DISTINCT url_path FROM articles WHERE id IN ({placeholders})",
|
||||
tuple(article_ids),
|
||||
)
|
||||
await notify_indexnow([r["url_path"] for r in affected])
|
||||
|
||||
elif action == "toggle_noindex":
|
||||
await execute(
|
||||
@@ -2808,8 +2830,10 @@ async def article_new():
|
||||
(url_path, article_slug, title, meta_description, og_image_url,
|
||||
country, region, language, status, pub_dt, seo_head, article_type),
|
||||
)
|
||||
from ..sitemap import invalidate_sitemap_cache
|
||||
from ..sitemap import invalidate_sitemap_cache, notify_indexnow
|
||||
invalidate_sitemap_cache()
|
||||
if status == "published":
|
||||
await notify_indexnow([url_path])
|
||||
|
||||
await flash(f"Article '{title}' created.", "success")
|
||||
return redirect(url_for("admin.articles"))
|
||||
@@ -2881,6 +2905,9 @@ async def article_edit(article_id: int):
|
||||
(title, url_path, meta_description, og_image_url,
|
||||
country, region, language, status, pub_dt, seo_head, article_type, now, article_id),
|
||||
)
|
||||
if status == "published":
|
||||
from ..sitemap import notify_indexnow
|
||||
await notify_indexnow([url_path])
|
||||
await flash("Article updated.", "success")
|
||||
return redirect(url_for("admin.articles"))
|
||||
|
||||
@@ -2976,8 +3003,11 @@ async def article_publish(article_id: int):
|
||||
(new_status, now, article_id),
|
||||
)
|
||||
|
||||
from ..sitemap import invalidate_sitemap_cache
|
||||
from ..sitemap import invalidate_sitemap_cache, notify_indexnow
|
||||
invalidate_sitemap_cache()
|
||||
toggled = await fetch_one("SELECT url_path FROM articles WHERE id = ?", (article_id,))
|
||||
if toggled:
|
||||
await notify_indexnow([toggled["url_path"]])
|
||||
|
||||
if request.headers.get("HX-Request"):
|
||||
updated = await fetch_one(
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
</head>
|
||||
<body>
|
||||
<div class="article-body">{{ body_html | safe }}</div>
|
||||
<script>window.LEAFLET_JS_URL = '{{ url_for("static", filename="vendor/leaflet/leaflet.min.js") }}';</script>
|
||||
<script>
|
||||
window.LEAFLET_JS_URL = '{{ url_for("static", filename="vendor/leaflet/leaflet.min.js") }}';
|
||||
window.__MAP_T = {score_label:"Padelnomics Score",venues:"venues",pop:"pop",click_explore:"Click to explore →",coming_soon:"Coming soon",courts:"courts",indoor:"indoor",outdoor:"outdoor"};
|
||||
</script>
|
||||
<script src="{{ url_for('static', filename='js/map-markers.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/article-maps.js') }}"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -33,6 +33,10 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>window.LEAFLET_JS_URL = '{{ url_for("static", filename="vendor/leaflet/leaflet.min.js") }}';</script>
|
||||
<script>
|
||||
window.LEAFLET_JS_URL = '{{ url_for("static", filename="vendor/leaflet/leaflet.min.js") }}';
|
||||
window.__MAP_T = {score_label:"Padelnomics Score",venues:"venues",pop:"pop",click_explore:"Click to explore →",coming_soon:"Coming soon",courts:"courts",indoor:"indoor",outdoor:"outdoor"};
|
||||
</script>
|
||||
<script src="{{ url_for('static', filename='js/map-markers.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/article-maps.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -148,6 +148,18 @@ def create_app() -> Quart:
|
||||
# Per-request hooks
|
||||
# -------------------------------------------------------------------------
|
||||
|
||||
@app.before_request
|
||||
async def set_user_geo():
|
||||
"""Stash Cloudflare geo headers in g for proximity sorting.
|
||||
|
||||
Requires nginx: proxy_set_header CF-IPCountry $http_cf_ipcountry;
|
||||
proxy_set_header CF-RegionCode $http_cf_regioncode;
|
||||
proxy_set_header CF-IPCity $http_cf_ipcity;
|
||||
"""
|
||||
g.user_country = request.headers.get("CF-IPCountry", "").upper() or ""
|
||||
g.user_region = request.headers.get("CF-RegionCode", "") or ""
|
||||
g.user_city = request.headers.get("CF-IPCity", "") or ""
|
||||
|
||||
@app.before_request
|
||||
async def validate_lang():
|
||||
"""404 unsupported language prefixes (e.g. /fr/terms)."""
|
||||
@@ -234,6 +246,8 @@ def create_app() -> Quart:
|
||||
"csrf_token": get_csrf_token,
|
||||
"ab_variant": getattr(g, "ab_variant", None),
|
||||
"ab_tag": getattr(g, "ab_tag", None),
|
||||
"user_country": g.get("user_country", ""),
|
||||
"user_city": g.get("user_city", ""),
|
||||
"lang": effective_lang,
|
||||
"t": get_translations(effective_lang),
|
||||
"v": _ASSET_VERSION,
|
||||
@@ -270,6 +284,12 @@ def create_app() -> Quart:
|
||||
from .sitemap import sitemap_response
|
||||
return await sitemap_response(config.BASE_URL)
|
||||
|
||||
# IndexNow key verification — only register if key is configured
|
||||
if config.INDEXNOW_KEY:
|
||||
@app.route(f"/{config.INDEXNOW_KEY}.txt")
|
||||
async def indexnow_key():
|
||||
return Response(config.INDEXNOW_KEY, content_type="text/plain")
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Error pages
|
||||
# -------------------------------------------------------------------------
|
||||
@@ -387,7 +407,7 @@ def create_app() -> Quart:
|
||||
|
||||
@app.route("/market-score")
|
||||
async def legacy_market_score():
|
||||
return redirect("/en/market-score", 301)
|
||||
return redirect("/en/padelnomics-score", 301)
|
||||
|
||||
# -------------------------------------------------------------------------
|
||||
# Blueprint registration
|
||||
|
||||
@@ -194,12 +194,16 @@ async def _fetch_market_data(location: str, language: str) -> dict | None:
|
||||
|
||||
rows = await fetch_analytics(
|
||||
"""
|
||||
SELECT city_slug, city_name, country,
|
||||
padel_venue_count, venues_per_100k, market_score,
|
||||
SELECT city_slug, city_name, country_name_en AS country,
|
||||
city_padel_venue_count AS padel_venue_count,
|
||||
city_venues_per_100k AS venues_per_100k,
|
||||
opportunity_score,
|
||||
median_peak_rate, median_offpeak_rate, median_occupancy_rate,
|
||||
population
|
||||
FROM serving.city_market_overview
|
||||
WHERE city_slug = ? OR lower(city_name) = lower(?)
|
||||
FROM serving.location_profiles
|
||||
WHERE city_slug IS NOT NULL
|
||||
AND (city_slug = ? OR lower(city_name) = lower(?))
|
||||
ORDER BY opportunity_score DESC
|
||||
LIMIT 1
|
||||
""",
|
||||
[city_slug, location.strip()],
|
||||
@@ -485,7 +489,7 @@ def get_plan_sections(state: dict, d: dict, language: str = "en", bp_details: di
|
||||
"funded_by_equity": t["bp_lbl_funded_by_equity"],
|
||||
"total": t["bp_lbl_total"],
|
||||
"venues_per_100k": t["bp_lbl_venues_per_100k"],
|
||||
"market_score": t["bp_lbl_market_score"],
|
||||
"padelnomics_score": t["bp_lbl_padelnomics_score"],
|
||||
"median_peak_rate": t["bp_lbl_median_peak_rate"],
|
||||
"median_offpeak_rate": t["bp_lbl_median_offpeak_rate"],
|
||||
"median_occupancy": t["bp_lbl_median_occupancy"],
|
||||
|
||||
@@ -212,6 +212,13 @@ async def markets():
|
||||
FROM serving.pseo_country_overview
|
||||
ORDER BY total_venues DESC
|
||||
""")
|
||||
# Sort so user's country renders last (on top in Leaflet z-order)
|
||||
user_country = g.get("user_country", "")
|
||||
if user_country and map_countries:
|
||||
map_countries = sorted(
|
||||
map_countries,
|
||||
key=lambda c: 1 if c["country_code"] == user_country else 0,
|
||||
)
|
||||
|
||||
return await render_template(
|
||||
"markets.html",
|
||||
@@ -237,9 +244,46 @@ async def market_results():
|
||||
return await render_template("partials/market_results.html", articles=articles)
|
||||
|
||||
|
||||
_NEARBY_COUNTRIES: dict[str, tuple[str, ...]] = {
|
||||
"DE": ("AT", "CH"), "AT": ("DE", "CH"), "CH": ("DE", "AT"),
|
||||
"ES": ("PT",), "PT": ("ES",),
|
||||
"GB": ("IE",), "IE": ("GB",),
|
||||
"US": ("CA",), "CA": ("US",),
|
||||
"IT": ("CH",), "FR": ("BE", "CH"), "BE": ("FR", "NL", "DE"),
|
||||
"NL": ("BE", "DE"), "SE": ("NO", "DK", "FI"), "NO": ("SE", "DK"),
|
||||
"DK": ("SE", "NO", "DE"), "FI": ("SE",),
|
||||
"MX": ("US",), "BR": ("AR",), "AR": ("BR",),
|
||||
}
|
||||
|
||||
|
||||
def _geo_order_clause(user_country: str) -> tuple[str, list]:
|
||||
"""Build ORDER BY clause that sorts user's country first, nearby second.
|
||||
|
||||
Returns (order_sql, params) where order_sql starts with the geo CASE
|
||||
followed by published_at DESC. Caller prepends 'ORDER BY'.
|
||||
"""
|
||||
if not user_country:
|
||||
return "published_at DESC", []
|
||||
|
||||
nearby = _NEARBY_COUNTRIES.get(user_country, ())
|
||||
if nearby:
|
||||
placeholders = ",".join("?" * len(nearby))
|
||||
geo_case = f"""CASE WHEN country = ? THEN 0
|
||||
WHEN country IN ({placeholders}) THEN 1
|
||||
ELSE 2 END,
|
||||
published_at DESC"""
|
||||
return geo_case, [user_country, *nearby]
|
||||
|
||||
return """CASE WHEN country = ? THEN 0 ELSE 1 END,
|
||||
published_at DESC""", [user_country]
|
||||
|
||||
|
||||
async def _filter_articles(q: str, country: str, region: str) -> list[dict]:
|
||||
"""Query published articles for the current language."""
|
||||
"""Query published articles for the current language, geo-sorted."""
|
||||
lang = g.get("lang", "en")
|
||||
user_country = g.get("user_country", "")
|
||||
geo_order, geo_params = _geo_order_clause(user_country)
|
||||
|
||||
if q:
|
||||
# FTS query
|
||||
wheres = ["articles_fts MATCH ?"]
|
||||
@@ -253,14 +297,16 @@ async def _filter_articles(q: str, country: str, region: str) -> list[dict]:
|
||||
wheres.append("a.region = ?")
|
||||
params.append(region)
|
||||
where = " AND ".join(wheres)
|
||||
# Geo-sort references a.country
|
||||
order = geo_order.replace("country", "a.country")
|
||||
return await fetch_all(
|
||||
f"""SELECT a.* FROM articles a
|
||||
JOIN articles_fts ON articles_fts.rowid = a.id
|
||||
WHERE {where}
|
||||
AND a.status = 'published' AND a.published_at <= datetime('now')
|
||||
ORDER BY a.published_at DESC
|
||||
ORDER BY {order}
|
||||
LIMIT 100""",
|
||||
tuple(params),
|
||||
tuple(params + geo_params),
|
||||
)
|
||||
else:
|
||||
wheres = ["status = 'published'", "published_at <= datetime('now')", "language = ?"]
|
||||
@@ -274,8 +320,8 @@ async def _filter_articles(q: str, country: str, region: str) -> list[dict]:
|
||||
where = " AND ".join(wheres)
|
||||
return await fetch_all(
|
||||
f"""SELECT * FROM articles WHERE {where}
|
||||
ORDER BY published_at DESC LIMIT 100""",
|
||||
tuple(params),
|
||||
ORDER BY {geo_order} LIMIT 100""",
|
||||
tuple(params + geo_params),
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -60,6 +60,10 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script>window.LEAFLET_JS_URL = '{{ url_for("static", filename="vendor/leaflet/leaflet.min.js") }}';</script>
|
||||
<script>
|
||||
window.LEAFLET_JS_URL = '{{ url_for("static", filename="vendor/leaflet/leaflet.min.js") }}';
|
||||
window.__MAP_T = {score_label:"{{ t.map_score_label }}",venues:"{{ t.map_venues }}",pop:"{{ t.map_pop }}",click_explore:"{{ t.map_click_explore }}",coming_soon:"{{ t.map_coming_soon }}",courts:"{{ t.map_courts }}",indoor:"{{ t.map_indoor }}",outdoor:"{{ t.map_outdoor }}"};
|
||||
</script>
|
||||
<script src="{{ url_for('static', filename='js/map-markers.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/article-maps.js') }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
@@ -7,7 +7,7 @@ natural_key: city_key
|
||||
languages: [de, en]
|
||||
url_pattern: "/markets/{{ country_slug }}/{{ city_slug }}"
|
||||
title_pattern: "{% if language == 'de' %}Padel in {{ city_name }} — Investitionskosten & Marktanalyse {{ 'now' | datetimeformat('%Y') }}{% else %}Padel in {{ city_name }} — Investment Costs & Market Analysis {{ 'now' | datetimeformat('%Y') }}{% endif %}"
|
||||
meta_description_pattern: "{% if language == 'de' %}Lohnt sich eine Padelhalle in {{ city_name }}? {{ padel_venue_count }} Anlagen, padelnomics Market Score {{ market_score | round(1) }}/100 und ein vollständiges Finanzmodell. Stand {{ 'now' | datetimeformat('%B %Y') }}.{% else %}Is {{ city_name }} worth building a padel center in? {{ padel_venue_count }} venues, padelnomics Market Score {{ market_score | round(1) }}/100, and a full financial model. Updated {{ 'now' | datetimeformat('%B %Y') }}.{% endif %}"
|
||||
meta_description_pattern: "{% if language == 'de' %}Lohnt sich eine Padelhalle in {{ city_name }}? {{ padel_venue_count }} Anlagen, Padelnomics Score {{ opportunity_score | round(1) }}/100 und ein vollständiges Finanzmodell. Stand {{ 'now' | datetimeformat('%B %Y') }}.{% else %}Is {{ city_name }} worth building a padel center in? {{ padel_venue_count }} venues, Padelnomics Score {{ opportunity_score | round(1) }}/100, and a full financial model. Updated {{ 'now' | datetimeformat('%B %Y') }}.{% endif %}"
|
||||
schema_type: [Article, FAQPage]
|
||||
priority_column: population
|
||||
---
|
||||
@@ -20,15 +20,9 @@ priority_column: population
|
||||
<div class="stats-strip__value">{{ padel_venue_count }}</div>
|
||||
</div>
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</div>
|
||||
<div class="stats-strip__value" style="color:{% if market_score >= 55 %}#16A34A{% elif market_score >= 35 %}#D97706{% else %}#DC2626{% endif %}">{{ market_score | round(1) }}<span class="stats-strip__unit">/100</span></div>
|
||||
</div>
|
||||
{% if opportunity_score %}
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score</div>
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</div>
|
||||
<div class="stats-strip__value" style="color:{% if opportunity_score >= 65 %}#16A34A{% elif opportunity_score >= 40 %}#D97706{% else %}#DC2626{% endif %}">{{ opportunity_score | round(1) }}<span class="stats-strip__unit">/100</span></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label">Spitzenpreis</div>
|
||||
<div class="stats-strip__value">{% if median_peak_rate %}{{ median_peak_rate | round(0) | int }}{% else %}—{% endif %}<span class="stats-strip__unit">{% if median_peak_rate %}{{ price_currency }}/Std{% endif %}</span></div>
|
||||
@@ -41,7 +35,7 @@ priority_column: population
|
||||
|
||||
<div id="city-map" data-country-slug="{{ country_slug }}" data-city-slug="{{ city_slug }}" data-lat="{{ lat }}" data-lon="{{ lon }}" style="height:300px; border-radius:12px; margin-bottom:1.5rem;"></div>
|
||||
|
||||
{{ city_name }} erreicht einen **<a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</a> von {{ market_score | round(1) }}/100** — damit liegt die Stadt{% if market_score >= 55 %} unter den stärksten Padel-Märkten in {{ country_name_en }}{% elif market_score >= 35 %} im soliden Mittelfeld der Padel-Märkte in {{ country_name_en }}{% else %} in einem frühen Padel-Markt mit Wachstumspotenzial{% endif %}. Aktuell gibt es **{{ padel_venue_count }} Padelanlagen** für {% if population >= 1000000 %}{{ (population / 1000000) | round(1) }}M{% else %}{{ (population / 1000) | round(0) | int }}K{% endif %} Einwohner — das entspricht {{ venues_per_100k | round(1) }} Anlagen pro 100.000 Einwohner.{% if opportunity_score %} Der **<a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score</a> von {{ opportunity_score | round(1) }}/100** bewertet das Investitionspotenzial — Versorgungslücken, Einzugsgebiet und Sportaffinität der Region:{% if opportunity_score >= 65 and market_score < 40 %} überschaubare Konkurrenz trifft auf starkes Standortpotenzial{% elif opportunity_score >= 65 %} hohes Potenzial trotz bereits aktivem Marktumfeld{% elif opportunity_score >= 40 %} solides Potenzial, der Markt beginnt sich zu verdichten{% else %} der Standort ist vergleichsweise gut versorgt, Differenzierung wird zum Schlüssel{% endif %}.{% endif %}
|
||||
{{ city_name }} erreicht einen **<a href="/{{ language }}/padelnomics-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</a> von {{ opportunity_score | round(1) }}/100** — der Score bewertet Investitionspotenzial anhand von Versorgungslücken, Einzugsgebiet, Marktreife und Sportaffinität der Region. {% if opportunity_score >= 65 %}Damit zählt {{ city_name }} zu den vielversprechendsten Standorten in {{ country_name_en }}{% elif opportunity_score >= 40 %}Solides Potenzial — der Markt bietet noch Raum für neue Anlagen{% else %}Der Standort ist vergleichsweise gut versorgt; Differenzierung wird zum Schlüssel{% endif %}. Aktuell gibt es **{{ padel_venue_count }} Padelanlagen** für {% if population >= 1000000 %}{{ (population / 1000000) | round(1) }}M{% else %}{{ (population / 1000) | round(0) | int }}K{% endif %} Einwohner — das entspricht {{ venues_per_100k | round(1) }} Anlagen pro 100.000 Einwohner.
|
||||
|
||||
Die entscheidende Frage für Investoren: Was bringt ein Padel-Investment bei den aktuellen Preisen, Auslastungsraten und Baukosten tatsächlich? Das Finanzmodell unten rechnet mit echten Marktdaten aus {{ city_name }}.
|
||||
|
||||
@@ -95,16 +89,15 @@ Eine detaillierte Preisanalyse mit Preisspannen und Vergleichsdaten findest Du a
|
||||
|----------|------|
|
||||
| Anlagen | {{ padel_venue_count }} |
|
||||
| Anlagen pro 100K Einwohner | {{ venues_per_100k | round(1) }} |
|
||||
| <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score | {{ market_score | round(1) }}/100 |
|
||||
{% if opportunity_score %}| <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score | {{ opportunity_score | round(1) }}/100 |
|
||||
{% endif %}| Datenqualität | {{ (data_confidence * 100) | round(0) | int }}% |
|
||||
| <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score | {{ opportunity_score | round(1) }}/100 |
|
||||
| Datenqualität | {{ (data_confidence * 100) | round(0) | int }}% |
|
||||
|
||||
## FAQ
|
||||
|
||||
<details>
|
||||
<summary>Ist {{ city_name }} ein guter Standort für eine Padelhalle?</summary>
|
||||
|
||||
{{ city_name }} erreicht **{{ market_score | round(1) }}/100** auf dem <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score, der Anlagendichte, Bevölkerungsgröße und Datenqualität berücksichtigt. {% if market_score >= 55 %}Ein Score über 55 signalisiert einen starken Markt: etablierte Anlagendichte, wachsende Spielerbasis und belastbare Preisdaten. {% elif market_score >= 35 %}Ein mittlerer Score bedeutet solide Grundlagen, aber einen teils stärker umkämpften oder datenlimitierten Markt. {% else %}Ein niedrigerer Score spricht für einen Markt im frühen Aufbau — was gleichzeitig weniger Wettbewerb und First-Mover-Vorteile bedeuten kann. {% endif %}Mit dem [Finanzplaner](/{{ language }}/planner) kannst Du Deine eigenen Annahmen durchrechnen.
|
||||
{{ city_name }} erreicht **{{ opportunity_score | round(1) }}/100** auf dem <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score, der Versorgungslücken, Einzugsgebiet, Marktreife und Sportaffinität der Region bewertet. {% if opportunity_score >= 65 %}Ein Score über 65 signalisiert hohes Investitionspotenzial: relevantes Einzugsgebiet, Versorgungslücken und eine sportaffine Bevölkerung. {% elif opportunity_score >= 40 %}Ein mittlerer Score steht für solides Potenzial — der Markt bietet Raum, erfordert aber sorgfältige Standortwahl. {% else %}Ein niedrigerer Score deutet auf einen bereits gut versorgten Markt — Differenzierung über Lage, Qualität oder Preisgestaltung wird hier entscheidend. {% endif %}Mit dem [Finanzplaner](/{{ language }}/planner) kannst Du Deine eigenen Annahmen durchrechnen.
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@@ -134,17 +127,9 @@ Das Gesamtinvestment hängt vom Hallentyp (Indoor vs. Outdoor), Grundstückskost
|
||||
<details>
|
||||
<summary>Wie schneidet {{ city_name }} im Vergleich zu anderen Städten in {{ country_name_en }} ab?</summary>
|
||||
|
||||
Der <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score von {{ market_score | round(1) }}/100 zeigt {{ city_name }}s Position unter den erfassten Städten in {{ country_name_en }}. In der [Marktübersicht für {{ country_name_en }}](/{{ language }}/markets/{{ country_slug }}) findest Du den Vergleich aller Städte.
|
||||
Der <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score von {{ opportunity_score | round(1) }}/100 zeigt {{ city_name }}s Investitionspotenzial im Vergleich zu anderen Städten in {{ country_name_en }}. In der [Marktübersicht für {{ country_name_en }}](/{{ language }}/markets/{{ country_slug }}) findest Du den Vergleich aller Städte.
|
||||
</details>
|
||||
|
||||
{% if opportunity_score %}
|
||||
<details>
|
||||
<summary>Was ist der Unterschied zwischen Market Score und Opportunity Score?</summary>
|
||||
|
||||
Der **Market Score ({{ market_score | round(1) }}/100)** misst die *Marktreife*: Bevölkerungsgröße, bestehende Anlagendichte und Datenqualität. Ein hoher Wert steht für einen etablierten Markt mit belastbaren Preisdaten — und oft auch für mehr Wettbewerb. Der **Opportunity Score ({{ opportunity_score | round(1) }}/100)** dreht die Logik um: Er bewertet *Investitionspotenzial* anhand von Versorgungslücken, Entfernung zur nächsten Anlage und der Tennisinfrastruktur als Proxy für Racket-Sport-Affinität. Hoher Opportunity Score bei niedrigem Market Score — das ist das klassische White-Space-Signal. Hoher Wert in beiden — bewiesene Nachfrage mit noch offenen Standorten.
|
||||
</details>
|
||||
{% endif %}
|
||||
|
||||
<div style="background:#EFF6FF;border:1px solid #BFDBFE;border-radius:12px;padding:1rem 1.25rem;margin:1.5rem 0;">
|
||||
Bereit für Deine eigene Kalkulation? →
|
||||
<a href="/{{ language }}/planner" style="font-weight:600;color:#1D4ED8;margin-left:0.25rem;">Businessplan erstellen</a>
|
||||
@@ -162,15 +147,9 @@ Der **Market Score ({{ market_score | round(1) }}/100)** misst die *Marktreife*:
|
||||
<div class="stats-strip__value">{{ padel_venue_count }}</div>
|
||||
</div>
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</div>
|
||||
<div class="stats-strip__value" style="color:{% if market_score >= 55 %}#16A34A{% elif market_score >= 35 %}#D97706{% else %}#DC2626{% endif %}">{{ market_score | round(1) }}<span class="stats-strip__unit">/100</span></div>
|
||||
</div>
|
||||
{% if opportunity_score %}
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score</div>
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</div>
|
||||
<div class="stats-strip__value" style="color:{% if opportunity_score >= 65 %}#16A34A{% elif opportunity_score >= 40 %}#D97706{% else %}#DC2626{% endif %}">{{ opportunity_score | round(1) }}<span class="stats-strip__unit">/100</span></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label">Peak Rate</div>
|
||||
<div class="stats-strip__value">{% if median_peak_rate %}{{ median_peak_rate | round(0) | int }}{% else %}—{% endif %}<span class="stats-strip__unit">{% if median_peak_rate %}{{ price_currency }}/hr{% endif %}</span></div>
|
||||
@@ -183,7 +162,7 @@ Der **Market Score ({{ market_score | round(1) }}/100)** misst die *Marktreife*:
|
||||
|
||||
<div id="city-map" data-country-slug="{{ country_slug }}" data-city-slug="{{ city_slug }}" data-lat="{{ lat }}" data-lon="{{ lon }}" style="height:300px; border-radius:12px; margin-bottom:1.5rem;"></div>
|
||||
|
||||
{{ city_name }} has a **<a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</a> of {{ market_score | round(1) }}/100** — placing it{% if market_score >= 55 %} among the strongest padel markets in {{ country_name_en }}{% elif market_score >= 35 %} in the mid-tier of {{ country_name_en }}'s padel markets{% else %} in an early-stage padel market with room for growth{% endif %}. The city currently has **{{ padel_venue_count }} padel venues** serving a population of {% if population >= 1000000 %}{{ (population / 1000000) | round(1) }}M{% else %}{{ (population / 1000) | round(0) | int }}K{% endif %} residents — a density of {{ venues_per_100k | round(1) }} venues per 100,000 people.{% if opportunity_score %} The **<a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score</a> of {{ opportunity_score | round(1) }}/100** scores investment potential — supply gaps, catchment reach, and sports culture as a demand proxy:{% if opportunity_score >= 65 and market_score < 40 %} limited competition meets strong location fundamentals{% elif opportunity_score >= 65 %} strong potential despite an already active market{% elif opportunity_score >= 40 %} solid potential as the market starts to fill in{% else %} the area is comparatively well-served; differentiation is the key lever{% endif %}.{% endif %}
|
||||
{{ city_name }} has a **<a href="/{{ language }}/padelnomics-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</a> of {{ opportunity_score | round(1) }}/100** — the score evaluates investment potential based on supply gaps, catchment reach, market maturity, and sports culture. {% if opportunity_score >= 65 %}This places {{ city_name }} among the most promising locations in {{ country_name_en }}{% elif opportunity_score >= 40 %}Solid potential — the market still has room for new facilities{% else %}The area is comparatively well-served; differentiation becomes the key lever{% endif %}. The city currently has **{{ padel_venue_count }} padel venues** serving a population of {% if population >= 1000000 %}{{ (population / 1000000) | round(1) }}M{% else %}{{ (population / 1000) | round(0) | int }}K{% endif %} residents — a density of {{ venues_per_100k | round(1) }} venues per 100,000 people.
|
||||
|
||||
The question that matters: given current pricing, occupancy, and build costs, what does a padel investment in {{ city_name }} actually return? The financial model below works with real local market data.
|
||||
|
||||
@@ -237,16 +216,15 @@ For a detailed pricing breakdown with price ranges and venue comparisons, see th
|
||||
|--------|-------|
|
||||
| Venues | {{ padel_venue_count }} |
|
||||
| Venues per 100K residents | {{ venues_per_100k | round(1) }} |
|
||||
| <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score | {{ market_score | round(1) }}/100 |
|
||||
{% if opportunity_score %}| <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score | {{ opportunity_score | round(1) }}/100 |
|
||||
{% endif %}| Data Confidence | {{ (data_confidence * 100) | round(0) | int }}% |
|
||||
| <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score | {{ opportunity_score | round(1) }}/100 |
|
||||
| Data Confidence | {{ (data_confidence * 100) | round(0) | int }}% |
|
||||
|
||||
## FAQ
|
||||
|
||||
<details>
|
||||
<summary>Is {{ city_name }} a good location for a padel center?</summary>
|
||||
|
||||
{{ city_name }} scores **{{ market_score | round(1) }}/100** on the <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score, which primarily reflects venue density alongside population size and data completeness. {% if market_score >= 55 %}A score above 55 indicates a strong market: established venue density, a growing player base, and solid pricing data. {% elif market_score >= 35 %}A mid-range score means decent fundamentals but a more competitive or data-limited market. {% else %}A lower score reflects an early-stage market — which can also mean lower competition and first-mover advantage. {% endif %}Use the [Padelnomics planner](/{{ language }}/planner) to model your specific assumptions.
|
||||
{{ city_name }} scores **{{ opportunity_score | round(1) }}/100** on the <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score, which evaluates investment potential based on supply gaps, catchment reach, market maturity, and sports culture. {% if opportunity_score >= 65 %}A score above 65 signals strong investment potential: meaningful catchment area, supply gaps, and a sports-oriented population. {% elif opportunity_score >= 40 %}A mid-range score means solid potential — the market has room, but requires careful site selection. {% else %}A lower score indicates a well-served market — differentiation through location, quality, or pricing becomes critical. {% endif %}Use the [Padelnomics planner](/{{ language }}/planner) to model your specific assumptions.
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@@ -276,17 +254,9 @@ Total investment depends on venue type (indoor vs outdoor), land costs, and loca
|
||||
<details>
|
||||
<summary>How does {{ city_name }} compare to other {{ country_name_en }} cities?</summary>
|
||||
|
||||
{{ city_name }}'s <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score of {{ market_score | round(1) }}/100 reflects its ranking among tracked {{ country_name_en }} cities. See the [{{ country_name_en }} market overview](/{{ language }}/markets/{{ country_slug }}) for a full comparison across cities.
|
||||
{{ city_name }}'s <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score of {{ opportunity_score | round(1) }}/100 reflects its investment potential among tracked {{ country_name_en }} cities. See the [{{ country_name_en }} market overview](/{{ language }}/markets/{{ country_slug }}) for a full comparison across cities.
|
||||
</details>
|
||||
|
||||
{% if opportunity_score %}
|
||||
<details>
|
||||
<summary>What is the difference between Market Score and Opportunity Score?</summary>
|
||||
|
||||
The **Market Score ({{ market_score | round(1) }}/100)** measures *market maturity*: population size, existing venue density, and data quality. A high score signals an established market with reliable pricing data — and typically more competition. The **Opportunity Score ({{ opportunity_score | round(1) }}/100)** inverts that logic: it scores *investment potential* based on supply gaps, distance to the nearest facility, and tennis infrastructure as a proxy for racket sport demand. High Opportunity Score with a low Market Score is the classic white-space signal. High on both means proven demand with open locations still available.
|
||||
</details>
|
||||
{% endif %}
|
||||
|
||||
<div style="background:#EFF6FF;border:1px solid #BFDBFE;border-radius:12px;padding:1rem 1.25rem;margin:1.5rem 0;">
|
||||
Ready to run the numbers for {{ city_name }}? →
|
||||
<a href="/{{ language }}/planner" style="font-weight:600;color:#1D4ED8;margin-left:0.25rem;">Build your business plan</a>
|
||||
|
||||
@@ -55,7 +55,7 @@ Die Preisspanne von {{ hourly_rate_p25 | round(0) | int }} bis {{ hourly_rate_p7
|
||||
|
||||
## Wie steht {{ city_name }} im Vergleich da?
|
||||
|
||||
{{ city_name }} hat {{ padel_venue_count }} Padelanlagen für {% if population >= 1000000 %}{{ (population / 1000000) | round(1) }}M{% else %}{{ (population / 1000) | round(0) | int }}K{% endif %} Einwohner ({{ venues_per_100k | round(1) }} Anlagen pro 100K Einwohner). {% if market_score >= 55 %}Mit einem <a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</a> von {{ market_score | round(1) }}/100 gehört {{ city_name }} zu den stärksten Padel-Märkten in {{ country_name_en }} — höhere Auslastung und Preise sind typisch für dichte, etablierte Märkte. {% elif market_score >= 35 %}Ein Market Score von {{ market_score | round(1) }}/100 steht für einen Markt im Aufbau: genug Angebot für marktgerechte Preise, aber Raum für neue Anlagen. {% else %}Ein Market Score von {{ market_score | round(1) }}/100 deutet auf einen Markt in der Frühphase hin, in dem sich Preise und Auslastung mit dem Wachstum des Sports noch deutlich entwickeln können. {% endif %}
|
||||
{{ city_name }} hat {{ padel_venue_count }} Padelanlagen für {% if population >= 1000000 %}{{ (population / 1000000) | round(1) }}M{% else %}{{ (population / 1000) | round(0) | int }}K{% endif %} Einwohner ({{ venues_per_100k | round(1) }} Anlagen pro 100K Einwohner). {% if opportunity_score >= 65 %}Mit einem <a href="/{{ language }}/padelnomics-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</a> von {{ opportunity_score | round(1) }}/100 zählt {{ city_name }} zu den vielversprechendsten Standorten in {{ country_name_en }}. {% elif opportunity_score >= 40 %}Ein <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score von {{ opportunity_score | round(1) }}/100 steht für solides Investitionspotenzial: genug Markt für faire Preise, aber Raum für neue Anlagen. {% else %}Ein <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score von {{ opportunity_score | round(1) }}/100 spricht für einen bereits gut versorgten Markt — Differenzierung über Qualität und Lage wird entscheidend. {% endif %}
|
||||
|
||||
Die Anlagendichte von {{ venues_per_100k | round(1) }} pro 100K Einwohner beeinflusst die Preisgestaltung direkt: {% if venues_per_100k >= 3.0 %}Höhere Dichte bedeutet mehr Wettbewerb, was die Preise eher stabilisiert oder senkt.{% elif venues_per_100k >= 1.0 %}Moderate Dichte ermöglicht marktgerechte Preise bei gleichzeitigem Wachstumsspielraum.{% else %}Niedrige Dichte gibt Betreibern mehr Preissetzungsmacht — vorausgesetzt, die Nachfrage ist da.{% endif %}
|
||||
|
||||
@@ -168,7 +168,7 @@ The P25–P75 price range of {{ hourly_rate_p25 | round(0) | int }} to {{ hourly
|
||||
|
||||
## How Does {{ city_name }} Compare?
|
||||
|
||||
{{ city_name }} has {{ padel_venue_count }} padel venues for a population of {% if population >= 1000000 %}{{ (population / 1000000) | round(1) }}M{% else %}{{ (population / 1000) | round(0) | int }}K{% endif %} ({{ venues_per_100k | round(1) }} venues per 100K residents). {% if market_score >= 55 %}With a <a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</a> of {{ market_score | round(1) }}/100, {{ city_name }} is one of the stronger padel markets in {{ country_name_en }} — higher occupancy and pricing typically follow dense, competitive markets. {% elif market_score >= 35 %}A market score of {{ market_score | round(1) }}/100 reflects a mid-tier market: enough supply to have competitive pricing, but room for new venues to grow. {% else %}A market score of {{ market_score | round(1) }}/100 indicates an early-stage market where pricing and occupancy benchmarks may shift as the sport grows. {% endif %}
|
||||
{{ city_name }} has {{ padel_venue_count }} padel venues for a population of {% if population >= 1000000 %}{{ (population / 1000000) | round(1) }}M{% else %}{{ (population / 1000) | round(0) | int }}K{% endif %} ({{ venues_per_100k | round(1) }} venues per 100K residents). {% if opportunity_score >= 65 %}With a <a href="/{{ language }}/padelnomics-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</a> of {{ opportunity_score | round(1) }}/100, {{ city_name }} is among the most promising investment locations in {{ country_name_en }}. {% elif opportunity_score >= 40 %}A <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score of {{ opportunity_score | round(1) }}/100 reflects solid investment potential: enough market for competitive pricing, but room for new venues. {% else %}A <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score of {{ opportunity_score | round(1) }}/100 indicates a well-served market — differentiation through quality and location becomes critical. {% endif %}
|
||||
|
||||
Venue density of {{ venues_per_100k | round(1) }} per 100K residents directly influences pricing: {% if venues_per_100k >= 3.0 %}higher density means more competition, which tends to stabilize or compress prices.{% elif venues_per_100k >= 1.0 %}moderate density supports market-rate pricing with room for growth.{% else %}low density gives operators more pricing power — provided demand exists.{% endif %}
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ natural_key: country_slug
|
||||
languages: [en, de]
|
||||
url_pattern: "/markets/{{ country_slug }}"
|
||||
title_pattern: "{% if language == 'de' %}Padel in {{ country_name_en }} — Marktüberblick {{ 'now' | datetimeformat('%Y') }}{% else %}Padel in {{ country_name_en }} — Market Overview {{ 'now' | datetimeformat('%Y') }}{% endif %}"
|
||||
meta_description_pattern: "{% if language == 'de' %}{{ total_venues }} Padelanlagen in {{ city_count }} Städten in {{ country_name_en }}. padelnomics Market Score, Preisdaten und Investmentanalysen für jede Stadt.{% else %}{{ total_venues }} padel venues across {{ city_count }} cities in {{ country_name_en }}. padelnomics Market Score, pricing data, and investment analysis for each city.{% endif %}"
|
||||
meta_description_pattern: "{% if language == 'de' %}{{ total_venues }} Padelanlagen in {{ city_count }} Städten in {{ country_name_en }}. Padelnomics Score, Preisdaten und Investmentanalysen für jede Stadt.{% else %}{{ total_venues }} padel venues across {{ city_count }} cities in {{ country_name_en }}. Padelnomics Score, pricing data, and investment analysis for each city.{% endif %}"
|
||||
schema_type: [Article, FAQPage]
|
||||
priority_column: total_venues
|
||||
---
|
||||
@@ -25,15 +25,9 @@ priority_column: total_venues
|
||||
<div class="stats-strip__value">{{ city_count }}</div>
|
||||
</div>
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</div>
|
||||
<div class="stats-strip__value" style="color:{% if avg_market_score >= 55 %}#16A34A{% elif avg_market_score >= 35 %}#D97706{% else %}#DC2626{% endif %}">{{ avg_market_score }}<span class="stats-strip__unit">/100</span></div>
|
||||
</div>
|
||||
{% if avg_opportunity_score %}
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score</div>
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</div>
|
||||
<div class="stats-strip__value" style="color:{% if avg_opportunity_score >= 65 %}#16A34A{% elif avg_opportunity_score >= 40 %}#D97706{% else %}#DC2626{% endif %}">{{ avg_opportunity_score }}<span class="stats-strip__unit">/100</span></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label">Median Spitzenpreis</div>
|
||||
<div class="stats-strip__value">{% if median_peak_rate %}{{ median_peak_rate | int }}{% else %}—{% endif %}<span class="stats-strip__unit">{% if median_peak_rate and price_currency %}{{ price_currency }}/Std{% endif %}</span></div>
|
||||
@@ -42,19 +36,17 @@ priority_column: total_venues
|
||||
|
||||
<div id="country-map" data-country-slug="{{ country_slug }}" style="height:360px; border-radius:12px; margin-bottom:1.5rem;"></div>
|
||||
|
||||
In {{ country_name_en }} erfassen wir aktuell **{{ total_venues }} Padelanlagen** in **{{ city_count }} Städten**. Der durchschnittliche <a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</a> liegt bei **{{ avg_market_score }}/100**{% if avg_market_score >= 55 %} — ein starker Markt mit breiter Infrastruktur und belastbaren Preisdaten{% elif avg_market_score >= 35 %} — ein wachsender Markt mit guter Abdeckung{% else %} — ein aufstrebender Markt, in dem Früheinsteiger noch Premiumstandorte sichern können{% endif %}.
|
||||
In {{ country_name_en }} erfassen wir aktuell **{{ total_venues }} Padelanlagen** in **{{ city_count }} Städten**. Der durchschnittliche <a href="/{{ language }}/padelnomics-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</a> liegt bei **{{ avg_opportunity_score }}/100** — {% if avg_opportunity_score >= 65 %}hohes Investitionspotenzial mit relevanten Versorgungslücken{% elif avg_opportunity_score >= 40 %}solides Potenzial, der Markt bietet noch Raum für neue Standorte{% else %}ein bereits gut versorgter Markt, der sorgfältige Standortwahl erfordert{% endif %}.
|
||||
|
||||
## Marktlandschaft
|
||||
|
||||
Padel wächst in {{ country_name_en }} mit bemerkenswertem Tempo. Unsere Daten zeigen {{ total_venues }} erfasste Anlagen — eine Zahl, die angesichts nicht auf Buchungsplattformen gelisteter Clubs vermutlich noch höher liegt. Der durchschnittliche <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score von {{ avg_market_score }}/100 über {{ city_count }} Städte spiegelt sowohl die Marktreife als auch die Datenverfügbarkeit wider.
|
||||
Padel wächst in {{ country_name_en }} mit bemerkenswertem Tempo. Unsere Daten zeigen {{ total_venues }} erfasste Anlagen — eine Zahl, die angesichts nicht auf Buchungsplattformen gelisteter Clubs vermutlich noch höher liegt. Der durchschnittliche <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score von {{ avg_opportunity_score }}/100 über {{ city_count }} Städte bewertet das Investitionspotenzial anhand von Versorgungslücken, Einzugsgebiet, Marktreife und Sportaffinität.
|
||||
|
||||
{% if avg_market_score >= 55 %}Märkte mit Scores über 55 weisen in der Regel eine etablierte Spielerbasis, belastbare Preisdaten und berechenbare Nachfragemuster auf — entscheidend für eine solide Finanzplanung. Dennoch bleiben viele Städte unterversorgt: Selbst in reifen Märkten variiert die Anlagendichte pro 100.000 Einwohner erheblich.{% elif avg_market_score >= 35 %}Ein Score im mittleren Bereich deutet auf eine Wachstumsphase hin: Die Nachfrage ist nachweisbar, die Anlageninfrastruktur baut sich auf, und Preise haben sich noch nicht vollständig auf Wettbewerbsniveau eingependelt. Das eröffnet Chancen für gut positionierte Neueintritte.{% else %}Aufstrebende Märkte bieten First-Mover-Vorteile — weniger direkte Konkurrenz, potenziell attraktivere Mietkonditionen und die Möglichkeit, eine loyale Spielerbasis aufzubauen, bevor sich der Markt verdichtet.{% endif %}
|
||||
|
||||
{% if avg_opportunity_score %}Der durchschnittliche **<a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score</a> von {{ avg_opportunity_score }}/100** zeigt, wie viel Investitionspotenzial in {{ country_name_en }} noch unerschlossen ist. {% if avg_opportunity_score >= 60 and avg_market_score < 40 %}Die Kombination aus hohem Opportunity Score und moderatem Market Score macht {{ country_name_en }} besonders interessant: Nachfragepotenzial und Sportaffinität sind vorhanden, die Infrastruktur noch im Aufbau — First-Mover-Konditionen für gut gewählte Standorte.{% elif avg_opportunity_score >= 60 %}Trotz eines bereits aktiven Markts gibt es noch Standorte mit erheblichem Potenzial — vor allem in mittelgroßen Städten und an der Peripherie großer Ballungsräume.{% else %}Viele Standorte in {{ country_name_en }} sind bereits gut versorgt. Neue Projekte brauchen eine sorgfältige Standortanalyse und ein klares Differenzierungsprofil.{% endif %}{% endif %}
|
||||
{% if avg_opportunity_score >= 65 %}Ein Durchschnittsscore über 65 signalisiert relevante Versorgungslücken bei gleichzeitig vorhandener Nachfrage. Selbst in Regionen mit etablierter Padel-Infrastruktur variiert die Anlagendichte pro 100.000 Einwohner erheblich — lokale Analyse lohnt sich.{% elif avg_opportunity_score >= 40 %}Ein Score im mittleren Bereich deutet auf eine Wachstumsphase hin: Die Nachfrage ist nachweisbar, die Anlageninfrastruktur baut sich auf, und gut positionierte Standorte bieten noch Chancen für Neueintritte.{% else %}Viele Standorte in {{ country_name_en }} sind bereits gut versorgt. Neue Projekte brauchen eine sorgfältige Standortanalyse und ein klares Differenzierungsprofil.{% endif %}
|
||||
|
||||
## Top-Städte in {{ country_name_en }}
|
||||
|
||||
Die Rangfolge basiert auf dem <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score — einem Komposit aus Bevölkerungsgröße, Anlagendichte und Datenqualität. Städte mit höherem Score bieten in der Regel größere adressierbare Märkte und belastbarere Benchmarks für die Finanzplanung.
|
||||
Die Rangfolge basiert auf dem <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score — einer Bewertung des Investitionspotenzials anhand von Versorgungslücken, Einzugsgebiet, Marktreife und Sportaffinität. Städte mit höherem Score bieten in der Regel die besten Standortbedingungen für neue Anlagen.
|
||||
|
||||
| Stadt | Marktanalyse |
|
||||
|-------|-------------|
|
||||
@@ -63,17 +55,6 @@ Die Rangfolge basiert auf dem <span style="font-family:'Bricolage Grotesque',san
|
||||
|
||||
Jede Stadtseite enthält detaillierte Preisdaten, eine Kosten-Nutzen-Analyse und einen vorkonfigurierten Finanzplaner mit lokalen Marktdaten als Ausgangswerte.
|
||||
|
||||
{% if top_opportunity_names and top_opportunity_names | length > 0 %}
|
||||
## Top-Standorte nach Investitionspotenzial
|
||||
|
||||
Diese Städte erzielen die höchsten Opportunity Scores in {{ country_name_en }} — dort treffen adressierbare Nachfrage auf Versorgungslücken und starke Standortfaktoren. Sie können sich von den Top-Städten nach Market Score unterscheiden: Der Market Score belohnt bestehende Märkte, der Opportunity Score unerschlossenes Potenzial.
|
||||
|
||||
| Stadt | Investmentanalyse |
|
||||
|-------|-------------------|
|
||||
{% for i in range(top_opportunity_names | length) %}| [{{ top_opportunity_names[i] }}](/{{ language }}/markets/{{ country_slug }}/{{ top_opportunity_slugs[i] }}) | [Marktanalyse ansehen →](/{{ language }}/markets/{{ country_slug }}/{{ top_opportunity_slugs[i] }}) |
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
## Preisüberblick
|
||||
|
||||
{% if median_peak_rate %}
|
||||
@@ -112,7 +93,7 @@ Wir erfassen aktuell **{{ total_venues }} Padelanlagen** in **{{ city_count }} S
|
||||
<details>
|
||||
<summary>Welche Stadt in {{ country_name_en }} eignet sich am besten für eine Padelhalle?</summary>
|
||||
|
||||
Unsere Spitzenstadt nach <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score ist **{{ top_city_names[0] }}** (Score: {{ top_city_market_score }}/100). Der Score kombiniert Bevölkerungsgröße, Anlagendichte und Datenqualität. Eine hohe Punktzahl deutet auf einen großen adressierbaren Markt mit validierten Preisdaten hin. Die beste Stadt für *Dein* Vorhaben hängt aber von Faktoren wie Flächenverfügbarkeit, lokalem Wettbewerb und Deiner Zielgruppe ab. Nutze den <a href="/{{ language }}/planner">Finanzplaner</a>, um verschiedene Standorte durchzurechnen.
|
||||
Unsere Spitzenstadt nach <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score ist **{{ top_city_names[0] }}**. Der Score bewertet Investitionspotenzial anhand von Versorgungslücken, Einzugsgebiet, Marktreife und Sportaffinität. Die beste Stadt für *Dein* Vorhaben hängt aber von Faktoren wie Flächenverfügbarkeit, lokalem Wettbewerb und Deiner Zielgruppe ab. Nutze den <a href="/{{ language }}/planner">Finanzplaner</a>, um verschiedene Standorte durchzurechnen.
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@@ -124,23 +105,15 @@ Unsere Spitzenstadt nach <span style="font-family:'Bricolage Grotesque',sans-ser
|
||||
<details>
|
||||
<summary>Wie schnell wächst Padel in {{ country_name_en }}?</summary>
|
||||
|
||||
Padel gehört zu den am schnellsten wachsenden Racketsportarten in Europa. Mit {{ total_venues }} erfassten Anlagen in {{ city_count }} Städten zeigt {{ country_name_en }} {% if avg_market_score >= 55 %}bereits eine reife Infrastruktur — Wachstum kommt hier vor allem aus steigender Spielfrequenz und Premiumangeboten{% elif avg_market_score >= 35 %}eine klare Wachstumsdynamik mit steigender Nachfrage und neuen Anlagen{% else %}ein frühes Wachstumsstadium mit großem Potenzial für Neueintritte{% endif %}. Die Sportart profitiert von niedriger Einstiegshürde, hohem Spaßfaktor und starker Mund-zu-Mund-Verbreitung.
|
||||
Padel gehört zu den am schnellsten wachsenden Racketsportarten in Europa. Mit {{ total_venues }} erfassten Anlagen in {{ city_count }} Städten zeigt {{ country_name_en }} {% if avg_opportunity_score >= 65 %}noch erhebliches Wachstumspotenzial — viele Standorte sind unterversorgt{% elif avg_opportunity_score >= 40 %}eine klare Wachstumsdynamik mit steigender Nachfrage und neuen Anlagen{% else %}bereits eine gut ausgebaute Infrastruktur — Wachstum kommt hier vor allem aus steigender Spielfrequenz und Premiumangeboten{% endif %}. Die Sportart profitiert von niedriger Einstiegshürde, hohem Spaßfaktor und starker Mund-zu-Mund-Verbreitung.
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Welche Städte haben die besten Preisdaten?</summary>
|
||||
|
||||
Städte mit höherem <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score (wie {{ top_city_names[0] }}) haben in der Regel die umfassendsten Preisdaten, weil dort mehr Anlagen auf Playtomic gelistet sind. In unserem <a href="/{{ language }}/markets/{{ country_slug }}">{{ country_name_en }}-Marktüberblick</a> findest Du alle Städte nach Market Score sortiert.
|
||||
Städte mit höherem <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score (wie {{ top_city_names[0] }}) haben in der Regel die umfassendsten Preisdaten, weil dort mehr Anlagen auf Playtomic gelistet sind. In unserem <a href="/{{ language }}/markets/{{ country_slug }}">{{ country_name_en }}-Marktüberblick</a> findest Du alle Städte nach Score sortiert.
|
||||
</details>
|
||||
|
||||
{% if avg_opportunity_score %}
|
||||
<details>
|
||||
<summary>Was ist der Unterschied zwischen Market Score und Opportunity Score?</summary>
|
||||
|
||||
Der **Market Score (Ø {{ avg_market_score }}/100)** bewertet die Marktreife: Bevölkerungsgröße, bestehende Anlagendichte und Datenqualität. Der **Opportunity Score (Ø {{ avg_opportunity_score }}/100)** dreht die Logik um: Er misst Investitionspotenzial — Versorgungslücken, Einzugsgebiet und Tennisinfrastruktur als Proxy für Racket-Sport-Affinität. Für Standortentscheidungen ist die Kombination beider Scores am aussagekräftigsten: Hoher Opportunity Score bei niedrigem Market Score signalisiert White-Space-Chancen. Hoher Wert in beiden zeigt Märkte, in denen Nachfrage belegt ist und trotzdem noch offene Standorte existieren.
|
||||
</details>
|
||||
{% endif %}
|
||||
|
||||
<div style="background:#EFF6FF;border:1px solid #BFDBFE;border-radius:12px;padding:1rem 1.25rem;margin:1.5rem 0;">
|
||||
Du überlegst, eine Padelhalle in {{ country_name_en }} zu eröffnen? Rechne Dein Vorhaben mit echten Marktdaten durch →
|
||||
<a href="/{{ language }}/planner" style="font-weight:600;color:#1D4ED8;margin-left:0.25rem;">Zum Finanzplaner</a>
|
||||
@@ -159,15 +132,9 @@ Der **Market Score (Ø {{ avg_market_score }}/100)** bewertet die Marktreife: Be
|
||||
<div class="stats-strip__value">{{ city_count }}</div>
|
||||
</div>
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</div>
|
||||
<div class="stats-strip__value" style="color:{% if avg_market_score >= 55 %}#16A34A{% elif avg_market_score >= 35 %}#D97706{% else %}#DC2626{% endif %}">{{ avg_market_score }}<span class="stats-strip__unit">/100</span></div>
|
||||
</div>
|
||||
{% if avg_opportunity_score %}
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score</div>
|
||||
<div class="stats-strip__label"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</div>
|
||||
<div class="stats-strip__value" style="color:{% if avg_opportunity_score >= 65 %}#16A34A{% elif avg_opportunity_score >= 40 %}#D97706{% else %}#DC2626{% endif %}">{{ avg_opportunity_score }}<span class="stats-strip__unit">/100</span></div>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="stats-strip__item">
|
||||
<div class="stats-strip__label">Median Peak Rate</div>
|
||||
<div class="stats-strip__value">{% if median_peak_rate %}{{ median_peak_rate | int }}{% else %}—{% endif %}<span class="stats-strip__unit">{% if median_peak_rate and price_currency %}{{ price_currency }}/hr{% endif %}</span></div>
|
||||
@@ -176,19 +143,17 @@ Der **Market Score (Ø {{ avg_market_score }}/100)** bewertet die Marktreife: Be
|
||||
|
||||
<div id="country-map" data-country-slug="{{ country_slug }}" style="height:360px; border-radius:12px; margin-bottom:1.5rem;"></div>
|
||||
|
||||
{{ country_name_en }} has **{{ total_venues }} padel venues** tracked across **{{ city_count }} cities**. The average <a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score</a> across tracked cities is **{{ avg_market_score }}/100**{% if avg_market_score >= 55 %} — a strong market with widespread venue penetration and solid pricing data{% elif avg_market_score >= 35 %} — a growing market with healthy city coverage{% else %} — an emerging market where early entrants can still capture prime locations{% endif %}.
|
||||
{{ country_name_en }} has **{{ total_venues }} padel venues** tracked across **{{ city_count }} cities**. The average <a href="/{{ language }}/padelnomics-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score</a> is **{{ avg_opportunity_score }}/100** — {% if avg_opportunity_score >= 65 %}strong investment potential with meaningful supply gaps{% elif avg_opportunity_score >= 40 %}solid potential with room for new locations{% else %}a well-served market requiring careful site selection{% endif %}.
|
||||
|
||||
## Market Landscape
|
||||
|
||||
Padel is growing rapidly across {{ country_name_en }}. Our data tracks {{ total_venues }} venues — a figure that likely understates the true count given independent clubs not listed on booking platforms. The average <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score of {{ avg_market_score }}/100 across {{ city_count }} cities reflects both market maturity and data availability.
|
||||
Padel is growing rapidly across {{ country_name_en }}. Our data tracks {{ total_venues }} venues — a figure that likely understates the true count given independent clubs not listed on booking platforms. The average <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score of {{ avg_opportunity_score }}/100 across {{ city_count }} cities evaluates investment potential based on supply gaps, catchment reach, market maturity, and sports culture.
|
||||
|
||||
{% if avg_market_score >= 55 %}Markets scoring above 55 typically show an established player base, reliable pricing data, and predictable demand patterns — all critical for sound financial planning. Yet even in mature markets, venue density per 100,000 residents varies significantly between cities, leaving genuine supply gaps even in established markets.{% elif avg_market_score >= 35 %}A mid-range score signals a growth phase: demand is proven, venue infrastructure is building, and pricing hasn't fully settled to competitive levels. This creates opportunities for well-positioned new entrants who can secure good locations before the market matures.{% else %}Emerging markets offer first-mover advantages — less direct competition, potentially better lease terms, and the opportunity to build a loyal player base before the market fills out. The trade-off is less pricing data and more uncertainty in demand projections.{% endif %}
|
||||
|
||||
{% if avg_opportunity_score %}The average **<a href="/{{ language }}/market-score" style="text-decoration:none"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Opportunity Score</a> of {{ avg_opportunity_score }}/100** shows how much investment potential remains untapped in {{ country_name_en }}. {% if avg_opportunity_score >= 60 and avg_market_score < 40 %}The combination of a high Opportunity Score and a moderate Market Score makes {{ country_name_en }} particularly attractive for new entrants: demand potential and sports culture are there, infrastructure is still building — first-mover conditions for well-chosen locations.{% elif avg_opportunity_score >= 60 %}Despite an already active market, locations with significant potential remain — particularly in mid-size cities and at the periphery of major metro areas.{% else %}Many locations in {{ country_name_en }} are already well-served. New projects need careful site selection and a clear differentiation strategy to compete.{% endif %}{% endif %}
|
||||
{% if avg_opportunity_score >= 65 %}A score above 65 signals meaningful supply gaps alongside existing demand. Even in regions with established padel infrastructure, venue density per 100,000 residents varies significantly between cities — local analysis pays off.{% elif avg_opportunity_score >= 40 %}A mid-range score signals a growth phase: demand is proven, venue infrastructure is building, and well-positioned locations still offer opportunities for new entrants.{% else %}Many locations in {{ country_name_en }} are already well-served. New projects need careful site selection and a clear differentiation strategy to compete.{% endif %}
|
||||
|
||||
## Top Cities in {{ country_name_en }}
|
||||
|
||||
Cities are ranked by <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score — a composite of population size, venue density, and data quality. Higher-scoring cities generally offer larger addressable markets and more reliable benchmarks for financial planning.
|
||||
Cities are ranked by <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score — evaluating investment potential based on supply gaps, catchment reach, market maturity, and sports culture. Higher-scoring cities generally offer the strongest conditions for new facilities.
|
||||
|
||||
| City | Market Analysis |
|
||||
|------|----------------|
|
||||
@@ -197,17 +162,6 @@ Cities are ranked by <span style="font-family:'Bricolage Grotesque',sans-serif;f
|
||||
|
||||
Each city page includes detailed pricing data, a cost-benefit analysis, and a pre-configured financial planner seeded with local market data.
|
||||
|
||||
{% if top_opportunity_names and top_opportunity_names | length > 0 %}
|
||||
## Top Locations by Investment Potential
|
||||
|
||||
These cities score highest on the Opportunity Score in {{ country_name_en }} — where addressable demand meets supply gaps and strong location fundamentals. They may differ from the top Market Score cities: the Market Score rewards established markets, the Opportunity Score rewards untapped potential.
|
||||
|
||||
| City | Market Analysis |
|
||||
|------|----------------|
|
||||
{% for i in range(top_opportunity_names | length) %}| [{{ top_opportunity_names[i] }}](/{{ language }}/markets/{{ country_slug }}/{{ top_opportunity_slugs[i] }}) | [View investment analysis →](/{{ language }}/markets/{{ country_slug }}/{{ top_opportunity_slugs[i] }}) |
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
## Pricing Overview
|
||||
|
||||
{% if median_peak_rate %}
|
||||
@@ -246,7 +200,7 @@ We currently track **{{ total_venues }} padel venues** across **{{ city_count }}
|
||||
<details>
|
||||
<summary>Which city in {{ country_name_en }} is best for a padel center?</summary>
|
||||
|
||||
Our top-ranked city by <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score is **{{ top_city_names[0] }}** (score: {{ top_city_market_score }}/100). The <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score combines population size, existing venue density, and data quality — a high score indicates a large addressable market with validated pricing data. However, the best city for *you* depends on land availability, local competition, and your target customer profile. Use the <a href="/{{ language }}/planner">financial planner</a> to model different locations side by side.
|
||||
Our top-ranked city by <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Score is **{{ top_city_names[0] }}**. The score evaluates investment potential based on supply gaps, catchment reach, market maturity, and sports culture. However, the best city for *you* depends on land availability, local competition, and your target customer profile. Use the <a href="/{{ language }}/planner">financial planner</a> to model different locations side by side.
|
||||
</details>
|
||||
|
||||
<details>
|
||||
@@ -258,23 +212,15 @@ Our top-ranked city by <span style="font-family:'Bricolage Grotesque',sans-serif
|
||||
<details>
|
||||
<summary>How fast is padel growing in {{ country_name_en }}?</summary>
|
||||
|
||||
Padel is one of the fastest-growing racquet sports in Europe. With {{ total_venues }} venues tracked across {{ city_count }} cities, {{ country_name_en }} shows {% if avg_market_score >= 55 %}a mature infrastructure — growth here comes mainly from increasing play frequency and premium offerings{% elif avg_market_score >= 35 %}clear growth momentum with rising demand and new venues opening{% else %}early-stage growth with significant potential for new entrants{% endif %}. The sport benefits from a low barrier to entry, high enjoyment factor, and strong word-of-mouth growth among players.
|
||||
Padel is one of the fastest-growing racquet sports in Europe. With {{ total_venues }} venues tracked across {{ city_count }} cities, {{ country_name_en }} shows {% if avg_opportunity_score >= 65 %}significant untapped potential — many locations remain underserved{% elif avg_opportunity_score >= 40 %}clear growth momentum with rising demand and new venues opening{% else %}a well-developed infrastructure — growth comes mainly from increasing play frequency and premium offerings{% endif %}. The sport benefits from a low barrier to entry, high enjoyment factor, and strong word-of-mouth growth among players.
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Which cities have the best pricing data?</summary>
|
||||
|
||||
Cities with higher <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Scores (like {{ top_city_names[0] }}) typically have the most comprehensive pricing data, because more venues are listed on Playtomic. Browse our <a href="/{{ language }}/markets/{{ country_slug }}">{{ country_name_en }} market overview</a> to see all cities ranked by <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Market Score.
|
||||
Cities with higher <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> Scores (like {{ top_city_names[0] }}) typically have the most comprehensive pricing data, because more venues are listed on Playtomic. Browse our <a href="/{{ language }}/markets/{{ country_slug }}">{{ country_name_en }} market overview</a> to see all cities ranked by score.
|
||||
</details>
|
||||
|
||||
{% if avg_opportunity_score %}
|
||||
<details>
|
||||
<summary>What is the difference between Market Score and Opportunity Score?</summary>
|
||||
|
||||
The **Market Score (avg. {{ avg_market_score }}/100)** measures market maturity: population size, existing venue density, and data quality. The **Opportunity Score (avg. {{ avg_opportunity_score }}/100)** inverts that logic: it scores investment potential based on supply gaps, catchment reach, and tennis infrastructure as a proxy for racket sport demand. For site selection, the combination of both scores is the most informative signal. A high Opportunity Score with a low Market Score points to white-space locations. High on both means proven demand with open sites still available.
|
||||
</details>
|
||||
{% endif %}
|
||||
|
||||
<div style="background:#EFF6FF;border:1px solid #BFDBFE;border-radius:12px;padding:1rem 1.25rem;margin:1.5rem 0;">
|
||||
Considering a padel center in {{ country_name_en }}? Model your investment with real market data →
|
||||
<a href="/{{ language }}/planner" style="font-weight:600;color:#1D4ED8;margin-left:0.25rem;">Open the Planner</a>
|
||||
|
||||
@@ -16,7 +16,23 @@
|
||||
<p class="text-slate">{{ t.mkt_subheading }}</p>
|
||||
</header>
|
||||
|
||||
<div id="markets-map" style="height:420px; border-radius:12px;" class="mb-6"></div>
|
||||
<div id="markets-map" style="height:420px; border-radius:12px;" class="mb-4"></div>
|
||||
|
||||
<!-- Map legend -->
|
||||
<div class="mb-6" style="display:flex; flex-wrap:wrap; gap:1rem 1.5rem; align-items:center; font-size:0.82rem; color:#64748B;">
|
||||
<span style="display:flex; align-items:center; gap:0.3rem;">
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#15803D;"></span>≥80
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#0D9488;margin-left:4px;"></span>≥60
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#D97706;margin-left:4px;"></span>≥40
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#EA580C;margin-left:4px;"></span>≥20
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#DC2626;margin-left:4px;"></span><20
|
||||
</span>
|
||||
<span style="display:flex; align-items:center; gap:0.35rem;">
|
||||
<span style="display:inline-block; width:12px; height:12px; border-radius:50%; background:#64748B; border:2px solid white; box-shadow:0 1px 3px rgba(0,0,0,0.2);"></span>
|
||||
<span style="display:inline-block; width:18px; height:18px; border-radius:50%; background:#64748B; border:2px solid white; box-shadow:0 1px 3px rgba(0,0,0,0.2);"></span>
|
||||
{{ t.mkt_legend_size }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<!-- Filters -->
|
||||
<div class="card mb-8">
|
||||
@@ -68,30 +84,18 @@
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ url_for('static', filename='vendor/leaflet/leaflet.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/map-markers.js') }}"></script>
|
||||
<script>
|
||||
window.__MAP_T = {score_label:"{{ t.map_score_label }}",venues:"{{ t.map_venues }}",cities:"{{ t.map_cities }}"};
|
||||
(function() {
|
||||
var sc = PNMarkers.scoreColor;
|
||||
var T = window.__MAP_T;
|
||||
var map = L.map('markets-map', {scrollWheelZoom: false}).setView([48.5, 10], 4);
|
||||
L.tileLayer('https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png', {
|
||||
attribution: '© <a href="https://www.openstreetmap.org/copyright">OSM</a> © <a href="https://carto.com/">CARTO</a>',
|
||||
maxZoom: 18
|
||||
}).addTo(map);
|
||||
|
||||
function scoreColor(score) {
|
||||
if (score >= 60) return '#16A34A';
|
||||
if (score >= 30) return '#D97706';
|
||||
return '#DC2626';
|
||||
}
|
||||
|
||||
function makeIcon(size, color) {
|
||||
var s = Math.round(size);
|
||||
return L.divIcon({
|
||||
className: '',
|
||||
html: '<div class="pn-marker" style="width:' + s + 'px;height:' + s + 'px;background:' + color + ';opacity:0.82;"></div>',
|
||||
iconSize: [s, s],
|
||||
iconAnchor: [s / 2, s / 2],
|
||||
});
|
||||
}
|
||||
|
||||
var data = {{ map_countries | tojson }};
|
||||
if (data.length) {
|
||||
var maxV = Math.max.apply(null, data.map(function(d) { return d.total_venues; }));
|
||||
@@ -99,13 +103,13 @@
|
||||
data.forEach(function(c) {
|
||||
if (!c.lat || !c.lon) return;
|
||||
var size = 12 + 44 * Math.sqrt(c.total_venues / maxV);
|
||||
var color = scoreColor(c.avg_market_score);
|
||||
var oppColor = c.avg_opportunity_score >= 60 ? '#16A34A' : (c.avg_opportunity_score >= 30 ? '#D97706' : '#3B82F6');
|
||||
var score = c.avg_opportunity_score || 0;
|
||||
var hex = sc(score);
|
||||
var tip = '<strong>' + c.country_name_en + '</strong><br>'
|
||||
+ c.total_venues + ' venues · ' + c.city_count + ' cities<br>'
|
||||
+ '<span style="color:' + color + ';font-weight:600;">Padelnomics Market Score: ' + c.avg_market_score + '/100</span><br>'
|
||||
+ '<span style="color:' + oppColor + ';font-weight:600;">Padelnomics Opportunity Score: ' + (c.avg_opportunity_score || 0) + '/100</span>';
|
||||
L.marker([c.lat, c.lon], { icon: makeIcon(size, color) })
|
||||
+ '<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:' + hex + ';vertical-align:middle;margin-right:4px;"></span>'
|
||||
+ '<span style="color:' + hex + ';font-weight:600;">' + T.score_label + ': ' + score + '/100</span><br>'
|
||||
+ '<span style="color:#94A3B8;font-size:0.75rem;">' + c.total_venues + ' ' + T.venues + ' · ' + c.city_count + ' ' + T.cities + '</span>';
|
||||
L.marker([c.lat, c.lon], { icon: PNMarkers.makeIcon({ size: size, color: hex }) })
|
||||
.bindTooltip(tip, { className: 'map-tooltip', direction: 'top', offset: [0, -Math.round(size / 2)] })
|
||||
.on('click', function() { window.location = '/' + lang + '/markets/' + c.country_slug; })
|
||||
.addTo(map);
|
||||
|
||||
@@ -72,6 +72,8 @@ class Config:
|
||||
GSC_SITE_URL: str = os.getenv("GSC_SITE_URL", "")
|
||||
BING_WEBMASTER_API_KEY: str = os.getenv("BING_WEBMASTER_API_KEY", "")
|
||||
BING_SITE_URL: str = os.getenv("BING_SITE_URL", "")
|
||||
INDEXNOW_KEY: str = os.getenv("INDEXNOW_KEY", "")
|
||||
CLARITY_PROJECT_ID: str = os.getenv("CLARITY_PROJECT_ID", "")
|
||||
|
||||
RESEND_API_KEY: str = os.getenv("RESEND_API_KEY", "")
|
||||
EMAIL_FROM: str = _env("EMAIL_FROM", "hello@padelnomics.io")
|
||||
|
||||
@@ -6,6 +6,28 @@
|
||||
<meta name="description" content="{{ t.dir_page_meta_desc | tformat(count=total_suppliers, countries=total_countries) }}">
|
||||
<meta property="og:title" content="{{ t.dir_page_title }} - {{ config.APP_NAME }}">
|
||||
<meta property="og:description" content="{{ t.dir_page_og_desc | tformat(count=total_suppliers, countries=total_countries) }}">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebPage",
|
||||
"name": "{{ t.dir_page_title }} - {{ config.APP_NAME }}",
|
||||
"description": "{{ t.dir_page_meta_desc | tformat(count=total_suppliers, countries=total_countries) }}",
|
||||
"url": "{{ config.BASE_URL }}/{{ lang }}/directory/",
|
||||
"inLanguage": "{{ lang }}",
|
||||
"isPartOf": {"@type": "WebSite", "name": "Padelnomics", "url": "{{ config.BASE_URL }}"}
|
||||
},
|
||||
{
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{"@type": "ListItem", "position": 1, "name": "Home", "item": "{{ config.BASE_URL }}/{{ lang }}"},
|
||||
{"@type": "ListItem", "position": 2, "name": "{{ t.dir_page_title }}", "item": "{{ config.BASE_URL }}/{{ lang }}/directory/"}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
<style>
|
||||
:root {
|
||||
--dir-green: #15803D;
|
||||
|
||||
@@ -606,6 +606,20 @@
|
||||
"mkt_all_countries": "Alle Länder",
|
||||
"mkt_all_regions": "Alle Regionen",
|
||||
"mkt_no_results": "Keine Märkte gefunden. Passe Deine Filter an.",
|
||||
"mkt_legend_size": "Kreisgröße = Anzahl Anlagen",
|
||||
"mkt_legend_color": "Farbe = Padelnomics Score",
|
||||
"map_score_label": "Padelnomics Score",
|
||||
"map_venues": "Anlagen",
|
||||
"map_pop": "Einw.",
|
||||
"map_click_explore": "Klicken für Details →",
|
||||
"map_coming_soon": "Demnächst",
|
||||
"map_courts": "Plätze",
|
||||
"map_indoor": "Indoor",
|
||||
"map_outdoor": "Outdoor",
|
||||
"map_cities": "Städte",
|
||||
"map_existing_venues": "bestehende Anlagen",
|
||||
"map_km_nearest": "km zur nächsten Anlage",
|
||||
"map_no_nearby": "Keine Anlagen in der Nähe",
|
||||
"waitlist_markets_title": "Marktdaten — Demnächst verfügbar",
|
||||
"waitlist_markets_sub": "Detaillierte Marktberichte für Padel-Investoren: Baukosten, Umsatz-Benchmarks, Auslastungsdaten und ROI-Analysen nach Stadt und Region.",
|
||||
"waitlist_markets_feature1": "Echte Kostendaten aus laufenden Anlagen in über 30 Ländern",
|
||||
@@ -1587,7 +1601,7 @@
|
||||
"bp_lbl_funded_by_equity": "Eigenfinanziert",
|
||||
"bp_lbl_total": "Gesamt",
|
||||
"bp_lbl_venues_per_100k": "Anlagen je 100.000 Einwohner",
|
||||
"bp_lbl_market_score": "Markt-Score",
|
||||
"bp_lbl_padelnomics_score": "Padelnomics Score",
|
||||
"bp_lbl_median_peak_rate": "Median Hauptzeit-Preis",
|
||||
"bp_lbl_median_offpeak_rate": "Median Nebenzeit-Preis",
|
||||
"bp_lbl_median_occupancy": "Median-Auslastung",
|
||||
@@ -1688,80 +1702,54 @@
|
||||
"email_business_plan_preheader": "Professioneller Padel-Finanzplan — jetzt herunterladen",
|
||||
"email_footer_tagline": "Die Planungsplattform für Padel-Unternehmer",
|
||||
"email_footer_copyright": "© {year} {app_name}. Du erhältst diese E-Mail, weil du ein Konto hast oder eine Anfrage gestellt hast.",
|
||||
"footer_market_score": "Market Score",
|
||||
"mscore_page_title": "Der padelnomics Market Score — So messen wir Marktpotenzial",
|
||||
"mscore_meta_desc": "Der padelnomics Market Score bewertet Städte von 0 bis 100 nach ihrem Potenzial für Padel-Investitionen. Erfahre, wie Demografie, Wirtschaftskraft, Nachfragesignale und Datenabdeckung einfließen.",
|
||||
"mscore_og_desc": "Ein datengestützter Komposit-Score (0–100), der die Attraktivität einer Stadt für Padelanlagen-Investitionen misst. Was steckt dahinter — und was bedeutet er für Deine Planung?",
|
||||
"mscore_h1": "Der padelnomics Market Score",
|
||||
"mscore_subtitle": "Ein datengestütztes Maß für die Attraktivität einer Stadt als Padel-Investitionsstandort.",
|
||||
"mscore_dual_h2": "Zwei Scores, zwei Fragen",
|
||||
"mscore_dual_intro": "Padelnomics veröffentlicht zwei eigenständige Scores für jeden Markt. Sie beantworten unterschiedliche Fragen und basieren auf unterschiedlichen Methoden — beide zu kennen ist entscheidend für eine fundierte Investitionsentscheidung.",
|
||||
"mscore_reife_chip": "padelnomics Marktreife-Score™",
|
||||
"mscore_reife_question": "Wie etabliert ist dieser Padel-Markt?",
|
||||
"mscore_reife_desc": "Berechnet für Städte mit mindestens einer Padelanlage. Kombiniert Bevölkerungsgröße, Wirtschaftskraft, Nachfragesignale aus Buchungsplattformen und Datenvollständigkeit.",
|
||||
"mscore_potenzial_chip": "padelnomics Marktpotenzial-Score™",
|
||||
"mscore_potenzial_question": "Wo sollte ich eine Padelanlage bauen?",
|
||||
"mscore_potenzial_desc": "Berechnet für alle Standorte weltweit, auch dort, wo es noch keine Anlagen gibt. Angebotslücken, unterversorgte Einzugsgebiete und Schlägersportkultur schlagen positiv zu Buche — die entscheidenden Signale für Erstinvestitionen.",
|
||||
"mscore_what_h2": "Marktreife-Score: Was er misst",
|
||||
"mscore_what_intro": "Der padelnomics Marktreife-Score ist ein Komposit-Index von 0 bis 100, der bewertet, wie etabliert und attraktiv ein bestehender Padel-Markt ist. Er gilt ausschließlich für Städte mit mindestens einer Padelanlage — vier Datenkategorien fließen in eine einzige Kennzahl ein, damit Du schnell einschätzen kannst, welche Märkte sich genauer anzuschauen lohnen.",
|
||||
"mscore_cat_demo_h3": "Demografie",
|
||||
"mscore_cat_demo_p": "Bevölkerungsgröße als Indikator für den adressierbaren Markt. Größere Städte tragen in der Regel mehr Anlagen und höhere Auslastung.",
|
||||
"mscore_cat_econ_h3": "Wirtschaftskraft",
|
||||
"mscore_cat_econ_p": "Regionale Kaufkraft und Einkommensindikatoren. In Märkten mit höherem verfügbarem Einkommen ist die Nachfrage nach Freizeitsportarten wie Padel tendenziell stärker.",
|
||||
"mscore_cat_demand_h3": "Nachfrageindikatoren",
|
||||
"mscore_cat_demand_p": "Signale aus dem laufenden Betrieb bestehender Anlagen — Auslastungsraten, Buchungsdaten, Anzahl aktiver Standorte. Wo sich reale Nachfrage bereits messen lässt, ist das der stärkste Indikator.",
|
||||
"mscore_cat_data_h3": "Datenqualität",
|
||||
"mscore_cat_data_p": "Wie umfassend die Datenlage für eine Stadt ist. Ein Score auf Basis unvollständiger Daten ist weniger belastbar — wir machen das transparent, damit Du weißt, wo eigene Recherche sinnvoll ist.",
|
||||
"mscore_read_h2": "Marktreife-Score: Wie Du ihn liest",
|
||||
"mscore_band_high_label": "70–100: Starker Markt",
|
||||
"mscore_band_high_p": "Große Bevölkerung, hohe Wirtschaftskraft und nachgewiesene Nachfrage durch bestehende Anlagen. Diese Städte haben validierte Padel-Märkte mit belastbaren Benchmarks für die Finanzplanung.",
|
||||
"mscore_band_mid_label": "45–69: Solides Mittelfeld",
|
||||
"mscore_band_mid_p": "Gute Grundlagen mit Wachstumspotenzial. Genug Daten für fundierte Planung, aber weniger Wettbewerb als in den Top-Städten. Häufig der Sweet Spot für Neueinsteiger.",
|
||||
"mscore_band_low_label": "Unter 45: Früher Markt",
|
||||
"mscore_band_low_p": "Weniger validierte Daten oder kleinere Bevölkerung. Das heißt nicht, dass die Stadt unattraktiv ist — es kann weniger Wettbewerb und bessere Konditionen für Früheinsteiger bedeuten. Rechne mit mehr eigener Recherche vor Ort.",
|
||||
"mscore_read_note": "Ein niedriger Score bedeutet nicht automatisch eine schlechte Investition. Er kann auf begrenzte Datenlage oder einen noch jungen Markt hinweisen — weniger Wettbewerb und günstigere Einstiegsbedingungen sind möglich.",
|
||||
"mscore_sources_h2": "Datenquellen",
|
||||
"mscore_sources_p": "Der Market Score basiert auf Daten europäischer Statistikämter (Bevölkerung und Wirtschaftsindikatoren), Buchungsplattformen für Padelanlagen (Standortanzahl, Preise, Auslastung) und geografischen Datenbanken (Standortdaten). Die Daten werden monatlich aktualisiert.",
|
||||
"mscore_limits_h2": "Einschränkungen",
|
||||
"mscore_limits_p1": "Der Score bildet die verfügbare Datenlage ab, nicht die absolute Marktwahrheit. Städte, in denen weniger Anlagen auf Buchungsplattformen erfasst sind, können bei den Nachfrageindikatoren niedrigere Werte zeigen — selbst wenn die lokale Nachfrage hoch ist.",
|
||||
"mscore_limits_p2": "Der Score berücksichtigt keine lokalen Faktoren wie Immobilienkosten, Genehmigungszeiträume, Wettbewerbsdynamik oder regulatorische Rahmenbedingungen. Diese Aspekte sind entscheidend und erfordern Recherche vor Ort.",
|
||||
"mscore_limits_p3": "Nutze den Market Score als Ausgangspunkt für die Priorisierung, nicht als finale Investitionsentscheidung. Im Finanzplaner kannst Du Dein konkretes Szenario durchrechnen.",
|
||||
"mscore_cta_markets": "Stadtbewertungen ansehen",
|
||||
"mscore_cta_planner": "Investment modellieren",
|
||||
"mscore_faq_h2": "Häufig gestellte Fragen",
|
||||
"mscore_faq_q1": "Was ist der padelnomics Market Score?",
|
||||
"mscore_faq_a1": "Ein Komposit-Index von 0 bis 100, der die Attraktivität einer Stadt für Padelanlagen-Investitionen misst. Er kombiniert Demografie, Wirtschaftskraft, Nachfrageindikatoren und Datenqualität in einer vergleichbaren Kennzahl.",
|
||||
"mscore_faq_q2": "Wie oft wird der Score aktualisiert?",
|
||||
"mscore_faq_a2": "Monatlich. Neue Daten aus Statistikämtern, Buchungsplattformen und Standortdatenbanken werden regelmäßig extrahiert und verarbeitet. Der Score spiegelt immer die aktuellsten verfügbaren Daten wider.",
|
||||
"mscore_faq_q3": "Warum hat meine Stadt einen niedrigen Score?",
|
||||
"mscore_faq_a3": "Meist wegen begrenzter Datenabdeckung oder geringerer Bevölkerung. Ein niedriger Score bedeutet nicht, dass die Stadt unattraktiv ist — sondern dass uns weniger Daten zur Quantifizierung der Chance vorliegen. Eigene Recherche kann die Lücken schließen.",
|
||||
"mscore_faq_q4": "Kann ich Scores länderübergreifend vergleichen?",
|
||||
"mscore_faq_a4": "Ja. Die Methodik ist für alle Märkte einheitlich, sodass ein Score von 72 in Deutschland direkt vergleichbar ist mit einem 72 in Spanien oder Großbritannien.",
|
||||
"mscore_faq_q5": "Garantiert ein hoher Score eine gute Investition?",
|
||||
"mscore_faq_a5": "Nein. Der Score misst die Marktattraktivität auf Makroebene. Deine konkrete Investition hängt von Anlagentyp, Baukosten, Mietkonditionen und Dutzenden weiterer Faktoren ab. Im Finanzplaner kannst Du Dein Szenario mit echten Zahlen durchrechnen.",
|
||||
"mscore_pot_what_h2": "Marktpotenzial-Score: Was er misst",
|
||||
"mscore_pot_what_intro": "Der padelnomics Marktpotenzial-Score bewertet Investitionschancen an Standorten mit wenig oder gar keiner bestehenden Padel-Infrastruktur. Er erfasst alle Standorte weltweit — auch solche ohne eine einzige Anlage. Gedacht für Erstinvestoren auf der Suche nach unbestellten Märkten, nicht für den Vergleich bereits erschlossener Standorte.",
|
||||
"mscore_pot_cat_market_h3": "Adressierbarer Markt",
|
||||
"mscore_pot_cat_market_p": "Logarithmisch skalierte Bevölkerungsgröße, begrenzt auf 500.000 Einwohner. Das Potenzial ist bei mittelgroßen Städten am höchsten — groß genug für eine rentable Anlage, aber noch nicht von Großstadt-Betreibern erschlossen.",
|
||||
"mscore_pot_cat_econ_h3": "Wirtschaftskraft",
|
||||
"mscore_pot_cat_econ_p": "Kaufkraft auf Länderebene (KKS), normiert auf internationale Benchmarks. Maßgeblich für die Zahlungsbereitschaft bei Platzmieten im Zielbereich von 20–35 €/Std.",
|
||||
"mscore_pot_cat_gap_h3": "Angebotslücke",
|
||||
"mscore_pot_cat_gap_p": "Invertierte Anlagendichte: null Plätze pro 100.000 Einwohner ergibt die volle Punktzahl. Das ist das zentrale Signal, das den Marktpotenzial-Score vom Marktreife-Score unterscheidet — der weiße Fleck auf der Karte ist die Chance.",
|
||||
"mscore_pot_cat_catchment_h3": "Versorgungslücke",
|
||||
"mscore_pot_cat_catchment_p": "Entfernung zur nächsten bestehenden Padelanlage. Standorte mehr als 30 km vom nächsten Platz entfernt erhalten die volle Punktzahl — echte Versorgungslücken ohne nahe gelegene Alternative.",
|
||||
"mscore_pot_cat_tennis_h3": "Schlägersportkultur",
|
||||
"mscore_pot_cat_tennis_p": "Tennisplätze im Umkreis von 25 km als Indikator für etablierte Schlägersportnachfrage. Viele neue Padelanlagen entstehen innerhalb bestehender Tennisvereine oder direkt daneben — ein verlässlicher Frühindikator.",
|
||||
"mscore_pot_read_h2": "Marktpotenzial-Score: So liest Du ihn",
|
||||
"mscore_pot_band_high_label": "70–100: Hohes Potenzial",
|
||||
"mscore_pot_band_high_p": "Unterversorgtes Gebiet mit solider Bevölkerungsstruktur und Kaufkraft. Geringes Angebot, weit entfernt von der nächsten Anlage, nachgewiesene Schlägersportkultur. Hohe Priorität für Erstinvestoren.",
|
||||
"mscore_pot_band_mid_label": "45–69: Moderates Potenzial",
|
||||
"mscore_pot_band_mid_p": "Teilweise bereits vorhandenes Angebot, demografische Einschränkungen oder unklare Signallage. Lohnt sich für eine genauere Prüfung — lokale Faktoren können das Bild erheblich verändern.",
|
||||
"mscore_pot_band_low_label": "Unter 45: Geringeres Potenzial",
|
||||
"mscore_pot_band_low_p": "Markt bereits gut versorgt, Bevölkerungszahl gering oder Kaufkraft begrenzt. Konzentriere Dich auf höher bewertete Standorte — es sei denn, Du hast einen konkreten lokalen Vorteil.",
|
||||
"mscore_faq_q6": "Was ist der Unterschied zwischen dem padelnomics Marktreife-Score und dem padelnomics Marktpotenzial-Score?",
|
||||
"mscore_faq_a6": "Der padelnomics Marktreife-Score misst, wie etabliert und ausgereift ein bestehender Padel-Markt ist — er gilt nur für Städte mit mindestens einer Anlage. Der padelnomics Marktpotenzial-Score bewertet Investitionschancen in noch unbestellten Märkten und erfasst alle Standorte weltweit. Angebotslücken und unterversorgte Einzugsgebiete fließen positiv ein — auch dort, wo es noch gar keine Anlagen gibt.",
|
||||
"mscore_faq_q7": "Warum hat mein Ort einen hohen padelnomics Marktpotenzial-Score, aber keine Padelanlagen?",
|
||||
"mscore_faq_a7": "Genau darum geht es. Ein hoher padelnomics Marktpotenzial-Score signalisiert einen unterversorgten Standort: solide Bevölkerungsbasis, wirtschaftliche Kaufkraft, kein bestehendes Angebot und weite Entfernung zur nächsten Anlage. Das sind genau die Signale, die auf eine Pionierchance hinweisen — kein Zeichen für einen schwachen Markt.",
|
||||
"footer_padelnomics_score": "Padelnomics Score",
|
||||
"pnscore_page_title": "Padelnomics Score — So bewerten wir Padel-Investitionsstandorte",
|
||||
"pnscore_meta_desc": "Der Padelnomics Score bewertet das Investitionspotenzial von Padel-Standorten in Europa. Versorgungslücken, Einzugsgebiet, Marktreife und Sportaffinität in einem Score von 0-100.",
|
||||
"pnscore_og_desc": "Ein Score, der zeigt, wo sich eine Padelhalle lohnt. Methodik, Komponenten und Datenquellen erklärt.",
|
||||
"pnscore_subtitle": "Ein Score für Padel-Investitionspotenzial — Versorgungslücken, Einzugsgebiet, Marktreife und Sportaffinität auf einer Skala von 0 bis 100.",
|
||||
"pnscore_what_h2": "Was ist der Padelnomics Score?",
|
||||
"pnscore_what_intro": "Der Padelnomics Score ist ein Komposit-Index von 0 bis 100, der bewertet, wie attraktiv ein Standort für eine neue Padelanlage ist. Er kombiniert angebotsseitige Lücken (gibt es genug Courts?) mit nachfrageseitigen Signalen (Bevölkerung, Einkommen, Sportaffinität) und berücksichtigt die Marktreife. Ein hoher Score bedeutet: Es gibt adressierbare Nachfrage, das Gebiet ist unterversorgt und die Rahmenbedingungen begünstigen ein Investment.",
|
||||
"pnscore_components_h2": "Was der Score misst",
|
||||
"pnscore_components_intro": "Sechs gewichtete Komponenten fließen in den Gesamtscore ein. Jede erfasst einen anderen Aspekt des Investitionspotenzials.",
|
||||
"pnscore_cat_market_h3": "Adressierbarer Markt (15 Pkt)",
|
||||
"pnscore_cat_market_p": "Einzugsgebiet-Bevölkerung im Umkreis von ~24 km (H3 Res-5-Zelle + Nachbarn). Wurzelskaliert — ein Einzugsgebiet von 1 Mio. erreicht das Maximum. Größeres Einzugsgebiet bedeutet mehr potenzielle Spieler.",
|
||||
"pnscore_cat_econ_h3": "Wirtschaftskraft (10 Pkt)",
|
||||
"pnscore_cat_econ_p": "Regionales Einkommen in Kaufkraftstandards (KKS). Höheres verfügbares Einkommen stützt Premium-Preise und häufigeres Spielen. Daten von Eurostat (EU), Census (USA), ONS (UK).",
|
||||
"pnscore_cat_gap_h3": "Versorgungslücke (50 Pkt)",
|
||||
"pnscore_cat_gap_p": "Die gewichtigste Komponente. Misst zwei Signale: Anlagendichte-Lücke (wie weit unter 5 Courts pro 100K?) und Entfernungslücke (wie weit zur nächsten Anlage?). Gedämpft nach Marktreife — Länder mit wenigen oder keinen Padel-Anlagen erhalten reduzierten Punktwert, da eine Versorgungslücke ohne nachgewiesene Nachfrage spekulativ ist. Voller Punktwert erst ab 50+ Anlagen im Land.",
|
||||
"pnscore_cat_sports_h3": "Sportaffinität (10 Pkt)",
|
||||
"pnscore_cat_sports_p": "Tennisplatz-Dichte im Umkreis von 25 km als Proxy für Racketsport-Affinität. Regionen mit starker Tennis-Infrastruktur haben ein bereites Publikum für Padel — einen eng verwandten Sport mit niedrigerer Einstiegshürde.",
|
||||
"pnscore_cat_catchment_h3": "Baukosten-Erschwinglichkeit (5 Pkt)",
|
||||
"pnscore_cat_catchment_p": "Einkommen relativ zu lokalen Baukosten (Eurostat-Preisniveau-Index). Höhere Erschwinglichkeit bedeutet bessere Margen beim Bau — das Umsatzpotenzial wird nicht von den Baukosten aufgefressen.",
|
||||
"pnscore_cat_maturity_h3": "Markt-Spielraum (10 Pkt)",
|
||||
"pnscore_cat_maturity_p": "Invers zur durchschnittlichen Marktreife des Landes. Länder mit bereits gesättigten Märkten (z.B. Spanien) erhalten hier weniger Punkte — der nationale Markt ist wettbewerbsintensiv. Aufstrebende Märkte punkten höher — mehr Raum zum Wachsen.",
|
||||
"pnscore_read_h2": "Wie man den Score liest",
|
||||
"pnscore_band_high_label": "80+ — Ausgezeichnet",
|
||||
"pnscore_band_high_p": "Erstklassiges Investitionspotenzial. Erhebliche Versorgungslücken, starkes Einzugsgebiet und günstige Marktbedingungen. Diese Standorte sind erste Wahl für neue Anlagen.",
|
||||
"pnscore_band_good_label": "60-79 — Gut",
|
||||
"pnscore_band_good_p": "Starkes Potenzial bei etwas mehr Wettbewerb oder kleinerem Einzugsgebiet. Weiterhin attraktiv für gut positionierte Projekte mit klarer Differenzierungsstrategie.",
|
||||
"pnscore_band_mid_label": "40-59 — Moderat",
|
||||
"pnscore_band_mid_p": "Solide Grundlagen, aber der Markt ist teilweise versorgt. Erfolg hängt von präziser Standortwahl, Preisgestaltung und Anlagenqualität ab.",
|
||||
"pnscore_band_low_label": "20-39 — Unterdurchschnittlich",
|
||||
"pnscore_band_low_p": "Das Gebiet ist vergleichsweise gut versorgt oder zeigt schwächere Nachfragesignale. Neue Anlagen stehen im stärkeren Wettbewerb und brauchen ein überzeugendes Konzept.",
|
||||
"pnscore_sources_h2": "Datenquellen",
|
||||
"pnscore_sources_p": "Der Score nutzt mehrere offene und proprietäre Datenquellen: GeoNames (globale Städtebevölkerung, 140K+ Standorte), Eurostat (regionales Einkommen, Preisniveaus, NUTS-2-Grenzen), US Census und ONS UK (Bevölkerung/Einkommen außerhalb der EU), OpenStreetMap via Overpass (Padel- und Tennisplatz-Standorte) sowie Playtomic (Anlagenverzeichnisse, Court-Zahlen). Alle Daten werden regelmäßig aktualisiert und durch unsere SQLMesh-Pipeline verarbeitet.",
|
||||
"pnscore_limits_h2": "Einschränkungen",
|
||||
"pnscore_limits_p1": "Der Score bewertet Standortpotenzial, nicht Projektdurchführbarkeit. Er kann standortspezifische Faktoren wie Grundstücksverfügbarkeit, Bebauungsvorschriften, Mietkosten oder lokale Wettbewerbsdetails nicht berücksichtigen. Den Score immer mit eigener Vor-Ort-Recherche kombinieren.",
|
||||
"pnscore_limits_p2": "Die Datenabdeckung variiert nach Land. Europäische Märkte haben die stärkste Datenbasis (Eurostat-Einkommen, dichte Anlagenverzeichnisse). Aufstrebende Märkte haben teils weniger granulare Einkommensdaten, was die Komponenten Wirtschaftskraft und Erschwinglichkeit beeinflusst.",
|
||||
"pnscore_cta_markets": "Märkte entdecken",
|
||||
"pnscore_cta_planner": "Finanzplaner",
|
||||
"pnscore_faq_h2": "Häufige Fragen",
|
||||
"pnscore_faq_q1": "Was ist der Padelnomics Score?",
|
||||
"pnscore_faq_a1": "Ein Komposit-Index von 0 bis 100, der bewertet, wie attraktiv ein Standort für den Bau einer neuen Padelanlage ist. Er kombiniert Versorgungslücken, Einzugsgebiet, Wirtschaftskraft, Sportaffinität, Baukosten-Erschwinglichkeit und Markt-Spielraum in einer einzigen Kennzahl.",
|
||||
"pnscore_faq_q2": "Wie oft wird der Score aktualisiert?",
|
||||
"pnscore_faq_a2": "Der Score wird täglich neu berechnet. Anlagenverzeichnisse, Bevölkerungsdaten und Einkommensstatistiken werden in ihren jeweiligen Intervallen aktualisiert (täglich für Anlagen, monatlich für Bevölkerung, jährlich für Einkommen).",
|
||||
"pnscore_faq_q3": "Warum hat eine Stadt mit vielen Padel-Courts einen niedrigen Score?",
|
||||
"pnscore_faq_a3": "Der Score belohnt unterversorgte Gebiete. Eine Stadt mit hoher Court-Dichte relativ zur Bevölkerung hat eine geringe Versorgungslücke — die gewichtigste Komponente (40 von 100 Punkten). Gut versorgte Städte können dennoch moderat punkten, wenn andere Faktoren (Einzugsgebiet, Wirtschaftskraft) stark sind.",
|
||||
"pnscore_faq_q4": "Wie beeinflusst Marktreife den Score?",
|
||||
"pnscore_faq_a4": "Marktreife fließt auf zwei Wegen ein: Die Versorgungslücke misst direkt die lokale Court-Dichte, und der Markt-Spielraum gewichtet die landesweite Marktreife invers. Länder mit dominantem Padel-Markt (z.B. Spanien) bieten weniger Spielraum als aufstrebende Märkte.",
|
||||
"pnscore_faq_q5": "Kann ich den Score für meinen Businessplan verwenden?",
|
||||
"pnscore_faq_a5": "Ja — der Score ist als Screening-Tool für die Standortsuche konzipiert. Nutze ihn, um vielversprechende Standorte vorzuselektieren, und vertiefe dann mit dem Finanzplaner die Umsatz-, Kosten- und Renditeanalyse für Dein konkretes Szenario.",
|
||||
"sup_cta_btn": "Kostenlos starten",
|
||||
"sup_basic_free_label": "Kostenlos",
|
||||
"sup_pricing_eur_note": "Alle Preise in EUR",
|
||||
|
||||
@@ -606,6 +606,20 @@
|
||||
"mkt_all_countries": "All Countries",
|
||||
"mkt_all_regions": "All Regions",
|
||||
"mkt_no_results": "No markets found. Try adjusting your filters.",
|
||||
"mkt_legend_size": "Bubble size = venue count",
|
||||
"mkt_legend_color": "Color = Padelnomics Score",
|
||||
"map_score_label": "Padelnomics Score",
|
||||
"map_venues": "venues",
|
||||
"map_pop": "pop",
|
||||
"map_click_explore": "Click to explore →",
|
||||
"map_coming_soon": "Coming soon",
|
||||
"map_courts": "courts",
|
||||
"map_indoor": "indoor",
|
||||
"map_outdoor": "outdoor",
|
||||
"map_cities": "cities",
|
||||
"map_existing_venues": "existing venues",
|
||||
"map_km_nearest": "km to nearest court",
|
||||
"map_no_nearby": "No nearby courts",
|
||||
"waitlist_markets_title": "Markets Intelligence — Coming Soon",
|
||||
"waitlist_markets_sub": "Deep-dive market reports for padel investors: construction costs, revenue benchmarks, occupancy data, and ROI analysis by city and region.",
|
||||
"waitlist_markets_feature1": "Real cost data from operating venues across 30+ countries",
|
||||
@@ -1615,7 +1629,7 @@
|
||||
"bp_lbl_funded_by_equity": "Funded by Equity",
|
||||
"bp_lbl_total": "Total",
|
||||
"bp_lbl_venues_per_100k": "Venues per 100K population",
|
||||
"bp_lbl_market_score": "Market Score",
|
||||
"bp_lbl_padelnomics_score": "Padelnomics Score",
|
||||
"bp_lbl_median_peak_rate": "Median Peak Rate",
|
||||
"bp_lbl_median_offpeak_rate": "Median Off-Peak Rate",
|
||||
"bp_lbl_median_occupancy": "Median Occupancy",
|
||||
@@ -1719,80 +1733,54 @@
|
||||
"email_business_plan_preheader": "Professional padel facility financial plan — download now",
|
||||
"email_footer_tagline": "The padel business planning platform",
|
||||
"email_footer_copyright": "© {year} {app_name}. You received this email because you have an account or submitted a request.",
|
||||
"footer_market_score": "Market Score",
|
||||
"mscore_page_title": "The padelnomics Market Score — How We Measure Market Potential",
|
||||
"mscore_meta_desc": "The padelnomics Market Score rates cities from 0 to 100 on their potential for padel investment. Learn how demographics, economic strength, demand signals, and data coverage feed into the score.",
|
||||
"mscore_og_desc": "A data-driven composite score (0–100) that measures how attractive a city is for padel court investment. See what goes into it and what it means for your planning.",
|
||||
"mscore_h1": "The padelnomics Market Score",
|
||||
"mscore_subtitle": "A data-driven measure of how attractive a city is for padel investment.",
|
||||
"mscore_dual_h2": "Two Scores, Two Questions",
|
||||
"mscore_dual_intro": "Padelnomics publishes two distinct scores for every market. They answer different questions and are calculated using different methodologies — knowing both is essential for a well-informed investment decision.",
|
||||
"mscore_reife_chip": "padelnomics Marktreife-Score™",
|
||||
"mscore_reife_question": "How established is this padel market?",
|
||||
"mscore_reife_desc": "Calculated for cities with at least one padel venue. Combines population size, economic power, demand evidence from booking platforms, and data completeness.",
|
||||
"mscore_potenzial_chip": "padelnomics Marktpotenzial-Score™",
|
||||
"mscore_potenzial_question": "Where should I build a padel court?",
|
||||
"mscore_potenzial_desc": "Calculated for all locations globally, including those with zero courts. Rewards supply gaps, underserved catchment areas, and racket sport culture — the signals that matter for greenfield investors.",
|
||||
"mscore_what_h2": "Marktreife-Score: What It Measures",
|
||||
"mscore_what_intro": "The padelnomics Marktreife-Score is a composite index from 0 to 100 that evaluates how established and attractive an existing padel market is. It only applies to cities with at least one padel venue, combining four categories of data into a single number designed to help you prioritize markets worth investigating further.",
|
||||
"mscore_cat_demo_h3": "Demographics",
|
||||
"mscore_cat_demo_p": "Population size as a proxy for the addressable market. Larger cities generally support more venues and higher utilization.",
|
||||
"mscore_cat_econ_h3": "Economic Strength",
|
||||
"mscore_cat_econ_p": "Regional purchasing power and income indicators. Markets where people have higher disposable income tend to sustain stronger demand for leisure sports like padel.",
|
||||
"mscore_cat_demand_h3": "Demand Evidence",
|
||||
"mscore_cat_demand_p": "Signals from existing venue activity — occupancy rates, booking data, and the number of operating venues. Where real demand is already measurable, it’s the strongest indicator.",
|
||||
"mscore_cat_data_h3": "Data Completeness",
|
||||
"mscore_cat_data_p": "How much data we have for that city. A score influenced by incomplete data is less reliable — we surface this explicitly so you know when to dig deeper on your own.",
|
||||
"mscore_read_h2": "Marktreife-Score: How To Read",
|
||||
"mscore_band_high_label": "70–100: Strong market",
|
||||
"mscore_band_high_p": "Large population, economic power, and proven demand from existing venues. These cities have validated padel markets with reliable benchmarks for financial planning.",
|
||||
"mscore_band_mid_label": "45–69: Solid mid-tier",
|
||||
"mscore_band_mid_p": "Good fundamentals with room for growth. Enough data to plan with confidence, but less competition than top-tier cities. Often the sweet spot for new entrants.",
|
||||
"mscore_band_low_label": "Below 45: Early-stage market",
|
||||
"mscore_band_low_p": "Less validated data or smaller populations. This does not mean a city is a bad investment — it may mean less competition and first-mover advantage. Expect to do more local research.",
|
||||
"mscore_read_note": "A lower score does not mean a city is a bad investment. It may indicate less available data or a market still developing — which can mean less competition and better terms for early entrants.",
|
||||
"mscore_sources_h2": "Data Sources",
|
||||
"mscore_sources_p": "The Market Score draws on data from European statistical offices (population and economic indicators), court booking platforms (venue counts, pricing, occupancy), and geographic databases (venue locations). Data is refreshed monthly as new extractions run.",
|
||||
"mscore_limits_h2": "Limitations",
|
||||
"mscore_limits_p1": "The score reflects available data, not absolute market truth. Cities where fewer venues are tracked on booking platforms may score lower on demand evidence — even if local demand is strong.",
|
||||
"mscore_limits_p2": "The score does not account for local factors like real estate costs, permitting timelines, competitive dynamics, or regulatory environment. These matter enormously and require on-the-ground research.",
|
||||
"mscore_limits_p3": "Use the Market Score as a starting point for prioritization, not a final investment decision. The financial planner is where you model your specific scenario.",
|
||||
"mscore_cta_markets": "Browse city scores",
|
||||
"mscore_cta_planner": "Model your investment",
|
||||
"mscore_faq_h2": "Frequently Asked Questions",
|
||||
"mscore_faq_q1": "What is the padelnomics Market Score?",
|
||||
"mscore_faq_a1": "A composite index from 0 to 100 that measures how attractive a city is for padel court investment. It combines demographics, economic strength, demand evidence, and data completeness into a single comparable number.",
|
||||
"mscore_faq_q2": "How often is the score updated?",
|
||||
"mscore_faq_a2": "Monthly. New data from statistical offices, booking platforms, and venue databases is extracted and processed on a regular cycle. Scores reflect the most recent available data.",
|
||||
"mscore_faq_q3": "Why is my city’s score low?",
|
||||
"mscore_faq_a3": "Usually because of limited data coverage or smaller population. A low score doesn’t mean the city is unattractive — it means we have less data to quantify the opportunity. Local research can fill the gaps.",
|
||||
"mscore_faq_q4": "Can I compare scores across countries?",
|
||||
"mscore_faq_a4": "Yes. The methodology is consistent across all markets we track, so a score of 72 in Germany is directly comparable to a 72 in Spain or the UK.",
|
||||
"mscore_faq_q5": "Does a high score guarantee a good investment?",
|
||||
"mscore_faq_a5": "No. The score measures market attractiveness at a macro level. Your specific investment depends on venue type, build costs, lease terms, and dozens of other factors. Use the financial planner to model your scenario with real numbers.",
|
||||
"mscore_pot_what_h2": "Marktpotenzial-Score: What It Measures",
|
||||
"mscore_pot_what_intro": "The padelnomics Marktpotenzial-Score evaluates investment opportunity for locations with little or no existing padel infrastructure. It covers all locations globally, including those with zero courts — designed for greenfield investors scouting white-space markets, not for benchmarking established venues.",
|
||||
"mscore_pot_cat_market_h3": "Addressable Market",
|
||||
"mscore_pot_cat_market_p": "Log-scaled population, capped at 500K. Opportunity peaks in mid-size cities that can support a court but are not yet served by large-city operators.",
|
||||
"mscore_pot_cat_econ_h3": "Economic Power",
|
||||
"mscore_pot_cat_econ_p": "Country-level purchasing power (PPS), normalised to international benchmarks. Drives willingness to pay for court fees in the €20–35/hr target range.",
|
||||
"mscore_pot_cat_gap_h3": "Supply Gap",
|
||||
"mscore_pot_cat_gap_p": "Inverted venue density: zero courts per 100K residents earns full marks. This is the key signal separating the Marktpotenzial-Score from the Marktreife-Score — white space is the opportunity.",
|
||||
"mscore_pot_cat_catchment_h3": "Catchment Gap",
|
||||
"mscore_pot_cat_catchment_p": "Distance to the nearest existing padel court. Locations more than 30km from any court score maximum points — they represent genuinely underserved catchment areas with no nearby alternative.",
|
||||
"mscore_pot_cat_tennis_h3": "Racket Sport Culture",
|
||||
"mscore_pot_cat_tennis_p": "Tennis courts within 25km as a proxy for established racket sport demand. Many new padel facilities open inside or next to existing tennis clubs, making this a reliable lead indicator.",
|
||||
"mscore_pot_read_h2": "Marktpotenzial-Score: How To Read",
|
||||
"mscore_pot_band_high_label": "70–100: High potential",
|
||||
"mscore_pot_band_high_p": "Underserved area with strong demographics and economic fundamentals. Low supply, significant catchment gap, and proven racket sport culture. Priority market for greenfield investment.",
|
||||
"mscore_pot_band_mid_label": "45–69: Moderate potential",
|
||||
"mscore_pot_band_mid_p": "Some supply already exists, demographic limitations, or mixed signals. Worth investigating further — local factors may significantly change the picture.",
|
||||
"mscore_pot_band_low_label": "Below 45: Lower potential",
|
||||
"mscore_pot_band_low_p": "Market is already well-served, population is small, or economic purchasing power is limited. Focus resources on higher-scoring locations unless you have a specific local advantage.",
|
||||
"mscore_faq_q6": "What is the difference between the padelnomics Marktreife-Score and the padelnomics Marktpotenzial-Score?",
|
||||
"mscore_faq_a6": "The padelnomics Marktreife-Score measures how established and mature an existing padel market is — it only applies to cities with at least one venue. The padelnomics Marktpotenzial-Score measures greenfield investment opportunity and covers all locations globally, rewarding supply gaps and underserved catchment areas where no courts exist yet.",
|
||||
"mscore_faq_q7": "Why does my town have a high padelnomics Marktpotenzial-Score but no padel courts?",
|
||||
"mscore_faq_a7": "That is exactly the point. A high padelnomics Marktpotenzial-Score indicates an underserved location: strong demographics, economic purchasing power, no existing supply, and distance from the nearest court. These are precisely the signals that suggest a greenfield opportunity — not a sign of a weak market.",
|
||||
"footer_padelnomics_score": "Padelnomics Score",
|
||||
"pnscore_page_title": "Padelnomics Score — How We Rate Padel Investment Locations",
|
||||
"pnscore_meta_desc": "The Padelnomics Score evaluates investment potential for padel locations across Europe. Learn how supply gaps, catchment area, market maturity, and sports culture combine into a single 0-100 score.",
|
||||
"pnscore_og_desc": "A single score that tells you where to build a padel center. Methodology, components, and data sources explained.",
|
||||
"pnscore_subtitle": "One score to evaluate padel investment potential — supply gaps, catchment area, market maturity, and sports culture combined into 0-100.",
|
||||
"pnscore_what_h2": "What Is the Padelnomics Score?",
|
||||
"pnscore_what_intro": "The Padelnomics Score is a 0-100 composite index that evaluates how attractive a location is for a new padel facility. It combines supply-side gaps (are there enough courts?) with demand-side signals (population, income, sports culture) and adjusts for market maturity. A high score means: there is addressable demand, the area is underserved, and conditions favor a new investment.",
|
||||
"pnscore_components_h2": "What It Measures",
|
||||
"pnscore_components_intro": "Six weighted components combine into the final score. Each captures a different aspect of investment potential.",
|
||||
"pnscore_cat_market_h3": "Addressable Market (15 pts)",
|
||||
"pnscore_cat_market_p": "Catchment population within ~24 km (H3 res-5 cell + neighbors). Square-root scaled — a catchment of 1M scores the maximum. Larger catchment means more potential players.",
|
||||
"pnscore_cat_econ_h3": "Economic Power (10 pts)",
|
||||
"pnscore_cat_econ_p": "Regional income in purchasing power standard (PPS). Higher disposable income supports premium pricing and more frequent play. Data from Eurostat (EU), Census (US), ONS (UK).",
|
||||
"pnscore_cat_gap_h3": "Supply Deficit (50 pts)",
|
||||
"pnscore_cat_gap_p": "The single biggest component. Measures two signals: court density gap (how far below 5 courts per 100K?) and distance gap (how far to the nearest existing court?). Dampened by market existence — countries with few or no padel venues get reduced credit, since a supply gap without proven demand is speculative. Full credit requires 50+ venues nationally.",
|
||||
"pnscore_cat_sports_h3": "Sports Culture (10 pts)",
|
||||
"pnscore_cat_sports_p": "Tennis court density within 25 km as a proxy for racquet sport adoption. Regions with strong tennis infrastructure have a ready audience for padel — a closely related sport with a lower barrier to entry.",
|
||||
"pnscore_cat_catchment_h3": "Construction Affordability (5 pts)",
|
||||
"pnscore_cat_catchment_p": "Income relative to local construction costs (Eurostat Price Level Index). Higher affordability means better margins on the build — your revenue potential isn’t eaten by construction costs.",
|
||||
"pnscore_cat_maturity_h3": "Market Headroom (10 pts)",
|
||||
"pnscore_cat_maturity_p": "Inverse of the country’s average market maturity. Countries with already saturated markets (e.g. Spain) score lower here — the national market is competitive. Emerging markets score higher — more room to grow.",
|
||||
"pnscore_read_h2": "How to Read the Score",
|
||||
"pnscore_band_high_label": "80+ — Excellent",
|
||||
"pnscore_band_high_p": "Top-tier investment potential. Significant supply gaps, strong catchment, and favorable market conditions. These locations are prime targets for new facilities.",
|
||||
"pnscore_band_good_label": "60-79 — Good",
|
||||
"pnscore_band_good_p": "Strong potential with some competition or smaller catchment. Still attractive for well-positioned projects with a clear differentiation strategy.",
|
||||
"pnscore_band_mid_label": "40-59 — Moderate",
|
||||
"pnscore_band_mid_p": "Decent fundamentals but the market is partially served. Success depends on precise site selection, pricing, and facility quality.",
|
||||
"pnscore_band_low_label": "20-39 — Below Average",
|
||||
"pnscore_band_low_p": "The area is comparatively well-served or has limited demand signals. New facilities face stiffer competition and need a strong value proposition.",
|
||||
"pnscore_sources_h2": "Data Sources",
|
||||
"pnscore_sources_p": "The score draws on multiple open and proprietary data sources: GeoNames (global city population, 140K+ locations), Eurostat (regional income, price levels, NUTS-2 boundaries), US Census and ONS UK (population/income outside EU), OpenStreetMap via Overpass (padel and tennis court locations), and Playtomic (venue listings, court counts). All data is refreshed on a regular schedule and processed through our SQLMesh pipeline.",
|
||||
"pnscore_limits_h2": "Limitations",
|
||||
"pnscore_limits_p1": "The score evaluates location-level potential, not project-level feasibility. It cannot account for site-specific factors like land availability, zoning, lease costs, or local competition details. Always combine the score with on-the-ground research.",
|
||||
"pnscore_limits_p2": "Data coverage varies by country. European markets have the strongest data (Eurostat income, dense venue listings). Emerging markets may have less granular income data, which affects the economic power and affordability components.",
|
||||
"pnscore_cta_markets": "Explore Markets",
|
||||
"pnscore_cta_planner": "Financial Planner",
|
||||
"pnscore_faq_h2": "Frequently Asked Questions",
|
||||
"pnscore_faq_q1": "What is the Padelnomics Score?",
|
||||
"pnscore_faq_a1": "A composite 0-100 index that evaluates how attractive a location is for building a new padel facility. It combines supply gaps, catchment population, economic power, sports culture, construction affordability, and market headroom into a single number.",
|
||||
"pnscore_faq_q2": "How often is the score updated?",
|
||||
"pnscore_faq_a2": "The score is recalculated daily as new data flows through our pipeline. Venue listings, population data, and income statistics are refreshed on their respective schedules (daily for venues, monthly for population, annually for income).",
|
||||
"pnscore_faq_q3": "Why does a city with many padel courts score low?",
|
||||
"pnscore_faq_a3": "The score rewards underserved areas. A city with high court density relative to population has a small supply deficit — the biggest component (40 of 100 points). Well-served cities can still score moderately if other factors (catchment, economics) are strong.",
|
||||
"pnscore_faq_q4": "How does market maturity affect the score?",
|
||||
"pnscore_faq_a4": "Market maturity is captured in two ways: the supply deficit component directly measures local court density, and the market headroom component inversely weighs country-level maturity. Countries where padel is already dominant (like Spain) provide less headroom than emerging markets.",
|
||||
"pnscore_faq_q5": "Can I use the score for my business plan?",
|
||||
"pnscore_faq_a5": "Yes — the score is designed as a screening tool for site selection. Use it to shortlist promising locations, then dive deeper with the financial planner to model revenue, costs, and returns for your specific scenario.",
|
||||
|
||||
"report_q1_eyebrow": "Global Market Intelligence",
|
||||
"report_q1_meta_description": "77,355 padel courts worldwide, +29% in 18 months. The most complete independent market report on global padel — FIP, Playtomic/PwC, and the Padelnomics data pipeline.",
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
{% block paddle %}{% include "_payment_js.html" %}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="description" content="{{ t.export_title }}">
|
||||
<style>
|
||||
.exp-wrap { max-width: 640px; margin: 0 auto; padding: 3rem 0; }
|
||||
.exp-hero { text-align: center; margin-bottom: 2rem; }
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
{% block title %}Business Plan Details — {{ config.APP_NAME }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="description" content="Business Plan Details — {{ config.APP_NAME }}">
|
||||
<style>
|
||||
.bp-wrap { max-width: 680px; margin: 0 auto; padding: 3rem 0; }
|
||||
.bp-hero { margin-bottom: 2rem; }
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ t.export_success_title }} - {{ config.APP_NAME }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="description" content="{{ t.export_success_title }}">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main class="container-page" style="max-width:500px;margin:0 auto;padding:4rem 1rem;text-align:center">
|
||||
<div style="font-size:3rem;margin-bottom:1rem">✓</div>
|
||||
|
||||
@@ -2,6 +2,10 @@
|
||||
|
||||
{% block title %}{{ t.export_waitlist_title }} - {{ config.APP_NAME }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="description" content="{{ t.export_waitlist_title }} - {{ config.APP_NAME }}">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main class="container-page py-12">
|
||||
<div class="card max-w-md mx-auto mt-8 text-center">
|
||||
|
||||
@@ -9,6 +9,35 @@
|
||||
<meta property="og:image" content="{{ url_for('static', filename='images/planner-screenshot.png', _external=True) }}">
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='css/planner.css') }}?v={{ v }}">
|
||||
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/4.4.1/chart.umd.min.js"></script>
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebPage",
|
||||
"name": "{{ t.planner_page_title }} - {{ config.APP_NAME }}",
|
||||
"description": "{{ t.planner_meta_desc }}",
|
||||
"url": "{{ config.BASE_URL }}/{{ lang }}/planner/",
|
||||
"inLanguage": "{{ lang }}",
|
||||
"isPartOf": {"@type": "WebSite", "name": "Padelnomics", "url": "{{ config.BASE_URL }}"}
|
||||
},
|
||||
{
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{"@type": "ListItem", "position": 1, "name": "Home", "item": "{{ config.BASE_URL }}/{{ lang }}"},
|
||||
{"@type": "ListItem", "position": 2, "name": "{{ t.nav_planner }}", "item": "{{ config.BASE_URL }}/{{ lang }}/planner/"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@type": "SoftwareApplication",
|
||||
"name": "Padelnomics Padel Court Planner",
|
||||
"applicationCategory": "BusinessApplication",
|
||||
"operatingSystem": "Web",
|
||||
"offers": {"@type": "Offer", "price": "0", "priceCurrency": "EUR"}
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% macro slider(name, label, min, max, step, value, tip='') %}
|
||||
|
||||
@@ -3,7 +3,7 @@ Public domain: landing page, marketing pages, legal pages, feedback.
|
||||
"""
|
||||
from pathlib import Path
|
||||
|
||||
from quart import Blueprint, abort, g, render_template, request, session
|
||||
from quart import Blueprint, abort, g, redirect, render_template, request, session, url_for
|
||||
|
||||
from ..analytics import fetch_analytics
|
||||
from ..core import check_rate_limit, count_where, csrf_protect, execute, fetch_all, fetch_one
|
||||
@@ -67,9 +67,14 @@ async def about():
|
||||
return await render_template("about.html")
|
||||
|
||||
|
||||
@bp.route("/padelnomics-score")
|
||||
async def padelnomics_score():
|
||||
return await render_template("padelnomics_score.html")
|
||||
|
||||
|
||||
@bp.route("/market-score")
|
||||
async def market_score():
|
||||
return await render_template("market_score.html")
|
||||
return redirect(url_for("public.padelnomics_score"), 301)
|
||||
|
||||
|
||||
@bp.route("/opportunity-map")
|
||||
@@ -79,12 +84,23 @@ async def opportunity_map():
|
||||
if not await is_flag_enabled("maps", default=True):
|
||||
abort(404)
|
||||
countries = await fetch_analytics("""
|
||||
SELECT DISTINCT country_slug, country_name_en
|
||||
SELECT DISTINCT country_slug, country_name_en, country_code
|
||||
FROM serving.location_profiles
|
||||
WHERE city_slug IS NOT NULL
|
||||
ORDER BY country_name_en
|
||||
""")
|
||||
return await render_template("opportunity_map.html", countries=countries)
|
||||
user_cc = g.get("user_country", "")
|
||||
selected_slug = ""
|
||||
if user_cc:
|
||||
for c in countries:
|
||||
if c["country_code"] == user_cc:
|
||||
selected_slug = c["country_slug"]
|
||||
break
|
||||
countries = sorted(
|
||||
countries,
|
||||
key=lambda c: (0 if c["country_code"] == user_cc else 1, c["country_name_en"]),
|
||||
)
|
||||
return await render_template("opportunity_map.html", countries=countries, selected_slug=selected_slug)
|
||||
|
||||
|
||||
@bp.route("/opportunity-map/data")
|
||||
|
||||
@@ -7,6 +7,28 @@
|
||||
<meta property="og:title" content="{{ t.features_title_prefix }} | {{ config.APP_NAME }}">
|
||||
<meta property="og:description" content="{{ t.features_meta_desc }}">
|
||||
<meta property="og:image" content="{{ url_for('static', filename='images/planner-screenshot.png', _external=True) }}">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebPage",
|
||||
"name": "{{ t.features_title_prefix }} | {{ config.APP_NAME }}",
|
||||
"description": "{{ t.features_meta_desc }}",
|
||||
"url": "{{ config.BASE_URL }}/{{ lang }}/features",
|
||||
"inLanguage": "{{ lang }}",
|
||||
"isPartOf": {"@type": "WebSite", "name": "Padelnomics", "url": "{{ config.BASE_URL }}"}
|
||||
},
|
||||
{
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{"@type": "ListItem", "position": 1, "name": "Home", "item": "{{ config.BASE_URL }}/{{ lang }}"},
|
||||
{"@type": "ListItem", "position": 2, "name": "{{ t.features_title_prefix }}", "item": "{{ config.BASE_URL }}/{{ lang }}/features"}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
@@ -1,265 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ t.mscore_page_title }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="description" content="{{ t.mscore_meta_desc }}">
|
||||
<meta property="og:title" content="{{ t.mscore_page_title }}">
|
||||
<meta property="og:description" content="{{ t.mscore_og_desc }}">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebPage",
|
||||
"name": "{{ t.mscore_page_title }}",
|
||||
"description": "{{ t.mscore_meta_desc }}",
|
||||
"url": "{{ config.BASE_URL }}/{{ lang }}/market-score",
|
||||
"inLanguage": "{{ lang }}",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"name": "Padelnomics",
|
||||
"url": "{{ config.BASE_URL }}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{"@type": "ListItem", "position": 1, "name": "Home", "item": "{{ config.BASE_URL }}/{{ lang }}"},
|
||||
{"@type": "ListItem", "position": 2, "name": "Market Score", "item": "{{ config.BASE_URL }}/{{ lang }}/market-score"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@type": "FAQPage",
|
||||
"mainEntity": [
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.mscore_faq_q1 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.mscore_faq_a1 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.mscore_faq_q2 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.mscore_faq_a2 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.mscore_faq_q3 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.mscore_faq_a3 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.mscore_faq_q4 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.mscore_faq_a4 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.mscore_faq_q5 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.mscore_faq_a5 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.mscore_faq_q6 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.mscore_faq_a6 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.mscore_faq_q7 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.mscore_faq_a7 }}"}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main class="container-page py-12">
|
||||
<div class="max-w-3xl mx-auto">
|
||||
|
||||
<!-- Hero -->
|
||||
<header class="text-center mb-12">
|
||||
<h1 class="text-3xl mb-2">
|
||||
<span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span>
|
||||
Market Score
|
||||
</h1>
|
||||
<p class="text-lg text-slate">{{ t.mscore_subtitle }}</p>
|
||||
</header>
|
||||
|
||||
<!-- Two Scores -->
|
||||
<section class="card mb-10" style="background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-color:#bae6fd">
|
||||
<h2 class="text-xl mb-3">{{ t.mscore_dual_h2 }}</h2>
|
||||
<p class="text-slate-dark leading-relaxed mb-6">{{ t.mscore_dual_intro }}</p>
|
||||
<div style="display:grid;grid-template-columns:1fr 1fr;gap:1rem">
|
||||
<div style="background:#fff;border-radius:8px;padding:1rem;border:1px solid #bae6fd">
|
||||
<div style="font-size:0.7rem;font-weight:700;letter-spacing:0.06em;color:#0369a1;text-transform:uppercase;margin-bottom:0.4rem">{{ t.mscore_reife_chip }}</div>
|
||||
<div class="font-semibold text-navy mb-1">{{ t.mscore_reife_question }}</div>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_reife_desc }}</p>
|
||||
</div>
|
||||
<div style="background:#fff;border-radius:8px;padding:1rem;border:1px solid #bae6fd">
|
||||
<div style="font-size:0.7rem;font-weight:700;letter-spacing:0.06em;color:#0369a1;text-transform:uppercase;margin-bottom:0.4rem">{{ t.mscore_potenzial_chip }}</div>
|
||||
<div class="font-semibold text-navy mb-1">{{ t.mscore_potenzial_question }}</div>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_potenzial_desc }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Marktreife-Score: What It Measures -->
|
||||
<section class="mb-10">
|
||||
<h2 class="text-xl mb-4"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> {{ t.mscore_what_h2 }}</h2>
|
||||
<p class="text-slate-dark leading-relaxed mb-6">{{ t.mscore_what_intro }}</p>
|
||||
|
||||
<div class="grid-2">
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">👥</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_cat_demo_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_cat_demo_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">💶</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_cat_econ_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_cat_econ_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">📈</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_cat_demand_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_cat_demand_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">🔍</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_cat_data_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_cat_data_p }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Marktreife-Score: How To Read -->
|
||||
<section class="card mb-8">
|
||||
<h2 class="text-xl mb-4"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> {{ t.mscore_read_h2 }}</h2>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#16A34A;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.mscore_band_high_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.mscore_band_high_p }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#D97706;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.mscore_band_mid_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.mscore_band_mid_p }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#64748B;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.mscore_band_low_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.mscore_band_low_p }}</p>
|
||||
</div>
|
||||
</div>
|
||||
<p class="text-sm text-slate mt-4" style="border-left:3px solid #E2E8F0;padding-left:0.75rem">{{ t.mscore_read_note }}</p>
|
||||
</section>
|
||||
|
||||
<!-- Marktpotenzial-Score: What It Measures -->
|
||||
<section class="mb-10">
|
||||
<h2 class="text-xl mb-4"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> {{ t.mscore_pot_what_h2 }}</h2>
|
||||
<p class="text-slate-dark leading-relaxed mb-6">{{ t.mscore_pot_what_intro }}</p>
|
||||
|
||||
<div class="grid-2">
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">📊</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_pot_cat_market_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_pot_cat_market_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">💶</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_pot_cat_econ_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_pot_cat_econ_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">🎯</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_pot_cat_gap_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_pot_cat_gap_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">📍</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_pot_cat_catchment_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_pot_cat_catchment_p }}</p>
|
||||
</div>
|
||||
<div class="card" style="grid-column:span 2">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">🎾</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.mscore_pot_cat_tennis_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.mscore_pot_cat_tennis_p }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Marktpotenzial-Score: Score Bands -->
|
||||
<section class="card mb-8">
|
||||
<h2 class="text-xl mb-4"><span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span> {{ t.mscore_pot_read_h2 }}</h2>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#16A34A;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.mscore_pot_band_high_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.mscore_pot_band_high_p }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#D97706;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.mscore_pot_band_mid_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.mscore_pot_band_mid_p }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#64748B;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.mscore_pot_band_low_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.mscore_pot_band_low_p }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Data Sources -->
|
||||
<section class="card mb-8">
|
||||
<h2 class="text-xl mb-4">{{ t.mscore_sources_h2 }}</h2>
|
||||
<p class="text-slate-dark leading-relaxed">{{ t.mscore_sources_p }}</p>
|
||||
</section>
|
||||
|
||||
<!-- Limitations -->
|
||||
<section class="card mb-8">
|
||||
<h2 class="text-xl mb-4">{{ t.mscore_limits_h2 }}</h2>
|
||||
<div class="space-y-3 text-slate-dark leading-relaxed">
|
||||
<p>{{ t.mscore_limits_p1 }}</p>
|
||||
<p>{{ t.mscore_limits_p2 }}</p>
|
||||
<p>{{ t.mscore_limits_p3 }}</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- CTA -->
|
||||
<div class="text-center my-12">
|
||||
<a href="{{ url_for('content.markets') }}" class="btn" style="margin-right:0.75rem">{{ t.mscore_cta_markets }}</a>
|
||||
<a href="{{ url_for('planner.index') }}" class="btn-secondary" style="display:inline-block;padding:0.625rem 1.25rem;border-radius:6px;font-weight:600;font-size:0.875rem;text-decoration:none">{{ t.mscore_cta_planner }}</a>
|
||||
</div>
|
||||
|
||||
<!-- FAQ -->
|
||||
<section>
|
||||
<h2 class="text-xl mb-4">{{ t.mscore_faq_h2 }}</h2>
|
||||
<div class="space-y-4">
|
||||
{% for i in range(1, 8) %}
|
||||
<details style="border:1px solid #E2E8F0;border-radius:8px;padding:0.75rem 1rem">
|
||||
<summary class="font-semibold text-navy" style="cursor:pointer">{{ t['mscore_faq_q' ~ i] }}</summary>
|
||||
<p class="text-sm text-slate-dark mt-2">{{ t['mscore_faq_a' ~ i] }}</p>
|
||||
</details>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
{% endblock %}
|
||||
@@ -30,7 +30,7 @@
|
||||
hx-trigger="change">
|
||||
<option value="">— choose country —</option>
|
||||
{% for c in countries %}
|
||||
<option value="{{ c.country_slug }}">{{ c.country_name_en }}</option>
|
||||
<option value="{{ c.country_slug }}" {% if c.country_slug == selected_slug %}selected{% endif %}>{{ c.country_name_en }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
@@ -38,20 +38,27 @@
|
||||
<div id="opportunity-map"></div>
|
||||
<div id="map-data" style="display:none;"></div>
|
||||
|
||||
<div class="mt-4 text-sm text-slate">
|
||||
<strong>Circle size:</strong> population |
|
||||
<strong>Color:</strong>
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#16A34A;vertical-align:middle;margin:0 4px"></span>High (≥70)
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#D97706;vertical-align:middle;margin:0 4px"></span>Mid (40–70)
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#3B82F6;vertical-align:middle;margin:0 4px"></span>Low (<40)
|
||||
<div class="mt-4 text-sm text-slate" style="display:flex; flex-wrap:wrap; gap:0.5rem 1.5rem; align-items:center;">
|
||||
<span style="display:flex; align-items:center; gap:0.3rem;">
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#15803D;"></span>≥80
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#0D9488;margin-left:4px;"></span>≥60
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#D97706;margin-left:4px;"></span>≥40
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#EA580C;margin-left:4px;"></span>≥20
|
||||
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#DC2626;margin-left:4px;"></span><20
|
||||
</span>
|
||||
<span><strong>Size:</strong> population</span>
|
||||
</div>
|
||||
</main>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
<script src="{{ url_for('static', filename='vendor/leaflet/leaflet.min.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/map-markers.js') }}"></script>
|
||||
<script>
|
||||
window.__MAP_T = {score_label:"{{ t.map_score_label }}",venues:"{{ t.map_venues }}",pop:"{{ t.map_pop }}",existing_venues:"{{ t.map_existing_venues }}",km_nearest:"{{ t.map_km_nearest }}",no_nearby:"{{ t.map_no_nearby }}"};
|
||||
(function() {
|
||||
var sc = PNMarkers.scoreColor;
|
||||
var T = window.__MAP_T;
|
||||
var TILES = 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png';
|
||||
var TILES_ATTR = '© <a href="https://www.openstreetmap.org/copyright">OSM</a> © <a href="https://carto.com/">CARTO</a>';
|
||||
|
||||
@@ -61,22 +68,6 @@
|
||||
var oppLayer = L.layerGroup().addTo(map);
|
||||
var refLayer = L.layerGroup().addTo(map);
|
||||
|
||||
function oppColor(score) {
|
||||
if (score >= 70) return '#16A34A';
|
||||
if (score >= 40) return '#D97706';
|
||||
return '#3B82F6';
|
||||
}
|
||||
|
||||
function makeIcon(size, color) {
|
||||
var s = Math.round(size);
|
||||
return L.divIcon({
|
||||
className: '',
|
||||
html: '<div class="pn-marker" style="width:' + s + 'px;height:' + s + 'px;background:' + color + ';opacity:0.8;"></div>',
|
||||
iconSize: [s, s],
|
||||
iconAnchor: [s / 2, s / 2],
|
||||
});
|
||||
}
|
||||
|
||||
var REF_ICON = L.divIcon({
|
||||
className: '',
|
||||
html: '<div class="pn-venue" style="background:#94A3B8;border-color:white;opacity:0.7;"></div>',
|
||||
@@ -102,7 +93,7 @@
|
||||
refData.forEach(function(c) {
|
||||
if (!c.lat || !c.lon || !c.padel_venue_count) return;
|
||||
L.marker([c.lat, c.lon], { icon: REF_ICON })
|
||||
.bindTooltip(c.city_name + ' — ' + c.padel_venue_count + ' existing venues',
|
||||
.bindTooltip(c.city_name + ' — ' + c.padel_venue_count + ' ' + T.existing_venues,
|
||||
{ className: 'map-tooltip', direction: 'top', offset: [0, -7] })
|
||||
.addTo(refLayer);
|
||||
});
|
||||
@@ -113,16 +104,21 @@
|
||||
oppData.forEach(function(loc) {
|
||||
if (!loc.lat || !loc.lon) return;
|
||||
var size = 8 + 40 * Math.sqrt((loc.population || 1) / maxPop);
|
||||
var color = oppColor(loc.opportunity_score);
|
||||
var score = loc.opportunity_score;
|
||||
var hex = sc(score);
|
||||
var dist = loc.nearest_padel_court_km != null
|
||||
? loc.nearest_padel_court_km.toFixed(1) + ' km to nearest court'
|
||||
: 'No nearby courts';
|
||||
var mktColor = loc.market_score >= 60 ? '#16A34A' : (loc.market_score >= 30 ? '#D97706' : '#DC2626');
|
||||
? loc.nearest_padel_court_km.toFixed(1) + ' ' + T.km_nearest
|
||||
: T.no_nearby;
|
||||
var tip = '<strong>' + loc.location_name + '</strong><br>'
|
||||
+ '<span style="color:' + color + ';font-weight:600;">Padelnomics Opportunity Score: ' + loc.opportunity_score + '/100</span><br>'
|
||||
+ '<span style="color:' + mktColor + ';font-weight:600;">Padelnomics Market Score: ' + (loc.market_score || 0) + '/100</span><br>'
|
||||
+ dist + ' · Pop. ' + fmtPop(loc.population);
|
||||
L.marker([loc.lat, loc.lon], { icon: makeIcon(size, color) })
|
||||
+ '<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:' + hex + ';vertical-align:middle;margin-right:4px;"></span>'
|
||||
+ '<span style="color:' + hex + ';font-weight:600;">' + T.score_label + ': ' + score + '/100</span><br>'
|
||||
+ '<span style="color:#94A3B8;font-size:0.75rem;">' + dist + ' · ' + T.pop + ' ' + fmtPop(loc.population) + '</span>';
|
||||
var icon = PNMarkers.makeIcon({
|
||||
size: size,
|
||||
color: hex,
|
||||
pulse: score >= 75,
|
||||
});
|
||||
L.marker([loc.lat, loc.lon], { icon: icon })
|
||||
.bindTooltip(tip, { className: 'map-tooltip', direction: 'top', offset: [0, -Math.round(size / 2)] })
|
||||
.addTo(oppLayer);
|
||||
bounds.push([loc.lat, loc.lon]);
|
||||
@@ -133,6 +129,10 @@
|
||||
document.body.addEventListener('htmx:afterSwap', function(e) {
|
||||
if (e.detail.target.id === 'map-data') renderMap();
|
||||
});
|
||||
|
||||
// Auto-load if country pre-selected via geo header
|
||||
var sel = document.getElementById('opp-country-select');
|
||||
if (sel.value) htmx.trigger(sel, 'change');
|
||||
})();
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
196
web/src/padelnomics/public/templates/padelnomics_score.html
Normal file
196
web/src/padelnomics/public/templates/padelnomics_score.html
Normal file
@@ -0,0 +1,196 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}{{ t.pnscore_page_title }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="description" content="{{ t.pnscore_meta_desc }}">
|
||||
<meta property="og:title" content="{{ t.pnscore_page_title }}">
|
||||
<meta property="og:description" content="{{ t.pnscore_og_desc }}">
|
||||
<script type="application/ld+json">
|
||||
{
|
||||
"@context": "https://schema.org",
|
||||
"@graph": [
|
||||
{
|
||||
"@type": "WebPage",
|
||||
"name": "{{ t.pnscore_page_title }}",
|
||||
"description": "{{ t.pnscore_meta_desc }}",
|
||||
"url": "{{ config.BASE_URL }}/{{ lang }}/padelnomics-score",
|
||||
"inLanguage": "{{ lang }}",
|
||||
"isPartOf": {
|
||||
"@type": "WebSite",
|
||||
"name": "Padelnomics",
|
||||
"url": "{{ config.BASE_URL }}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"@type": "BreadcrumbList",
|
||||
"itemListElement": [
|
||||
{"@type": "ListItem", "position": 1, "name": "Home", "item": "{{ config.BASE_URL }}/{{ lang }}"},
|
||||
{"@type": "ListItem", "position": 2, "name": "Padelnomics Score", "item": "{{ config.BASE_URL }}/{{ lang }}/padelnomics-score"}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@type": "FAQPage",
|
||||
"mainEntity": [
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.pnscore_faq_q1 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.pnscore_faq_a1 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.pnscore_faq_q2 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.pnscore_faq_a2 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.pnscore_faq_q3 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.pnscore_faq_a3 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.pnscore_faq_q4 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.pnscore_faq_a4 }}"}
|
||||
},
|
||||
{
|
||||
"@type": "Question",
|
||||
"name": "{{ t.pnscore_faq_q5 }}",
|
||||
"acceptedAnswer": {"@type": "Answer", "text": "{{ t.pnscore_faq_a5 }}"}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main class="container-page py-12">
|
||||
<div class="max-w-3xl mx-auto">
|
||||
|
||||
<!-- Hero -->
|
||||
<header class="text-center mb-12">
|
||||
<h1 class="text-3xl mb-2">
|
||||
<span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;color:#0F172A;letter-spacing:-0.02em">padelnomics</span>
|
||||
Score
|
||||
</h1>
|
||||
<p class="text-lg text-slate">{{ t.pnscore_subtitle }}</p>
|
||||
</header>
|
||||
|
||||
<!-- What It Is -->
|
||||
<section class="card mb-10" style="background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border-color:#bae6fd">
|
||||
<h2 class="text-xl mb-3">{{ t.pnscore_what_h2 }}</h2>
|
||||
<p class="text-slate-dark leading-relaxed">{{ t.pnscore_what_intro }}</p>
|
||||
</section>
|
||||
|
||||
<!-- Components -->
|
||||
<section class="mb-10">
|
||||
<h2 class="text-xl mb-4">{{ t.pnscore_components_h2 }}</h2>
|
||||
<p class="text-slate-dark leading-relaxed mb-6">{{ t.pnscore_components_intro }}</p>
|
||||
|
||||
<div class="grid-2">
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">👥</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.pnscore_cat_market_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.pnscore_cat_market_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">💶</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.pnscore_cat_econ_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.pnscore_cat_econ_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">🎯</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.pnscore_cat_gap_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.pnscore_cat_gap_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">🎾</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.pnscore_cat_sports_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.pnscore_cat_sports_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">📍</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.pnscore_cat_catchment_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.pnscore_cat_catchment_p }}</p>
|
||||
</div>
|
||||
<div class="card">
|
||||
<div style="font-size:1.5rem;margin-bottom:0.5rem">📊</div>
|
||||
<h3 class="font-semibold text-navy mb-1">{{ t.pnscore_cat_maturity_h3 }}</h3>
|
||||
<p class="text-sm text-slate-dark">{{ t.pnscore_cat_maturity_p }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Score Bands -->
|
||||
<section class="card mb-8">
|
||||
<h2 class="text-xl mb-4">{{ t.pnscore_read_h2 }}</h2>
|
||||
<div class="space-y-4">
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#15803D;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.pnscore_band_high_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.pnscore_band_high_p }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#0D9488;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.pnscore_band_good_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.pnscore_band_good_p }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#D97706;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.pnscore_band_mid_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.pnscore_band_mid_p }}</p>
|
||||
</div>
|
||||
<div>
|
||||
<div style="display:flex;align-items:center;gap:0.5rem;margin-bottom:0.25rem">
|
||||
<span style="display:inline-block;width:12px;height:12px;border-radius:50%;background:#EA580C;flex-shrink:0"></span>
|
||||
<span class="font-semibold text-navy">{{ t.pnscore_band_low_label }}</span>
|
||||
</div>
|
||||
<p class="text-sm text-slate-dark" style="margin-left:1.75rem">{{ t.pnscore_band_low_p }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Data Sources -->
|
||||
<section class="card mb-8">
|
||||
<h2 class="text-xl mb-4">{{ t.pnscore_sources_h2 }}</h2>
|
||||
<p class="text-slate-dark leading-relaxed">{{ t.pnscore_sources_p }}</p>
|
||||
</section>
|
||||
|
||||
<!-- Limitations -->
|
||||
<section class="card mb-8">
|
||||
<h2 class="text-xl mb-4">{{ t.pnscore_limits_h2 }}</h2>
|
||||
<div class="space-y-3 text-slate-dark leading-relaxed">
|
||||
<p>{{ t.pnscore_limits_p1 }}</p>
|
||||
<p>{{ t.pnscore_limits_p2 }}</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- CTA -->
|
||||
<div class="text-center my-12">
|
||||
<a href="{{ url_for('content.markets') }}" class="btn" style="margin-right:0.75rem">{{ t.pnscore_cta_markets }}</a>
|
||||
<a href="{{ url_for('planner.index') }}" class="btn-secondary" style="display:inline-block;padding:0.625rem 1.25rem;border-radius:6px;font-weight:600;font-size:0.875rem;text-decoration:none">{{ t.pnscore_cta_planner }}</a>
|
||||
</div>
|
||||
|
||||
<!-- FAQ -->
|
||||
<section>
|
||||
<h2 class="text-xl mb-4">{{ t.pnscore_faq_h2 }}</h2>
|
||||
<div class="space-y-4">
|
||||
{% for i in range(1, 6) %}
|
||||
<details style="border:1px solid #E2E8F0;border-radius:8px;padding:0.75rem 1rem">
|
||||
<summary class="font-semibold text-navy" style="cursor:pointer">{{ t['pnscore_faq_q' ~ i] }}</summary>
|
||||
<p class="text-sm text-slate-dark mt-2">{{ t['pnscore_faq_a' ~ i] }}</p>
|
||||
</details>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
</div>
|
||||
</main>
|
||||
{% endblock %}
|
||||
@@ -3,14 +3,14 @@
|
||||
{% block title %}Datenschutzerklärung - {{ config.APP_NAME }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="description" content="Datenschutzerklärung für Padelnomics. DSGVO-konform. Erfahren Sie, wie wir Ihre Daten erheben, verwenden und schützen. Wir nutzen Umami (cookielose Analyse), Paddle (Zahlungen) und Resend (E-Mail). Wir verkaufen Ihre Daten niemals.">
|
||||
<meta name="description" content="Datenschutzerklärung für Padelnomics. DSGVO-konform. Erfahren Sie, wie wir Ihre Daten erheben, verwenden und schützen. Wir nutzen Umami (cookielose Analyse), Microsoft Clarity (Sitzungsaufzeichnungen, nur mit Einwilligung), Paddle (Zahlungen) und Resend (E-Mail). Wir verkaufen Ihre Daten niemals.">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main class="container-page py-12">
|
||||
<div class="card max-w-3xl mx-auto">
|
||||
<h1 class="text-2xl mb-1">Datenschutzerklärung</h1>
|
||||
<p class="text-sm text-slate mb-8">Stand: Februar 2026 — <a href="{{ url_for('public.privacy', lang='en') }}" style="text-decoration:underline">Read in English</a></p>
|
||||
<p class="text-sm text-slate mb-8">Stand: März 2026 — <a href="{{ url_for('public.privacy', lang='en') }}" style="text-decoration:underline">Read in English</a></p>
|
||||
|
||||
<div class="space-y-6 text-slate-dark leading-relaxed">
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
<p class="mt-3"><strong>Automatisch erhobene Daten:</strong></p>
|
||||
<ul class="list-disc pl-6 mt-2 space-y-1">
|
||||
<li>Aggregierte, anonymisierte Seitenaufruf-Daten über Umami (keine IP-Speicherung, kein siteübergreifendes Tracking)</li>
|
||||
<li>Anonymisierte Interaktionsdaten (Klicks, Scrolltiefe, Sitzungsaufzeichnungen) über Microsoft Clarity — nur mit Ihrer Einwilligung</li>
|
||||
<li>Session-Cookie zur Aufrechterhaltung der Anmeldung</li>
|
||||
</ul>
|
||||
<p class="mt-3"><strong>Beim Checkout erhobene Daten (durch Paddle, unseren Zahlungsdienstleister):</strong></p>
|
||||
@@ -60,6 +61,7 @@
|
||||
<li><strong>Umami</strong> (selbst gehostet auf unserer eigenen Infrastruktur) — cookielose, datenschutzfreundliche Webanalyse. Keine Übermittlung personenbezogener Daten an Dritte.</li>
|
||||
<li><strong>Paddle</strong> (paddle.com, UK/USA) — Zahlungsabwicklung und Abonnementverwaltung. Paddle agiert als Merchant of Record. Siehe <a href="https://www.paddle.com/legal/privacy" target="_blank" rel="noopener" style="text-decoration:underline">Datenschutzerklärung von Paddle</a>.</li>
|
||||
<li><strong>Resend</strong> (resend.com, USA) — Versand transaktionaler E-Mails (Magic Links, Belege). Die Übermittlung erfolgt auf Basis von Standardvertragsklauseln (SCC) der Europäischen Kommission. Siehe <a href="https://resend.com/legal/privacy-policy" target="_blank" rel="noopener" style="text-decoration:underline">Datenschutzerklärung von Resend</a>.</li>
|
||||
<li><strong>Microsoft Clarity</strong> (clarity.microsoft.com, USA) — Heatmaps und Sitzungsaufzeichnungen zur Verbesserung der Nutzererfahrung. Nur aktiv mit Ihrer Einwilligung (funktionale Cookies). Die Übermittlung erfolgt auf Basis von Standardvertragsklauseln (SCC). Siehe <a href="https://privacy.microsoft.com/privacystatement" target="_blank" rel="noopener" style="text-decoration:underline">Datenschutzerklärung von Microsoft</a>.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
@@ -87,6 +89,8 @@
|
||||
<p class="mt-3 font-semibold text-sm">Funktional (erfordert Einwilligung)</p>
|
||||
<ul class="list-disc pl-6 mt-1 space-y-1">
|
||||
<li><strong>ab_*</strong> — Weist Ihnen eine A/B-Testvariante zu, um unsere Website zu verbessern. Läuft nach 30 Tagen ab. Wird nur gesetzt, wenn Sie funktionalen Cookies zugestimmt haben.</li>
|
||||
<li><strong>_clck</strong> — Microsoft Clarity Nutzerkennung. Gültig 12 Monate. Wird nur gesetzt, wenn Sie funktionalen Cookies zugestimmt haben.</li>
|
||||
<li><strong>_clsk</strong> — Microsoft Clarity Sitzungskennung. Gültig bis zum Ende der Sitzung. Wird nur gesetzt, wenn Sie funktionalen Cookies zugestimmt haben.</li>
|
||||
</ul>
|
||||
|
||||
<p class="mt-3 font-semibold text-sm">Zahlung (nur beim Checkout)</p>
|
||||
@@ -115,7 +119,7 @@
|
||||
|
||||
<section>
|
||||
<h2 class="text-lg mb-2">8. Internationale Datenübermittlung</h2>
|
||||
<p>Resend verarbeitet Daten in den USA. Die Übermittlung erfolgt auf Basis von Standardvertragsklauseln (SCC) der Europäischen Kommission. Paddle unterliegt dem UK-DSGVO mit Angemessenheitsbeschluss. Umami läuft auf unserer eigenen EU-Infrastruktur — keine Daten verlassen die EU.</p>
|
||||
<p>Resend und Microsoft Clarity verarbeiten Daten in den USA. Die Übermittlung erfolgt auf Basis von Standardvertragsklauseln (SCC) der Europäischen Kommission. Paddle unterliegt dem UK-DSGVO mit Angemessenheitsbeschluss. Umami läuft auf unserer eigenen EU-Infrastruktur — keine Daten verlassen die EU.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
@@ -3,14 +3,14 @@
|
||||
{% block title %}Privacy Policy - {{ config.APP_NAME }}{% endblock %}
|
||||
|
||||
{% block head %}
|
||||
<meta name="description" content="Privacy Policy for Padelnomics. GDPR compliant. Learn how we collect, use, and protect your data. We use Umami (cookieless analytics), Paddle (payments), and Resend (email). We never sell your personal information.">
|
||||
<meta name="description" content="Privacy Policy for Padelnomics. GDPR compliant. Learn how we collect, use, and protect your data. We use Umami (cookieless analytics), Microsoft Clarity (session recordings, with consent), Paddle (payments), and Resend (email). We never sell your personal information.">
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main class="container-page py-12">
|
||||
<div class="card max-w-3xl mx-auto">
|
||||
<h1 class="text-2xl mb-1">Privacy Policy</h1>
|
||||
<p class="text-sm text-slate mb-8">Last updated: February 2026 — <a href="{{ url_for('public.privacy', lang='de') }}" style="text-decoration:underline">Datenschutzerklärung auf Deutsch</a></p>
|
||||
<p class="text-sm text-slate mb-8">Last updated: March 2026 — <a href="{{ url_for('public.privacy', lang='de') }}" style="text-decoration:underline">Datenschutzerklärung auf Deutsch</a></p>
|
||||
|
||||
<div class="space-y-6 text-slate-dark leading-relaxed">
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
<p class="mt-3"><strong>Data collected automatically:</strong></p>
|
||||
<ul class="list-disc pl-6 mt-2 space-y-1">
|
||||
<li>Aggregated, anonymised page-view data via Umami (no IP address stored, no cross-site tracking)</li>
|
||||
<li>Anonymised interaction data (clicks, scroll depth, session recordings) via Microsoft Clarity — only with your consent</li>
|
||||
<li>Session cookie to keep you signed in</li>
|
||||
</ul>
|
||||
<p class="mt-3"><strong>Data collected at checkout (by Paddle, our payment processor):</strong></p>
|
||||
@@ -60,6 +61,7 @@
|
||||
<li><strong>Umami</strong> (self-hosted on our own infrastructure) — cookieless, privacy-first analytics. No personal data transferred to third parties.</li>
|
||||
<li><strong>Paddle</strong> (paddle.com, UK/USA) — payment processing and subscription management. Paddle acts as merchant of record. See <a href="https://www.paddle.com/legal/privacy" target="_blank" rel="noopener" style="text-decoration:underline">Paddle's Privacy Policy</a>.</li>
|
||||
<li><strong>Resend</strong> (resend.com, USA) — transactional email delivery (magic links, receipts). Data is transferred under Standard Contractual Clauses. See <a href="https://resend.com/legal/privacy-policy" target="_blank" rel="noopener" style="text-decoration:underline">Resend's Privacy Policy</a>.</li>
|
||||
<li><strong>Microsoft Clarity</strong> (clarity.microsoft.com, USA) — heatmaps and session recordings for UX improvement. Only active with your consent (functional cookies). Data is transferred under Standard Contractual Clauses. See <a href="https://privacy.microsoft.com/privacystatement" target="_blank" rel="noopener" style="text-decoration:underline">Microsoft Privacy Statement</a>.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
@@ -87,6 +89,8 @@
|
||||
<p class="mt-3 font-semibold text-sm">Functional (require consent)</p>
|
||||
<ul class="list-disc pl-6 mt-1 space-y-1">
|
||||
<li><strong>ab_*</strong> — Assigns you to an A/B test variant to help us improve the site. Expires after 30 days. Only set if you accept functional cookies.</li>
|
||||
<li><strong>_clck</strong> — Microsoft Clarity user identifier. Expires after 12 months. Only set if you accept functional cookies.</li>
|
||||
<li><strong>_clsk</strong> — Microsoft Clarity session identifier. Expires at end of session. Only set if you accept functional cookies.</li>
|
||||
</ul>
|
||||
|
||||
<p class="mt-3 font-semibold text-sm">Payment (checkout only)</p>
|
||||
@@ -115,7 +119,7 @@
|
||||
|
||||
<section>
|
||||
<h2 class="text-lg mb-2">8. International Transfers</h2>
|
||||
<p>Resend processes data in the USA. Transfers are protected by Standard Contractual Clauses (SCCs) approved by the European Commission. Paddle operates under UK GDPR with an adequacy finding. Umami runs on our own EU-based infrastructure — no data leaves the EU.</p>
|
||||
<p>Resend and Microsoft Clarity process data in the USA. Transfers are protected by Standard Contractual Clauses (SCCs) approved by the European Commission. Paddle operates under UK GDPR with an adequacy finding. Umami runs on our own EU-based infrastructure — no data leaves the EU.</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
|
||||
60
web/src/padelnomics/seo/_indexnow.py
Normal file
60
web/src/padelnomics/seo/_indexnow.py
Normal file
@@ -0,0 +1,60 @@
|
||||
"""IndexNow push notifications — instant URL submission to Bing, Yandex, Seznam, Naver.
|
||||
|
||||
Fire-and-forget: logs errors but never raises. Content publishing must not fail
|
||||
because IndexNow is down.
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
import httpx
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
_INDEXNOW_ENDPOINT = "https://api.indexnow.org/IndexNow"
|
||||
_BATCH_LIMIT = 10_000 # IndexNow max URLs per request
|
||||
|
||||
|
||||
async def notify_urls(
|
||||
urls: list[str], host: str, key: str, timeout_seconds: int = 10
|
||||
) -> bool:
|
||||
"""POST changed URLs to IndexNow. Returns True on success, False on failure.
|
||||
|
||||
Skips silently if key is empty (dev environments).
|
||||
Batches into chunks of 10,000 URLs per IndexNow spec.
|
||||
"""
|
||||
assert 1 <= timeout_seconds <= 60, "timeout_seconds must be 1-60"
|
||||
|
||||
if not key:
|
||||
return False
|
||||
if not urls:
|
||||
return True
|
||||
|
||||
key_location = f"https://{host}/{key}.txt"
|
||||
|
||||
try:
|
||||
async with httpx.AsyncClient(timeout=timeout_seconds) as client:
|
||||
for offset in range(0, len(urls), _BATCH_LIMIT):
|
||||
batch = urls[offset : offset + _BATCH_LIMIT]
|
||||
response = await client.post(
|
||||
_INDEXNOW_ENDPOINT,
|
||||
json={
|
||||
"host": host,
|
||||
"key": key,
|
||||
"keyLocation": key_location,
|
||||
"urlList": batch,
|
||||
},
|
||||
)
|
||||
# IndexNow returns 200 or 202 on success
|
||||
if response.status_code not in (200, 202):
|
||||
logger.warning(
|
||||
"IndexNow returned %d for %d URLs: %s",
|
||||
response.status_code,
|
||||
len(batch),
|
||||
response.text[:200],
|
||||
)
|
||||
return False
|
||||
logger.info("IndexNow accepted %d URLs", len(batch))
|
||||
return True
|
||||
except Exception:
|
||||
logger.warning("IndexNow notification failed", exc_info=True)
|
||||
return False
|
||||
@@ -1,10 +1,14 @@
|
||||
"""Sitemap generation with in-memory TTL cache and hreflang alternates."""
|
||||
|
||||
import logging
|
||||
import time
|
||||
from urllib.parse import urlparse
|
||||
|
||||
from quart import Response
|
||||
|
||||
from .core import fetch_all
|
||||
from .core import config, fetch_all
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Process-local cache — valid for the current single-Hypercorn-worker deployment
|
||||
# (Dockerfile: `--workers 1`). If worker count increases, replace with a
|
||||
@@ -26,9 +30,10 @@ STATIC_PATHS = [
|
||||
"/imprint",
|
||||
"/suppliers",
|
||||
"/markets",
|
||||
"/market-score",
|
||||
"/padelnomics-score",
|
||||
"/planner/",
|
||||
"/directory/",
|
||||
"/opportunity-map",
|
||||
]
|
||||
|
||||
|
||||
@@ -65,16 +70,16 @@ async def _generate_sitemap_xml(base_url: str) -> str:
|
||||
for lang in LANGS:
|
||||
entries.append(_url_entry(f"{base}/{lang}{path}", alternates))
|
||||
|
||||
# Billing pricing — no lang prefix, no hreflang
|
||||
entries.append(_url_entry(f"{base}/billing/pricing", []))
|
||||
|
||||
# Published articles — both lang variants with accurate lastmod.
|
||||
# Exclude noindex articles (thin data) to keep sitemap signal-dense.
|
||||
# GROUP BY url_path: articles table has one row per language per url_path,
|
||||
# but the for-lang loop already creates both lang entries per path.
|
||||
articles = await fetch_all(
|
||||
"""SELECT url_path, COALESCE(updated_at, published_at) AS lastmod
|
||||
"""SELECT url_path, MAX(COALESCE(updated_at, published_at)) AS lastmod
|
||||
FROM articles
|
||||
WHERE status = 'published' AND noindex = 0 AND published_at <= datetime('now')
|
||||
ORDER BY published_at DESC
|
||||
GROUP BY url_path
|
||||
ORDER BY MAX(published_at) DESC
|
||||
LIMIT 25000"""
|
||||
)
|
||||
for article in articles:
|
||||
@@ -127,3 +132,22 @@ async def sitemap_response(base_url: str) -> Response:
|
||||
content_type="application/xml",
|
||||
headers={"Cache-Control": f"public, max-age={CACHE_TTL_SECONDS}"},
|
||||
)
|
||||
|
||||
|
||||
async def notify_indexnow(paths: list[str]) -> None:
|
||||
"""Ping IndexNow with full URLs for the given paths (both lang variants).
|
||||
|
||||
Paths should be lang-agnostic (e.g. "/blog/my-article"). Each path gets
|
||||
expanded to all supported language variants.
|
||||
"""
|
||||
if not config.INDEXNOW_KEY or not paths:
|
||||
return
|
||||
base = config.BASE_URL.rstrip("/")
|
||||
urls = []
|
||||
for path in paths:
|
||||
for lang in LANGS:
|
||||
urls.append(f"{base}/{lang}{path}")
|
||||
host = urlparse(config.BASE_URL).hostname or "padelnomics.io"
|
||||
from .seo._indexnow import notify_urls
|
||||
|
||||
await notify_urls(urls, host=host, key=config.INDEXNOW_KEY)
|
||||
|
||||
@@ -879,7 +879,8 @@
|
||||
.leaflet-tooltip.map-tooltip::before { display: none; }
|
||||
.leaflet-tooltip.map-tooltip strong { color: white; }
|
||||
|
||||
/* Polished variable-size circle — white border + drop shadow */
|
||||
/* ── Single-color map markers ── */
|
||||
/* Circle: score-colored background, white border, shadow, hover */
|
||||
.pn-marker {
|
||||
border-radius: 50%;
|
||||
border: 2.5px solid white;
|
||||
@@ -892,18 +893,32 @@
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
/* Non-article city markers: faded + dashed border, no click affordance */
|
||||
/* User's city highlight — blue outer glow */
|
||||
.pn-marker--highlight {
|
||||
border: 2.5px solid #3B82F6;
|
||||
box-shadow: 0 0 0 3px rgba(59,130,246,0.25), 0 2px 8px rgba(0,0,0,0.28);
|
||||
}
|
||||
|
||||
/* Non-article city markers: faded, no click */
|
||||
.pn-marker--muted {
|
||||
opacity: 0.45;
|
||||
border: 2px dashed rgba(255,255,255,0.6);
|
||||
opacity: 0.4;
|
||||
cursor: default;
|
||||
filter: saturate(0.7);
|
||||
filter: saturate(0.6) brightness(1.1);
|
||||
}
|
||||
.pn-marker--muted:hover {
|
||||
transform: none;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.28);
|
||||
}
|
||||
|
||||
/* Pulse animation — high-score locations */
|
||||
.pn-marker--pulse {
|
||||
animation: marker-pulse 2.5s ease-in-out infinite;
|
||||
}
|
||||
@keyframes marker-pulse {
|
||||
0%, 100% { transform: scale(1); opacity: 1; }
|
||||
50% { transform: scale(1.2); opacity: 0.7; }
|
||||
}
|
||||
|
||||
/* Small fixed venue dot */
|
||||
.pn-venue {
|
||||
width: 10px;
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
* Looks for #country-map and #city-map elements. If neither exists, does nothing.
|
||||
* Expects data-* attributes on the map elements and a global LEAFLET_JS_URL
|
||||
* variable pointing to the Leaflet JS bundle.
|
||||
*
|
||||
* Depends on map-markers.js (window.PNMarkers) being loaded first.
|
||||
*/
|
||||
(function() {
|
||||
var countryMapEl = document.getElementById('country-map');
|
||||
@@ -12,22 +14,13 @@
|
||||
|
||||
var TILES = 'https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png';
|
||||
var TILES_ATTR = '© <a href="https://www.openstreetmap.org/copyright">OSM</a> © <a href="https://carto.com/">CARTO</a>';
|
||||
var sc = PNMarkers.scoreColor;
|
||||
var T = window.__MAP_T || {};
|
||||
|
||||
function scoreColor(score) {
|
||||
if (score >= 60) return '#16A34A';
|
||||
if (score >= 30) return '#D97706';
|
||||
return '#DC2626';
|
||||
}
|
||||
|
||||
function makeIcon(size, color, muted) {
|
||||
var s = Math.round(size);
|
||||
var cls = 'pn-marker' + (muted ? ' pn-marker--muted' : '');
|
||||
return L.divIcon({
|
||||
className: '',
|
||||
html: '<div class="' + cls + '" style="width:' + s + 'px;height:' + s + 'px;background:' + color + ';"></div>',
|
||||
iconSize: [s, s],
|
||||
iconAnchor: [s / 2, s / 2],
|
||||
});
|
||||
function fmtPop(p) {
|
||||
return p >= 1000000 ? (p / 1000000).toFixed(1) + 'M'
|
||||
: p >= 1000 ? Math.round(p / 1000) + 'K'
|
||||
: (p || '');
|
||||
}
|
||||
|
||||
function initCountryMap(el) {
|
||||
@@ -45,22 +38,26 @@
|
||||
if (!c.lat || !c.lon) return;
|
||||
var size = 10 + 36 * Math.sqrt((c.padel_venue_count || 1) / maxV);
|
||||
var hasArticle = c.has_article !== false;
|
||||
var color = scoreColor(c.market_score);
|
||||
var pop = c.population >= 1000000
|
||||
? (c.population / 1000000).toFixed(1) + 'M'
|
||||
: (c.population >= 1000 ? Math.round(c.population / 1000) + 'K' : (c.population || ''));
|
||||
var oppColor = c.opportunity_score >= 60 ? '#16A34A' : (c.opportunity_score >= 30 ? '#D97706' : '#3B82F6');
|
||||
var score = c.opportunity_score || 0;
|
||||
var hex = sc(score);
|
||||
var pop = fmtPop(c.population);
|
||||
var tip = '<strong>' + c.city_name + '</strong><br>'
|
||||
+ (c.padel_venue_count || 0) + ' venues'
|
||||
+ (pop ? ' · ' + pop : '')
|
||||
+ '<br><span style="color:' + color + ';font-weight:600;">Padelnomics Market Score: ' + Math.round(c.market_score) + '/100</span>'
|
||||
+ '<br><span style="color:' + oppColor + ';font-weight:600;">Padelnomics Opportunity Score: ' + Math.round(c.opportunity_score || 0) + '/100</span>';
|
||||
+ '<span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:' + hex + ';vertical-align:middle;margin-right:4px;"></span>'
|
||||
+ '<span style="color:' + hex + ';font-weight:600;">' + (T.score_label || 'Padelnomics Score') + ': ' + Math.round(score) + '/100</span><br>'
|
||||
+ '<span style="color:#94A3B8;font-size:0.75rem;">'
|
||||
+ (c.padel_venue_count || 0) + ' ' + (T.venues || 'venues')
|
||||
+ (pop ? ' · ' + pop + ' ' + (T.pop || 'pop') : '') + '</span>';
|
||||
if (hasArticle) {
|
||||
tip += '<br><span style="color:#94A3B8;font-size:0.75rem;">Click to explore →</span>';
|
||||
tip += '<br><span style="color:#94A3B8;font-size:0.75rem;">' + (T.click_explore || 'Click to explore →') + '</span>';
|
||||
} else {
|
||||
tip += '<br><span style="color:#94A3B8;font-size:0.75rem;">Coming soon</span>';
|
||||
tip += '<br><span style="color:#94A3B8;font-size:0.75rem;">' + (T.coming_soon || 'Coming soon') + '</span>';
|
||||
}
|
||||
var marker = L.marker([c.lat, c.lon], { icon: makeIcon(size, color, !hasArticle) })
|
||||
var icon = PNMarkers.makeIcon({
|
||||
size: size,
|
||||
color: hex,
|
||||
muted: !hasArticle,
|
||||
});
|
||||
var marker = L.marker([c.lat, c.lon], { icon: icon })
|
||||
.bindTooltip(tip, { className: 'map-tooltip', direction: 'top', offset: [0, -Math.round(size / 2)] })
|
||||
.addTo(map);
|
||||
if (hasArticle) {
|
||||
@@ -69,6 +66,23 @@
|
||||
bounds.push([c.lat, c.lon]);
|
||||
});
|
||||
if (bounds.length) map.fitBounds(bounds, { padding: [24, 24] });
|
||||
|
||||
// Highlight user's city (best-effort name match via CF-IPCity)
|
||||
var uc = (window.__GEO || {}).city || '';
|
||||
if (uc) {
|
||||
var match = data.find(function(c) {
|
||||
return c.city_name && c.city_name.toLowerCase() === uc.toLowerCase();
|
||||
});
|
||||
if (match && match.lat && match.lon) {
|
||||
var hSize = 10 + 36 * Math.sqrt((match.padel_venue_count || 1) / maxV);
|
||||
var hIcon = PNMarkers.makeIcon({
|
||||
size: hSize,
|
||||
color: sc(match.opportunity_score || 0),
|
||||
highlight: true,
|
||||
});
|
||||
L.marker([match.lat, match.lon], { icon: hIcon }).addTo(map);
|
||||
}
|
||||
}
|
||||
})
|
||||
.catch(function(err) { console.error('Country map fetch failed:', err); });
|
||||
}
|
||||
@@ -89,9 +103,9 @@
|
||||
var outdoor = v.outdoor_court_count || 0;
|
||||
var total = v.court_count || (indoor + outdoor);
|
||||
var courtLine = total
|
||||
? total + ' court' + (total > 1 ? 's' : '')
|
||||
? total + ' ' + (T.courts || 'court' + (total > 1 ? 's' : ''))
|
||||
+ (indoor || outdoor
|
||||
? ' (' + [indoor ? indoor + ' indoor' : '', outdoor ? outdoor + ' outdoor' : ''].filter(Boolean).join(', ') + ')'
|
||||
? ' (' + [indoor ? indoor + ' ' + (T.indoor || 'indoor') : '', outdoor ? outdoor + ' ' + (T.outdoor || 'outdoor') : ''].filter(Boolean).join(', ') + ')'
|
||||
: '')
|
||||
: '';
|
||||
var tip = '<strong>' + v.name + '</strong>' + (courtLine ? '<br>' + courtLine : '');
|
||||
|
||||
51
web/src/padelnomics/static/js/map-markers.js
Normal file
51
web/src/padelnomics/static/js/map-markers.js
Normal file
@@ -0,0 +1,51 @@
|
||||
/**
|
||||
* Shared map marker utilities — single-color markers with 5-tier color scale.
|
||||
*
|
||||
* Exposes window.PNMarkers = { scoreColor, makeIcon }
|
||||
*
|
||||
* scoreColor(score) → hex color string (5 tiers, colorblind-safe luminance steps)
|
||||
* makeIcon(opts) → L.divIcon with single-color circle
|
||||
*
|
||||
* opts = {
|
||||
* size: number, // marker diameter in px
|
||||
* color: string, // hex color (from scoreColor)
|
||||
* muted: boolean, // faded, no click affordance
|
||||
* highlight: boolean, // blue outer glow (user's geo city)
|
||||
* pulse: boolean, // gentle pulse (high score)
|
||||
* }
|
||||
*/
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
// 5-tier color scale — distinct luminance at each tier for deuteranopia/protanopia
|
||||
function scoreColor(score) {
|
||||
if (score >= 80) return '#15803D'; // deep green — excellent
|
||||
if (score >= 60) return '#0D9488'; // teal — good
|
||||
if (score >= 40) return '#D97706'; // amber — moderate
|
||||
if (score >= 20) return '#EA580C'; // orange-red — below avg
|
||||
return '#DC2626'; // red — poor
|
||||
}
|
||||
|
||||
function makeIcon(opts) {
|
||||
var s = Math.round(opts.size);
|
||||
|
||||
var cls = 'pn-marker';
|
||||
if (opts.muted) cls += ' pn-marker--muted';
|
||||
if (opts.highlight) cls += ' pn-marker--highlight';
|
||||
if (opts.pulse && !opts.muted) cls += ' pn-marker--pulse';
|
||||
|
||||
var html = '<div class="' + cls + '" style="width:' + s + 'px;height:' + s + 'px;background:' + opts.color + ';"></div>';
|
||||
|
||||
return L.divIcon({
|
||||
className: '',
|
||||
html: html,
|
||||
iconSize: [s, s],
|
||||
iconAnchor: [s / 2, s / 2],
|
||||
});
|
||||
}
|
||||
|
||||
window.PNMarkers = {
|
||||
scoreColor: scoreColor,
|
||||
makeIcon: makeIcon,
|
||||
};
|
||||
})();
|
||||
@@ -151,6 +151,14 @@
|
||||
function dismiss(value) {
|
||||
document.cookie = COOKIE_NAME + '=' + value
|
||||
+ ';path=/;max-age=' + MAX_AGE + ';SameSite=Lax';
|
||||
// Bootstrap Clarity immediately on functional consent (no reload needed)
|
||||
if (value.indexOf('functional') !== -1 && window.clarity === undefined) {
|
||||
(function(c,l,a,r,i,t,y){
|
||||
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
||||
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
|
||||
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
||||
})(window, document, "clarity", "script", "{{ config.CLARITY_PROJECT_ID }}");
|
||||
}
|
||||
banner.classList.remove('cb-enter');
|
||||
banner.classList.add('cb-exit');
|
||||
setTimeout(function () { banner.style.display = 'none'; }, 280);
|
||||
|
||||
@@ -18,6 +18,20 @@
|
||||
<!-- Umami Analytics -->
|
||||
<script defer src="https://umami.padelnomics.io/Z.js" data-website-id="4474414b-58d6-4c6e-89a1-df5ea1f49d70"{% if ab_tag %} data-tag="{{ ab_tag }}"{% endif %}></script>
|
||||
|
||||
<!-- Microsoft Clarity (consent-gated) -->
|
||||
{% if config.CLARITY_PROJECT_ID %}
|
||||
<script type="text/javascript">
|
||||
(function(){
|
||||
if (!/cookie_consent=[^;]*functional/.test(document.cookie)) return;
|
||||
(function(c,l,a,r,i,t,y){
|
||||
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
||||
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
|
||||
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
||||
})(window, document, "clarity", "script", "{{ config.CLARITY_PROJECT_ID }}");
|
||||
})();
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
<!-- Paddle.js (only on checkout pages via block override) -->
|
||||
{% block paddle %}{% endblock %}
|
||||
|
||||
@@ -29,14 +43,16 @@
|
||||
<link rel="alternate" hreflang="de" href="{{ config.BASE_URL }}/de{{ path_suffix }}">
|
||||
<link rel="alternate" hreflang="x-default" href="{{ config.BASE_URL }}/en{{ path_suffix }}">
|
||||
{% endif %}
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
|
||||
<script>window.__GEO = {country: "{{ user_country }}", city: "{{ user_city }}"};</script>
|
||||
{% block head %}
|
||||
<meta property="og:title" content="{{ config.APP_NAME }}">
|
||||
<meta property="og:description" content="">
|
||||
<meta property="og:type" content="website">
|
||||
<meta property="og:url" content="{{ config.BASE_URL }}{{ request.path }}">
|
||||
<meta property="og:image" content="{{ url_for('static', filename='images/logo.png', _external=True) }}">
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
|
||||
{% block head %}{% endblock %}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
<nav class="nav-bar" id="main-nav">
|
||||
@@ -171,7 +187,7 @@
|
||||
<li><a href="{{ url_for('planner.index') }}">{{ t.nav_planner }}</a></li>
|
||||
<li><a href="{{ url_for('directory.index') }}">{{ t.nav_directory }}</a></li>
|
||||
<li><a href="{{ url_for('content.markets') }}">{{ t.nav_markets }}</a></li>
|
||||
<li><a href="{{ url_for('public.market_score') }}">{{ t.footer_market_score }}</a></li>
|
||||
<li><a href="{{ url_for('public.padelnomics_score') }}">{{ t.footer_padelnomics_score }}</a></li>
|
||||
<li><a href="{{ url_for('public.suppliers') }}">{{ t.nav_suppliers }}</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -219,10 +219,10 @@
|
||||
<div class="market-stat-label">{{ s.labels.median_offpeak_rate }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if s.market_data.market_score %}
|
||||
{% if s.market_data.opportunity_score %}
|
||||
<div class="market-stat">
|
||||
<div class="market-stat-value">{{ "%.0f"|format(s.market_data.market_score) }}/100</div>
|
||||
<div class="market-stat-label">{{ s.labels.market_score }}</div>
|
||||
<div class="market-stat-value">{{ "%.0f"|format(s.market_data.opportunity_score) }}/100</div>
|
||||
<div class="market-stat-label">{{ s.labels.padelnomics_score }}</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -57,10 +57,10 @@ _IDENTICAL_VALUE_ALLOWLIST = {
|
||||
# Business plan — Indoor/Outdoor same in DE, financial abbreviations
|
||||
"bp_indoor", "bp_outdoor",
|
||||
"bp_lbl_ebitda", "bp_lbl_irr", "bp_lbl_moic", "bp_lbl_opex",
|
||||
# Market Score — branded term kept in English in DE
|
||||
"footer_market_score",
|
||||
# Market Score chip labels — branded product names, same in DE
|
||||
"mscore_reife_chip", "mscore_potenzial_chip",
|
||||
# Padelnomics Score — branded term kept in English in DE
|
||||
"footer_padelnomics_score", "bp_lbl_padelnomics_score",
|
||||
# Map tooltip keys — some are identical in both languages
|
||||
"map_score_label", "map_indoor", "map_outdoor",
|
||||
# Brand name "Padelnomics" — same in DE
|
||||
"landing_vs_col_us",
|
||||
}
|
||||
|
||||
@@ -1,30 +1,36 @@
|
||||
"""Tests for the Market Score methodology page."""
|
||||
"""Tests for the Padelnomics Score methodology page."""
|
||||
|
||||
|
||||
async def test_en_returns_200(client):
|
||||
resp = await client.get("/en/market-score")
|
||||
resp = await client.get("/en/padelnomics-score")
|
||||
assert resp.status_code == 200
|
||||
text = await resp.get_data(as_text=True)
|
||||
assert "Market Score" in text
|
||||
assert "Padelnomics Score" in text
|
||||
assert "padelnomics" in text
|
||||
|
||||
|
||||
async def test_de_returns_200(client):
|
||||
resp = await client.get("/de/market-score")
|
||||
resp = await client.get("/de/padelnomics-score")
|
||||
assert resp.status_code == 200
|
||||
text = await resp.get_data(as_text=True)
|
||||
assert "Market Score" in text
|
||||
assert "Padelnomics Score" in text
|
||||
assert "padelnomics" in text
|
||||
|
||||
|
||||
async def test_legacy_redirect(client):
|
||||
resp = await client.get("/market-score")
|
||||
async def test_old_market_score_redirects(client):
|
||||
resp = await client.get("/en/market-score")
|
||||
assert resp.status_code == 301
|
||||
assert resp.headers["Location"].endswith("/en/market-score")
|
||||
assert "/padelnomics-score" in resp.headers["Location"]
|
||||
|
||||
|
||||
async def test_de_old_market_score_redirects(client):
|
||||
resp = await client.get("/de/market-score")
|
||||
assert resp.status_code == 301
|
||||
assert "/padelnomics-score" in resp.headers["Location"]
|
||||
|
||||
|
||||
async def test_contains_jsonld(client):
|
||||
resp = await client.get("/en/market-score")
|
||||
resp = await client.get("/en/padelnomics-score")
|
||||
text = await resp.get_data(as_text=True)
|
||||
assert '"@type": "WebPage"' in text
|
||||
assert '"@type": "FAQPage"' in text
|
||||
@@ -32,28 +38,27 @@ async def test_contains_jsonld(client):
|
||||
|
||||
|
||||
async def test_contains_faq_section(client):
|
||||
resp = await client.get("/en/market-score")
|
||||
resp = await client.get("/en/padelnomics-score")
|
||||
text = await resp.get_data(as_text=True)
|
||||
assert "Frequently Asked Questions" in text
|
||||
assert "<details" in text
|
||||
|
||||
|
||||
async def test_de_contains_faq_section(client):
|
||||
resp = await client.get("/de/market-score")
|
||||
resp = await client.get("/de/padelnomics-score")
|
||||
text = await resp.get_data(as_text=True)
|
||||
assert "Häufig gestellte Fragen" in text
|
||||
assert "Häufige Fragen" in text
|
||||
|
||||
|
||||
async def test_contains_og_tags(client):
|
||||
resp = await client.get("/en/market-score")
|
||||
resp = await client.get("/en/padelnomics-score")
|
||||
text = await resp.get_data(as_text=True)
|
||||
assert 'og:title' in text
|
||||
assert 'og:description' in text
|
||||
|
||||
|
||||
async def test_footer_has_market_score_link(client):
|
||||
resp = await client.get("/en/market-score")
|
||||
async def test_footer_has_padelnomics_score_link(client):
|
||||
resp = await client.get("/en/padelnomics-score")
|
||||
text = await resp.get_data(as_text=True)
|
||||
assert "/en/market-score" in text
|
||||
# Footer should link to market score page
|
||||
assert "Market Score" in text
|
||||
assert "/padelnomics-score" in text
|
||||
assert "Padelnomics Score" in text
|
||||
Reference in New Issue
Block a user