Compare commits

..

4 Commits

Author SHA1 Message Date
Deeman
927f77ae5e fix: country_supply column name in location_profiles
All checks were successful
CI / test (push) Successful in 55s
CI / tag (push) Successful in 3s
2026-03-10 10:12:09 +01:00
Deeman
9dc705970e merge: Opportunity Score v8 — better spread/discrimination
All checks were successful
CI / test (push) Successful in 54s
CI / tag (push) Successful in 3s
# Conflicts:
#	CHANGELOG.md
2026-03-09 22:24:43 +01:00
Deeman
487722c2f3 chore: changelog + fix stg_population_geonames unicode escapes
All checks were successful
CI / test (push) Successful in 54s
CI / tag (push) Successful in 3s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 20:32:49 +01:00
Deeman
23c7570736 merge: Opportunity Score v7 calibration fix 2026-03-09 18:12:47 +01:00
15 changed files with 143 additions and 259 deletions

View File

@@ -74,24 +74,6 @@ DUCKDB_PATH=local.duckdb SERVING_DUCKDB_PATH=analytics.duckdb \
```
## Production queries
Use `scripts/prod_query.py` to query the production DuckDB over SSH. **Always prefer this over raw SSH commands** — it handles escaping, enforces read-only, and blocks mutation keywords.
```bash
# Query analytics.duckdb (serving tables — default)
uv run python scripts/prod_query.py "SELECT COUNT(*) FROM serving.location_profiles"
# Query lakehouse.duckdb (foundation/staging tables)
uv run python scripts/prod_query.py --db lakehouse "SELECT * FROM foundation.dim_countries LIMIT 5"
# JSON output
uv run python scripts/prod_query.py --json "SELECT COUNT(*) FROM serving.location_profiles"
# Limit rows (default 500)
uv run python scripts/prod_query.py --max-rows 1000 "SELECT ..."
```
## Architecture documentation
| Topic | File |

View File

@@ -6,16 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
## [Unreleased]
### Fixed
- **pSEO error details collapse** — clicking "Error" on a job row expanded the details, but they collapsed after ~2s because HTMX polling replaced the `<tr>`. Jobs with errors now stop polling, keeping the `<details>` element stable.
- **UNIQUE constraint on article slug** — `ON CONFLICT(url_path, language)` upsert failed because a separate single-column `UNIQUE` on `slug` fired first. Migration 0030 drops the redundant `UNIQUE` from `slug` (keeps the index for lookups and the composite `UNIQUE(url_path, language)`).
### 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.

View File

@@ -40,4 +40,4 @@ WHERE geoname_id 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\u00C0-\u024F\u1E00-\u1EFF]+$')
AND regexp_matches(city_name, '^[\x20-\x7EÀ-ɏḀ-ỿ]+$')

View File

@@ -5,7 +5,7 @@
{% set pct = [((job.progress_current / job.progress_total) * 100) | int, 100] | min if job.progress_total else 0 %}
<tr id="job-{{ job.id }}"
{% if job.status == 'pending' and not job.error %}
{% if job.status == 'pending' %}
hx-get="{{ url_for('pseo.pseo_job_status', job_id=job.id) }}"
hx-trigger="every 2s"
hx-target="this"

View File

@@ -18,7 +18,6 @@ from jinja2 import ChainableUndefined, Environment
from ..analytics import fetch_analytics
from ..core import REPO_ROOT, slugify, transaction, utcnow_iso
from ..i18n import get_country_name
logger = logging.getLogger(__name__)
@@ -365,10 +364,6 @@ async def generate_articles(
# Jinja filters (round, int) don't crash.
safe_ctx = {k: (v if v is not None else 0) for k, v in row.items()}
safe_ctx["language"] = lang
if "country_name_en" in safe_ctx:
safe_ctx["country_name"] = get_country_name(
safe_ctx["country_name_en"], lang
)
# Render URL pattern (no lang prefix — blueprint provides /<lang>)
url_path = url_tmpl.render(**safe_ctx)

View File

@@ -18,7 +18,7 @@ from ..core import (
fetch_all,
fetch_one,
)
from ..i18n import get_country_name, get_translations
from ..i18n import get_translations
bp = Blueprint(
"content",
@@ -212,9 +212,6 @@ async def markets():
FROM serving.pseo_country_overview
ORDER BY total_venues DESC
""")
lang = g.get("lang", "en")
for row in map_countries:
row["country_name"] = get_country_name(row["country_name_en"], lang)
# 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:

View File

@@ -35,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 }}/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 }}{% 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.
{{ 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 }}.
@@ -45,13 +45,13 @@ Auf Basis aktueller Marktdaten für {{ city_name }} sieht die Investitionsrechnu
[scenario:{{ scenario_slug }}:capex]
Die Baukosten hängen stark davon ab, ob Du eine Indoor- oder Outdoor-Anlage planst. Indoor-Hallen in {{ country_name }} liegen typischerweise deutlich höher — Hallenbau, Belüftung und Beleuchtung treiben die Kosten. Outdoor-Anlagen sind günstiger im Bau, schränken aber die Saison und damit die Einnahmen ein. Die Courtanzahl bestimmt maßgeblich die Gesamtinvestition: Jeder zusätzliche Court senkt die Kosten pro Court, erhöht aber das Gesamtrisiko.
Die Baukosten hängen stark davon ab, ob Du eine Indoor- oder Outdoor-Anlage planst. Indoor-Hallen in {{ country_name_en }} liegen typischerweise deutlich höher — Hallenbau, Belüftung und Beleuchtung treiben die Kosten. Outdoor-Anlagen sind günstiger im Bau, schränken aber die Saison und damit die Einnahmen ein. Die Courtanzahl bestimmt maßgeblich die Gesamtinvestition: Jeder zusätzliche Court senkt die Kosten pro Court, erhöht aber das Gesamtrisiko.
## Umsatzpotenzial in {{ city_name }}
[scenario:{{ scenario_slug }}:operating]
Der Umsatz steht und fällt mit drei Faktoren: Courtpreise, Auslastung und Nebeneinnahmen. {% if median_peak_rate %}In {{ city_name }} liegen die Spitzenpreise bei {{ median_peak_rate | round(0) | int }} {{ price_currency }}/Std — {% if median_peak_rate >= 40 %}ein starkes Preisniveau, das auf hohe Nachfrage schließen lässt{% elif median_peak_rate >= 25 %}ein marktübliches Niveau für {{ country_name }}{% else %}ein vergleichsweise niedriges Preisniveau, das sich mit wachsender Nachfrage entwickeln dürfte{% endif %}. {% endif %}Die Auslastung variiert stark nach Tageszeit und Saison — in den Abendstunden und am Wochenende sind die Courts oft voll, während vormittags und nachmittags Kapazitäten frei bleiben.
Der Umsatz steht und fällt mit drei Faktoren: Courtpreise, Auslastung und Nebeneinnahmen. {% if median_peak_rate %}In {{ city_name }} liegen die Spitzenpreise bei {{ median_peak_rate | round(0) | int }} {{ price_currency }}/Std — {% if median_peak_rate >= 40 %}ein starkes Preisniveau, das auf hohe Nachfrage schließen lässt{% elif median_peak_rate >= 25 %}ein marktübliches Niveau für {{ country_name_en }}{% else %}ein vergleichsweise niedriges Preisniveau, das sich mit wachsender Nachfrage entwickeln dürfte{% endif %}. {% endif %}Die Auslastung variiert stark nach Tageszeit und Saison — in den Abendstunden und am Wochenende sind die Courts oft voll, während vormittags und nachmittags Kapazitäten frei bleiben.
## Rendite & Finanzierung
@@ -66,7 +66,7 @@ Die Renditekennzahlen zeigen, wie schnell sich Dein Investment amortisiert und w
## Marktumfeld in {{ city_name }}
{% if venues_per_100k >= 3.0 %}{{ city_name }} hat mit {{ venues_per_100k | round(1) }} Anlagen pro 100K Einwohner eine vergleichsweise hohe Padel-Dichte. Das spricht für einen etablierten Markt mit bewiesener Nachfrage — bedeutet aber auch mehr Wettbewerb für neue Anlagen. Differenzierung über Lage, Qualität oder Preisgestaltung wird hier zum Erfolgsfaktor.{% elif venues_per_100k >= 1.0 %}Mit {{ venues_per_100k | round(1) }} Anlagen pro 100K Einwohner hat {{ city_name }} eine moderate Padel-Abdeckung. Es gibt nachgewiesene Nachfrage, aber noch Platz für neue Anlagen — besonders in unterversorgten Stadtteilen oder mit einem differenzierten Angebot.{% else %}{{ city_name }} hat mit {{ venues_per_100k | round(1) }} Anlagen pro 100K Einwohner eine niedrige Padel-Dichte. Das bedeutet weniger Wettbewerb und First-Mover-Vorteile — aber auch weniger validierte Nachfragedaten. Die wachsende Popularität von Padel in {{ country_name }} spricht für ein hohes Entwicklungspotenzial.{% endif %}
{% if venues_per_100k >= 3.0 %}{{ city_name }} hat mit {{ venues_per_100k | round(1) }} Anlagen pro 100K Einwohner eine vergleichsweise hohe Padel-Dichte. Das spricht für einen etablierten Markt mit bewiesener Nachfrage — bedeutet aber auch mehr Wettbewerb für neue Anlagen. Differenzierung über Lage, Qualität oder Preisgestaltung wird hier zum Erfolgsfaktor.{% elif venues_per_100k >= 1.0 %}Mit {{ venues_per_100k | round(1) }} Anlagen pro 100K Einwohner hat {{ city_name }} eine moderate Padel-Abdeckung. Es gibt nachgewiesene Nachfrage, aber noch Platz für neue Anlagen — besonders in unterversorgten Stadtteilen oder mit einem differenzierten Angebot.{% else %}{{ city_name }} hat mit {{ venues_per_100k | round(1) }} Anlagen pro 100K Einwohner eine niedrige Padel-Dichte. Das bedeutet weniger Wettbewerb und First-Mover-Vorteile — aber auch weniger validierte Nachfragedaten. Die wachsende Popularität von Padel in {{ country_name_en }} spricht für ein hohes Entwicklungspotenzial.{% endif %}
Padel wächst europaweit rasant — in vielen Märkten verdoppelt sich die Anlagenzahl innerhalb weniger Jahre. Die vergleichsweise niedrigen Einstiegshürden (weniger Fläche als Tennis, kürzere Lernkurve für Spieler) treiben das Wachstum.
@@ -109,7 +109,7 @@ Die Rendite hängt von Deinen Baukosten, der Courtanzahl, Preisgestaltung und Au
<details>
<summary>Was kostet es, eine Padelhalle in {{ city_name }} zu bauen?</summary>
Das Gesamtinvestment hängt vom Hallentyp (Indoor vs. Outdoor), Grundstückskosten und lokalen Baustandards in {{ country_name }} ab. Das CAPEX-Modell oben schlüsselt die wichtigsten Kostentreiber für einen typischen Bau in {{ city_name }} auf.
Das Gesamtinvestment hängt vom Hallentyp (Indoor vs. Outdoor), Grundstückskosten und lokalen Baustandards in {{ country_name_en }} ab. Das CAPEX-Modell oben schlüsselt die wichtigsten Kostentreiber für einen typischen Bau in {{ city_name }} auf.
</details>
<details>
@@ -121,13 +121,13 @@ Das Gesamtinvestment hängt vom Hallentyp (Indoor vs. Outdoor), Grundstückskost
<details>
<summary>Was kosten Padel-Courts in {{ city_name }}?</summary>
{% if median_peak_rate %}Zu Hauptzeiten liegen die Preise bei durchschnittlich **{{ median_peak_rate | round(0) | int }} {{ price_currency }}/Std**, in Nebenzeiten bei ca. **{{ median_offpeak_rate | round(0) | int }} {{ price_currency }}/Std**. Die Daten stammen aus Live-Buchungsdaten von Playtomic.{% else %}Für {{ city_name }} liegen noch keine Playtomic-Preisdaten vor. Das Finanzmodell nutzt Benchmarks aus {{ country_name }} als Näherung.{% endif %}
{% if median_peak_rate %}Zu Hauptzeiten liegen die Preise bei durchschnittlich **{{ median_peak_rate | round(0) | int }} {{ price_currency }}/Std**, in Nebenzeiten bei ca. **{{ median_offpeak_rate | round(0) | int }} {{ price_currency }}/Std**. Die Daten stammen aus Live-Buchungsdaten von Playtomic.{% else %}Für {{ city_name }} liegen noch keine Playtomic-Preisdaten vor. Das Finanzmodell nutzt Benchmarks aus {{ country_name_en }} als Näherung.{% endif %}
</details>
<details>
<summary>Wie schneidet {{ city_name }} im Vergleich zu anderen Städten in {{ country_name }} ab?</summary>
<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> Score von {{ opportunity_score | round(1) }}/100 zeigt {{ city_name }}s Investitionspotenzial im Vergleich zu anderen Städten in {{ country_name }}. In der [Marktübersicht für {{ country_name }}](/{{ 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>
<div style="background:#EFF6FF;border:1px solid #BFDBFE;border-radius:12px;padding:1rem 1.25rem;margin:1.5rem 0;">
@@ -137,7 +137,7 @@ Der <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;co
---
*Weitere Padel-Märkte in {{ country_name }}: [{{ country_name }} Übersicht](/{{ language }}/markets/{{ country_slug }})*
*Weitere Padel-Märkte in {{ country_name_en }}: [{{ country_name_en }} Übersicht](/{{ language }}/markets/{{ country_slug }})*
{% else %}
# Is {{ city_name }} Worth Building a Padel Center In?
@@ -162,7 +162,7 @@ Der <span style="font-family:'Bricolage Grotesque',sans-serif;font-weight:800;co
<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 }}/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 }}{% 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.
{{ 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.
@@ -172,13 +172,13 @@ Based on current market data for {{ city_name }}, here is what a padel center in
[scenario:{{ scenario_slug }}:capex]
Construction costs vary significantly depending on whether you build an indoor or outdoor facility. Indoor halls in {{ country_name }} run considerably higher — structural build, ventilation, and lighting drive the cost. Outdoor courts are cheaper to construct but limit your operating season and revenue potential. The number of courts is the single biggest lever on total investment: each additional court lowers the per-court cost, but increases your total capital at risk.
Construction costs vary significantly depending on whether you build an indoor or outdoor facility. Indoor halls in {{ country_name_en }} run considerably higher — structural build, ventilation, and lighting drive the cost. Outdoor courts are cheaper to construct but limit your operating season and revenue potential. The number of courts is the single biggest lever on total investment: each additional court lowers the per-court cost, but increases your total capital at risk.
## Revenue Potential in {{ city_name }}
[scenario:{{ scenario_slug }}:operating]
Revenue depends on three factors: court rental pricing, occupancy rates, and ancillary income (coaching, retail, food & beverage). {% if median_peak_rate %}In {{ city_name }}, peak rates sit at {{ median_peak_rate | round(0) | int }} {{ price_currency }}/hr — {% if median_peak_rate >= 40 %}a strong price point that signals high local demand{% elif median_peak_rate >= 25 %}a standard rate for the {{ country_name }} market{% else %}a relatively low price point that may rise as local demand grows{% endif %}. {% endif %}Utilisation swings sharply by time of day and season — evenings and weekends tend to run at or near capacity, while weekday mornings and afternoons have idle courts.
Revenue depends on three factors: court rental pricing, occupancy rates, and ancillary income (coaching, retail, food & beverage). {% if median_peak_rate %}In {{ city_name }}, peak rates sit at {{ median_peak_rate | round(0) | int }} {{ price_currency }}/hr — {% if median_peak_rate >= 40 %}a strong price point that signals high local demand{% elif median_peak_rate >= 25 %}a standard rate for the {{ country_name_en }} market{% else %}a relatively low price point that may rise as local demand grows{% endif %}. {% endif %}Utilisation swings sharply by time of day and season — evenings and weekends tend to run at or near capacity, while weekday mornings and afternoons have idle courts.
## Financial Returns
@@ -193,7 +193,7 @@ The return metrics above show how quickly your investment pays back and what lon
## Market Context
{% if venues_per_100k >= 3.0 %}With {{ venues_per_100k | round(1) }} venues per 100K residents, {{ city_name }} has a relatively high padel density. This indicates a proven market with demonstrated demand — but also more competition for new entrants. Differentiation through location, facility quality, or pricing strategy becomes the key success factor.{% elif venues_per_100k >= 1.0 %}At {{ venues_per_100k | round(1) }} venues per 100K residents, {{ city_name }} has moderate padel coverage. There is proven demand, but room for new facilities — particularly in underserved areas of the city or with a differentiated offering.{% else %}{{ city_name }} has a low padel density of {{ venues_per_100k | round(1) }} venues per 100K residents. This means less competition and potential first-mover advantage — but also less validated demand data. The rapid growth of padel across {{ country_name }} suggests significant development potential.{% endif %}
{% if venues_per_100k >= 3.0 %}With {{ venues_per_100k | round(1) }} venues per 100K residents, {{ city_name }} has a relatively high padel density. This indicates a proven market with demonstrated demand — but also more competition for new entrants. Differentiation through location, facility quality, or pricing strategy becomes the key success factor.{% elif venues_per_100k >= 1.0 %}At {{ venues_per_100k | round(1) }} venues per 100K residents, {{ city_name }} has moderate padel coverage. There is proven demand, but room for new facilities — particularly in underserved areas of the city or with a differentiated offering.{% else %}{{ city_name }} has a low padel density of {{ venues_per_100k | round(1) }} venues per 100K residents. This means less competition and potential first-mover advantage — but also less validated demand data. The rapid growth of padel across {{ country_name_en }} suggests significant development potential.{% endif %}
Padel is growing rapidly across Europe — many markets are seeing venue counts double within a few years. The sport's relatively low barriers to entry (less space than tennis, faster learning curve for players) continue to drive expansion.
@@ -236,7 +236,7 @@ ROI depends on your build cost, court count, pricing, and occupancy assumptions.
<details>
<summary>How much does it cost to build a padel center in {{ city_name }}?</summary>
Total investment depends on venue type (indoor vs outdoor), land costs, and local construction standards in {{ country_name }}. The capex model above breaks down the key cost drivers for a typical {{ city_name }} build based on current market assumptions.
Total investment depends on venue type (indoor vs outdoor), land costs, and local construction standards in {{ country_name_en }}. The capex model above breaks down the key cost drivers for a typical {{ city_name }} build based on current market assumptions.
</details>
<details>
@@ -248,13 +248,13 @@ Total investment depends on venue type (indoor vs outdoor), land costs, and loca
<details>
<summary>What are typical padel court rental prices in {{ city_name }}?</summary>
{% if median_peak_rate %}Peak hour rates average around **{{ median_peak_rate | round(0) | int }} {{ price_currency }}/hr**, while off-peak rates are approximately **{{ median_offpeak_rate | round(0) | int }} {{ price_currency }}/hr**. These figures come from live Playtomic booking data.{% else %}Pricing data from Playtomic is not yet available for {{ city_name }}. The financial model uses {{ country_name }}-wide benchmarks as a proxy.{% endif %}
{% if median_peak_rate %}Peak hour rates average around **{{ median_peak_rate | round(0) | int }} {{ price_currency }}/hr**, while off-peak rates are approximately **{{ median_offpeak_rate | round(0) | int }} {{ price_currency }}/hr**. These figures come from live Playtomic booking data.{% else %}Pricing data from Playtomic is not yet available for {{ city_name }}. The financial model uses {{ country_name_en }}-wide benchmarks as a proxy.{% endif %}
</details>
<details>
<summary>How does {{ city_name }} compare to other {{ country_name }} cities?</summary>
<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> Score of {{ opportunity_score | round(1) }}/100 reflects its investment potential among tracked {{ country_name }} cities. See the [{{ country_name }} 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>
<div style="background:#EFF6FF;border:1px solid #BFDBFE;border-radius:12px;padding:1rem 1.25rem;margin:1.5rem 0;">
@@ -264,5 +264,5 @@ Total investment depends on venue type (indoor vs outdoor), land costs, and loca
---
*More {{ country_name }} padel markets: [{{ country_name }} overview](/{{ language }}/markets/{{ country_slug }})*
*More {{ country_name_en }} padel markets: [{{ country_name_en }} overview](/{{ language }}/markets/{{ country_slug }})*
{% endif %}

View File

@@ -55,11 +55,11 @@ 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 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 }}. {% 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 %}
{{ 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 %}
In der [Marktübersicht {{ country_name }}](/{{ language }}/markets/{{ country_slug }}) kannst Du {{ city_name }} mit anderen Städten vergleichen. Du planst ein Investment? Die vollständige [Investitionsanalyse für {{ city_name }}](/{{ language }}/markets/{{ country_slug }}/{{ city_slug }}) enthält ein detailliertes Finanzmodell.
In der [Marktübersicht {{ country_name_en }}](/{{ language }}/markets/{{ country_slug }}) kannst Du {{ city_name }} mit anderen Städten vergleichen. Du planst ein Investment? Die vollständige [Investitionsanalyse für {{ city_name }}](/{{ language }}/markets/{{ country_slug }}/{{ city_slug }}) enthält ein detailliertes Finanzmodell.
## Was bestimmt die Padel-Preise?
@@ -105,9 +105,9 @@ In Nebenzeiten — typischerweise vormittags und am frühen Nachmittag unter der
</details>
<details>
<summary>Wie schneidet {{ city_name }} preislich im Vergleich zu anderen Städten in {{ country_name }} ab?</summary>
<summary>Wie schneidet {{ city_name }} preislich im Vergleich zu anderen Städten in {{ country_name_en }} ab?</summary>
Die Preise in {{ city_name }} liegen {% if median_peak_rate >= 40 %}im oberen Bereich{% elif median_peak_rate >= 25 %}im Mittelfeld{% else %}unter dem Durchschnitt{% endif %} für {{ country_name }}. In der [Marktübersicht {{ country_name }}](/{{ language }}/markets/{{ country_slug }}) findest Du den Vergleich aller Städte.
Die Preise in {{ city_name }} liegen {% if median_peak_rate >= 40 %}im oberen Bereich{% elif median_peak_rate >= 25 %}im Mittelfeld{% else %}unter dem Durchschnitt{% endif %} für {{ country_name_en }}. In der [Marktübersicht {{ country_name_en }}](/{{ language }}/markets/{{ country_slug }}) findest Du den Vergleich aller Städte.
</details>
<details>
@@ -123,7 +123,7 @@ Die aktuellen Daten sind eine Momentaufnahme auf Basis von Playtomic-Livedaten.
---
*Siehe auch: [{{ city_name }} Investitionsanalyse](/{{ language }}/markets/{{ country_slug }}/{{ city_slug }}) · [Marktübersicht {{ country_name }}](/{{ language }}/markets/{{ country_slug }})*
*Siehe auch: [{{ city_name }} Investitionsanalyse](/{{ language }}/markets/{{ country_slug }}/{{ city_slug }}) · [Marktübersicht {{ country_name_en }}](/{{ language }}/markets/{{ country_slug }})*
{% else %}
# Padel Court Prices in {{ city_name }}
@@ -168,11 +168,11 @@ The P25P75 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 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 }}. {% 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 %}
{{ 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 %}
See the [{{ country_name }} market overview](/{{ language }}/markets/{{ country_slug }}) to compare {{ city_name }} against other cities. Thinking about investing? The full [{{ city_name }} investment analysis](/{{ language }}/markets/{{ country_slug }}/{{ city_slug }}) includes a detailed financial model.
See the [{{ country_name_en }} market overview](/{{ language }}/markets/{{ country_slug }}) to compare {{ city_name }} against other cities. Thinking about investing? The full [{{ city_name }} investment analysis](/{{ language }}/markets/{{ country_slug }}/{{ city_slug }}) includes a detailed financial model.
## What Drives Padel Pricing?
@@ -218,9 +218,9 @@ Off-peak slots — typically weekday mornings and early afternoons — are price
</details>
<details>
<summary>How does padel pricing in {{ city_name }} compare to other {{ country_name }} cities?</summary>
<summary>How does padel pricing in {{ city_name }} compare to other {{ country_name_en }} cities?</summary>
{{ city_name }}'s pricing sits {% if median_peak_rate >= 40 %}at the higher end{% elif median_peak_rate >= 25 %}in the mid-range{% else %}below average{% endif %} for {{ country_name }}. See the [{{ country_name }} market overview](/{{ language }}/markets/{{ country_slug }}) for a full city-by-city comparison.
{{ city_name }}'s pricing sits {% if median_peak_rate >= 40 %}at the higher end{% elif median_peak_rate >= 25 %}in the mid-range{% else %}below average{% endif %} for {{ country_name_en }}. See the [{{ country_name_en }} market overview](/{{ language }}/markets/{{ country_slug }}) for a full city-by-city comparison.
</details>
<details>
@@ -236,5 +236,5 @@ The current data is a snapshot based on live Playtomic booking data. In general,
---
*See also: [{{ city_name }} investment analysis](/{{ language }}/markets/{{ country_slug }}/{{ city_slug }}) · [{{ country_name }} market overview](/{{ language }}/markets/{{ country_slug }})*
*See also: [{{ city_name }} investment analysis](/{{ language }}/markets/{{ country_slug }}/{{ city_slug }}) · [{{ country_name_en }} market overview](/{{ language }}/markets/{{ country_slug }})*
{% endif %}

View File

@@ -6,14 +6,14 @@ data_table: serving.pseo_country_overview
natural_key: country_slug
languages: [en, de]
url_pattern: "/markets/{{ country_slug }}"
title_pattern: "{% if language == 'de' %}Padel in {{ country_name }} — Marktüberblick {{ 'now' | datetimeformat('%Y') }}{% else %}Padel in {{ country_name }} — Market Overview {{ 'now' | datetimeformat('%Y') }}{% endif %}"
meta_description_pattern: "{% if language == 'de' %}{{ total_venues }} Padelanlagen in {{ city_count }} Städten in {{ country_name }}. Padelnomics Score, Preisdaten und Investmentanalysen für jede Stadt.{% else %}{{ total_venues }} padel venues across {{ city_count }} cities in {{ country_name }}. Padelnomics Score, pricing data, and investment analysis for each city.{% endif %}"
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 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
---
{% if language == "de" %}
# Padel in {{ country_name }} — Marktüberblick
# Padel in {{ country_name_en }} — Marktüberblick
<div class="stats-strip">
<div class="stats-strip__item">
@@ -36,15 +36,15 @@ 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 }} 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 %}.
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 }} 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.
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_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 }} sind bereits gut versorgt. Neue Projekte brauchen eine sorgfältige Standortanalyse und ein klares Differenzierungsprofil.{% 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 }}
## 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> 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.
@@ -58,7 +58,7 @@ Jede Stadtseite enthält detaillierte Preisdaten, eine Kosten-Nutzen-Analyse und
## Preisüberblick
{% if median_peak_rate %}
Die Mietpreise für Padel-Courts in {{ country_name }} basieren auf Live-Daten von Playtomic:
Die Mietpreise für Padel-Courts in {{ country_name_en }} basieren auf Live-Daten von Playtomic:
| Zeitfenster | Median |
|------------|--------|
@@ -70,57 +70,57 @@ Die Mietpreise für Padel-Courts in {{ country_name }} basieren auf Live-Daten v
Die Preise variieren erheblich zwischen Städten — Großstädte mit hoher Nachfrage erzielen Premiumpreise. Auf den einzelnen Stadtseiten findest Du stadtspezifische Benchmarks.
{% else %}
Detaillierte Preisdaten von Playtomic liegen für {{ country_name }} noch nicht aggregiert vor. Auf den Stadtseiten findest Du lokale Daten, sofern verfügbar.
Detaillierte Preisdaten von Playtomic liegen für {{ country_name_en }} noch nicht aggregiert vor. Auf den Stadtseiten findest Du lokale Daten, sofern verfügbar.
{% endif %}
## Businessplan für {{ country_name }} erstellen
## Businessplan für {{ country_name_en }} erstellen
Jede Stadt hat andere Kostenstrukturen, Wettbewerbsbedingungen und Zielgruppen. Der Padelnomics-Finanzplaner modelliert eine Padelhalle mit realen lokalen Marktdaten als Ausgangswerte — jede Annahme lässt sich an Dein konkretes Vorhaben anpassen.
<div style="background:#EFF6FF;border:1px solid #BFDBFE;border-radius:12px;padding:1rem 1.25rem;margin:1.5rem 0;">
Businessplan für eine Padelhalle in {{ country_name }} erstellen →
Businessplan für eine Padelhalle in {{ country_name_en }} erstellen →
<a href="/{{ language }}/planner" style="font-weight:600;color:#1D4ED8;margin-left:0.25rem;">Zum Finanzplaner</a>
</div>
## FAQ
<details>
<summary>Wie viele Padel-Courts gibt es in {{ country_name }}?</summary>
<summary>Wie viele Padel-Courts gibt es in {{ country_name_en }}?</summary>
Wir erfassen aktuell **{{ total_venues }} Padelanlagen** in **{{ city_count }} Städten** in {{ country_name }}. Unsere Daten stammen von Playtomic und aus Overpass/OpenStreetMap. Die tatsächliche Zahl liegt vermutlich höher, da unabhängige Clubs ohne Buchungsplattform nicht immer erfasst werden.
Wir erfassen aktuell **{{ total_venues }} Padelanlagen** in **{{ city_count }} Städten** in {{ country_name_en }}. Unsere Daten stammen von Playtomic und aus Overpass/OpenStreetMap. Die tatsächliche Zahl liegt vermutlich höher, da unabhängige Clubs ohne Buchungsplattform nicht immer erfasst werden.
</details>
<details>
<summary>Welche Stadt in {{ country_name }} eignet sich am besten für eine Padelhalle?</summary>
<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> 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>
<summary>Was kostet eine Stunde Padel in {{ country_name }}?</summary>
<summary>Was kostet eine Stunde Padel in {{ country_name_en }}?</summary>
{% if median_peak_rate %}Laut Live-Daten von Playtomic liegt der Median-Hauptzeitpreis in {{ country_name }} bei **{{ median_peak_rate | int }} {{ price_currency }}/Std**, Nebenzeit bei **{% if median_offpeak_rate %}{{ median_offpeak_rate | int }}{% else %}—{% endif %} {{ price_currency }}/Std**. Die Preise variieren stark zwischen Städten — auf den jeweiligen Stadtseiten findest Du lokale Benchmarks.{% else %}Aggregierte Preisdaten sind für {{ country_name }} noch nicht verfügbar. Prüfe die einzelnen Stadtseiten für lokale Daten.{% endif %}
{% if median_peak_rate %}Laut Live-Daten von Playtomic liegt der Median-Hauptzeitpreis in {{ country_name_en }} bei **{{ median_peak_rate | int }} {{ price_currency }}/Std**, Nebenzeit bei **{% if median_offpeak_rate %}{{ median_offpeak_rate | int }}{% else %}—{% endif %} {{ price_currency }}/Std**. Die Preise variieren stark zwischen Städten — auf den jeweiligen Stadtseiten findest Du lokale Benchmarks.{% else %}Aggregierte Preisdaten sind für {{ country_name_en }} noch nicht verfügbar. Prüfe die einzelnen Stadtseiten für lokale Daten.{% endif %}
</details>
<details>
<summary>Wie schnell wächst Padel in {{ country_name }}?</summary>
<summary>Wie schnell wächst Padel in {{ country_name_en }}?</summary>
Padel gehört zu den am schnellsten wachsenden Rückschlagsportarten in Europa. Mit {{ total_venues }} erfassten Anlagen in {{ city_count }} Städten zeigt {{ country_name }} {% 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.
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> 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 }}-Marktüberblick</a> findest Du alle Städte nach 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>
<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 }} zu eröffnen? Rechne Dein Vorhaben mit echten Marktdaten durch →
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>
</div>
{% else %}
# Padel in {{ country_name }} — Market Overview
# Padel in {{ country_name_en }} — Market Overview
<div class="stats-strip">
<div class="stats-strip__item">
@@ -143,15 +143,15 @@ Städte mit höherem <span style="font-family:'Bricolage Grotesque',sans-serif;f
<div id="country-map" data-country-slug="{{ country_slug }}" style="height:360px; border-radius:12px; margin-bottom:1.5rem;"></div>
{{ country_name }} 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 %}.
{{ 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 }}. 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.
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_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 }} are already well-served. New projects need careful site selection and a clear differentiation strategy to compete.{% 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 }}
## 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> 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.
@@ -165,7 +165,7 @@ Each city page includes detailed pricing data, a cost-benefit analysis, and a pr
## Pricing Overview
{% if median_peak_rate %}
Court rental rates across {{ country_name }} cities (median from Playtomic live data):
Court rental rates across {{ country_name_en }} cities (median from Playtomic live data):
| Rate Type | Median |
|-----------|--------|
@@ -177,52 +177,52 @@ Court rental rates across {{ country_name }} cities (median from Playtomic live
Prices vary significantly by city — larger cities with higher demand command premium rates. See individual city pages for city-specific benchmarks.
{% else %}
Detailed pricing data from Playtomic is not yet available for {{ country_name }} cities in aggregate. Visit individual city pages for the latest data where available.
Detailed pricing data from Playtomic is not yet available for {{ country_name_en }} cities in aggregate. Visit individual city pages for the latest data where available.
{% endif %}
## Build Your Business Plan for {{ country_name }}
## Build Your Business Plan for {{ country_name_en }}
Every city has a different cost structure, competitive landscape, and customer base. The Padelnomics financial planner lets you model a padel center with real local market data as defaults — then adjust every assumption to match your specific site. From construction costs and court count to revenue projections and payback period, get a data-driven view of your investment before committing capital.
<div style="background:#EFF6FF;border:1px solid #BFDBFE;border-radius:12px;padding:1rem 1.25rem;margin:1.5rem 0;">
Build your business plan for a {{ country_name }} padel center →
Build your business plan for a {{ country_name_en }} padel center →
<a href="/{{ language }}/planner" style="font-weight:600;color:#1D4ED8;margin-left:0.25rem;">Open the Planner</a>
</div>
## FAQ
<details>
<summary>How many padel courts are there in {{ country_name }}?</summary>
<summary>How many padel courts are there in {{ country_name_en }}?</summary>
We currently track **{{ total_venues }} padel venues** across **{{ city_count }} cities** in {{ country_name }}. This covers venues listed on Playtomic and venues identified through our Overpass/OpenStreetMap data source. The actual total may be higher as independent clubs not listed on booking platforms are not always captured.
We currently track **{{ total_venues }} padel venues** across **{{ city_count }} cities** in {{ country_name_en }}. This covers venues listed on Playtomic and venues identified through our Overpass/OpenStreetMap data source. The actual total may be higher as independent clubs not listed on booking platforms are not always captured.
</details>
<details>
<summary>Which city in {{ country_name }} is best for a padel center?</summary>
<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> 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>
<summary>What are typical padel court prices in {{ country_name }}?</summary>
<summary>What are typical padel court prices in {{ country_name_en }}?</summary>
{% if median_peak_rate %}Based on live Playtomic data, median peak rates across {{ country_name }} cities are **{{ median_peak_rate | int }} {{ price_currency }}/hr** and off-peak rates are around **{% if median_offpeak_rate %}{{ median_offpeak_rate | int }}{% else %}—{% endif %} {{ price_currency }}/hr**. Individual cities vary — see each city's page for local benchmarks.{% else %}Pricing data is not yet available in aggregate for {{ country_name }}. Check individual city pages where Playtomic data is available.{% endif %}
{% if median_peak_rate %}Based on live Playtomic data, median peak rates across {{ country_name_en }} cities are **{{ median_peak_rate | int }} {{ price_currency }}/hr** and off-peak rates are around **{% if median_offpeak_rate %}{{ median_offpeak_rate | int }}{% else %}—{% endif %} {{ price_currency }}/hr**. Individual cities vary — see each city's page for local benchmarks.{% else %}Pricing data is not yet available in aggregate for {{ country_name_en }}. Check individual city pages where Playtomic data is available.{% endif %}
</details>
<details>
<summary>How fast is padel growing in {{ country_name }}?</summary>
<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 }} 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.
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> 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 }} market overview</a> to see all cities ranked by 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>
<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 }}? Model your investment with real market data →
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>
</div>

View File

@@ -21,9 +21,11 @@
<!-- 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>60
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#D97706;margin-left:4px;"></span>30
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#DC2626;margin-left:4px;"></span>&lt;30
<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>&lt;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>
@@ -103,7 +105,7 @@ window.__MAP_T = {score_label:"{{ t.map_score_label }}",venues:"{{ t.map_venues
var size = 12 + 44 * Math.sqrt(c.total_venues / maxV);
var score = c.avg_opportunity_score || 0;
var hex = sc(score);
var tip = '<strong>' + c.country_name + '</strong><br>'
var tip = '<strong>' + c.country_name_en + '</strong><br>'
+ '<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>';

View File

@@ -1704,48 +1704,50 @@
"email_footer_copyright": "© {year} {app_name}. Du erhältst diese E-Mail, weil du ein Konto hast oder eine Anfrage gestellt hast.",
"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 bis 100.",
"pnscore_og_desc": "Ein Score, der zeigt, wo sich eine Padelhalle lohnt. Methodik und Bewertungsfaktoren erklärt.",
"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 gewichteter 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_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": "Mehrere Faktoren fließen in den Gesamtscore ein. Jeder erfasst einen anderen Aspekt des Investitionspotenzials.",
"pnscore_cat_market_h3": "Marktgröße",
"pnscore_cat_market_p": "Die Bevölkerung im definierten Einzugsgebiet eines Standorts. Ein größeres Einzugsgebiet bedeutet mehr potenzielle Spieler und einen größeren adressierbaren Markt für eine neue Anlage.",
"pnscore_cat_econ_h3": "Wirtschaftskraft",
"pnscore_cat_econ_p": "Regionales Einkommen, kaufkraftbereinigt. Höheres verfügbares Einkommen stützt Premium-Preise und häufigeres Spielen.",
"pnscore_cat_gap_h3": "Versorgungslücke",
"pnscore_cat_gap_p": "Der am stärksten gewichtete Faktor. Misst zwei Signale: Wie weit liegt die Court-Dichte unter dem landesweiten Richtwert, und wie weit ist es zum nächsten bestehenden Court? Der Wert wird durch die Marktetablierung gedämpft — eine Versorgungslücke in einem Land ohne nachgewiesene Padel-Nachfrage zählt weniger als in einem etablierten Markt.",
"pnscore_cat_sports_h3": "Sportaffinität",
"pnscore_cat_sports_p": "Tennisplatz-Dichte in der Umgebung als Indikator für die Affinität zu Rückschlagsportarten. 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",
"pnscore_cat_catchment_p": "Einkommen im Verhältnis zu den regionalen Baukosten. Höhere Erschwinglichkeit bedeutet bessere Margen beim Bau — das Umsatzpotenzial wird nicht von den Baukosten aufgefressen.",
"pnscore_cat_maturity_h3": "Markt-Spielraum",
"pnscore_cat_maturity_p": "Länder mit bereits gesättigten Märkten (z.B. Spanien) erhalten hier weniger Punkte — der nationale Markt ist wettbewerbsintensiv. Je weniger reif der Markt, desto höher der Spielraum für Neueinsteiger.",
"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": "60+ — Hoch",
"pnscore_band_high_p": "Starkes Investitionspotenzial. Erhebliche Versorgungslücken, starkes Einzugsgebiet und günstige Marktbedingungen. Diese Standorte sind erste Wahl für neue Anlagen.",
"pnscore_band_mid_label": "30-59 — Moderat",
"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": "<30 — Niedrig",
"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": "Unsere Daten",
"pnscore_sources_p": "Der Score basiert auf mehreren offenen und proprietären Datenquellen zu Anlagenstandorten, Bevölkerung, Einkommen und Sportinfrastruktur. Alle Daten werden regelmäßig aktualisiert und über unsere Analysepipeline verarbeitet.",
"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 (detaillierte Einkommensstatistiken, dichte Anlagenverzeichnisse). Aufstrebende Märkte haben teils weniger granulare Einkommensdaten, was die Bewertung von Wirtschaftskraft und Erschwinglichkeit beeinflusst.",
"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 gewichteter Index von 0 bis 100, der bewertet, wie attraktiv ein Standort für den Bau einer neuen Padelanlage ist. Er fasst Versorgungslücken, Einzugsgebiet, Wirtschaftskraft, Sportaffinität, Baukosten-Erschwinglichkeit und Markt-Spielraum in einer einzigen Kennzahl zusammen.",
"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 regelmäßig neu berechnet, sobald aktuelle Daten vorliegen. Die verschiedenen Datenquellen werden in unterschiedlichen Intervallen 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 — der am stärksten gewichtete Faktor. Gut versorgte Städte können dennoch moderat punkten, wenn andere Faktoren wie Einzugsgebiet oder Wirtschaftskraft stark sind.",
"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 berücksichtigt die landesweite Marktreife. Länder mit dominantem Padel-Markt (z.B. Spanien) bieten weniger Spielraum als aufstrebende Märkte.",
"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",

View File

@@ -1736,47 +1736,49 @@
"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 and components explained.",
"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 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_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": "Several factors combine into the final score. Each captures a different aspect of investment potential.",
"pnscore_cat_market_h3": "Catchment Population",
"pnscore_cat_market_p": "The population reachable from the location within a defined catchment radius. A larger catchment means more potential players and a bigger addressable market for a new facility.",
"pnscore_cat_econ_h3": "Economic Power",
"pnscore_cat_econ_p": "Regional income adjusted for purchasing power. Higher disposable income supports premium pricing and more frequent play.",
"pnscore_cat_gap_h3": "Supply Deficit",
"pnscore_cat_gap_p": "The most heavily weighted factor. Measures two signals: how far court density falls below the national benchmark, and how far the nearest existing court is. Dampened by market existence — a supply gap in a country with no proven padel demand carries less weight than one in an established market.",
"pnscore_cat_sports_h3": "Sports Culture",
"pnscore_cat_sports_p": "Nearby tennis court density as an indicator of 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",
"pnscore_cat_catchment_p": "Income relative to regional construction costs. Higher affordability means better margins on the build — your revenue potential isnt eaten by construction costs.",
"pnscore_cat_maturity_h3": "Market Headroom",
"pnscore_cat_maturity_p": "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_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 isnt eaten by construction costs.",
"pnscore_cat_maturity_h3": "Market Headroom (10 pts)",
"pnscore_cat_maturity_p": "Inverse of the countrys 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": "60+ — High",
"pnscore_band_high_p": "Strong investment potential. Significant supply gaps, strong catchment, and favorable market conditions. These locations are prime targets for new facilities.",
"pnscore_band_mid_label": "30-59 — Moderate",
"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": "<30 — Low",
"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": "Our Data",
"pnscore_sources_p": "The score combines multiple open and proprietary data sources covering venue locations, population, income, and sports infrastructure. All data is refreshed on a regular schedule and processed through our analytics pipeline.",
"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 (detailed income statistics, dense venue listings). Emerging markets may have less granular income data, which affects the economic power and affordability components.",
"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 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_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 regularly as new data flows through our pipeline. Different data sources are refreshed at different intervals to keep the score current.",
"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 most heavily weighted factor. Well-served cities can still score moderately if other factors (catchment, economics) are strong.",
"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 weighs country-level maturity. Countries where padel is already dominant (like Spain) provide less headroom than emerging markets.",
"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.",

View File

@@ -1,93 +0,0 @@
"""Drop UNIQUE constraint from articles.slug column.
The single-column UNIQUE on slug conflicts with the ON CONFLICT(url_path, language)
upsert in pSEO generation, causing 'UNIQUE constraint failed: articles.slug' errors
when re-running generation for the same template.
The slug is already unique by construction ({template_slug}-{lang}-{natural_key}),
and the real uniqueness key is (url_path, language). The idx_articles_slug index
is kept for fast lookups.
"""
def up(conn) -> None:
# ── 1. Drop FTS triggers + virtual table ──────────────────────────────────
conn.execute("DROP TRIGGER IF EXISTS articles_ai")
conn.execute("DROP TRIGGER IF EXISTS articles_ad")
conn.execute("DROP TRIGGER IF EXISTS articles_au")
conn.execute("DROP TABLE IF EXISTS articles_fts")
# ── 2. Recreate articles without UNIQUE on slug ───────────────────────────
conn.execute("""
CREATE TABLE articles_new (
id INTEGER PRIMARY KEY AUTOINCREMENT,
url_path TEXT NOT NULL,
slug TEXT NOT NULL,
title TEXT NOT NULL,
meta_description TEXT,
country TEXT,
region TEXT,
og_image_url TEXT,
status TEXT NOT NULL DEFAULT 'draft',
published_at TEXT,
template_slug TEXT,
language TEXT NOT NULL DEFAULT 'en',
date_modified TEXT,
seo_head TEXT,
created_at TEXT NOT NULL DEFAULT (datetime('now')),
updated_at TEXT,
group_key TEXT DEFAULT NULL,
noindex INTEGER NOT NULL DEFAULT 0,
article_type TEXT NOT NULL DEFAULT 'editorial',
UNIQUE(url_path, language)
)
""")
conn.execute("""
INSERT INTO articles_new
(id, url_path, slug, title, meta_description, country, region,
og_image_url, status, published_at, template_slug, language,
date_modified, seo_head, created_at, updated_at, group_key,
noindex, article_type)
SELECT id, url_path, slug, title, meta_description, country, region,
og_image_url, status, published_at, template_slug, language,
date_modified, seo_head, created_at, updated_at, group_key,
noindex, article_type
FROM articles
""")
conn.execute("DROP TABLE articles")
conn.execute("ALTER TABLE articles_new RENAME TO articles")
# ── 3. Recreate indexes ───────────────────────────────────────────────────
conn.execute("CREATE INDEX IF NOT EXISTS idx_articles_url_path ON articles(url_path)")
conn.execute("CREATE INDEX IF NOT EXISTS idx_articles_url_lang ON articles(url_path, language)")
conn.execute("CREATE INDEX IF NOT EXISTS idx_articles_slug ON articles(slug)")
conn.execute("CREATE INDEX IF NOT EXISTS idx_articles_status ON articles(status, published_at)")
conn.execute("CREATE INDEX IF NOT EXISTS idx_articles_article_type ON articles(article_type)")
# ── 4. Recreate FTS + triggers ────────────────────────────────────────────
conn.execute("""
CREATE VIRTUAL TABLE IF NOT EXISTS articles_fts USING fts5(
title, meta_description, country, region,
content='articles', content_rowid='id'
)
""")
conn.execute("""
CREATE TRIGGER IF NOT EXISTS articles_ai AFTER INSERT ON articles BEGIN
INSERT INTO articles_fts(rowid, title, meta_description, country, region)
VALUES (new.id, new.title, new.meta_description, new.country, new.region);
END
""")
conn.execute("""
CREATE TRIGGER IF NOT EXISTS articles_ad AFTER DELETE ON articles BEGIN
INSERT INTO articles_fts(articles_fts, rowid, title, meta_description, country, region)
VALUES ('delete', old.id, old.title, old.meta_description, old.country, old.region);
END
""")
conn.execute("""
CREATE TRIGGER IF NOT EXISTS articles_au AFTER UPDATE ON articles BEGIN
INSERT INTO articles_fts(articles_fts, rowid, title, meta_description, country, region)
VALUES ('delete', old.id, old.title, old.meta_description, old.country, old.region);
INSERT INTO articles_fts(rowid, title, meta_description, country, region)
VALUES (new.id, new.title, new.meta_description, new.country, new.region);
END
""")

View File

@@ -7,7 +7,7 @@ from quart import Blueprint, abort, g, redirect, render_template, request, sessi
from ..analytics import fetch_analytics
from ..core import check_rate_limit, count_where, csrf_protect, execute, fetch_all, fetch_one
from ..i18n import get_country_name, get_translations
from ..i18n import get_translations
bp = Blueprint(
"public",
@@ -89,9 +89,6 @@ async def opportunity_map():
WHERE city_slug IS NOT NULL
ORDER BY country_name_en
""")
lang = g.get("lang", "en")
for row in countries:
row["country_name"] = get_country_name(row["country_name_en"], lang)
user_cc = g.get("user_country", "")
selected_slug = ""
if user_cc:
@@ -101,7 +98,7 @@ async def opportunity_map():
break
countries = sorted(
countries,
key=lambda c: (0 if c["country_code"] == user_cc else 1, c["country_name"]),
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)

View File

@@ -30,7 +30,7 @@
hx-trigger="change">
<option value="">— choose country —</option>
{% for c in countries %}
<option value="{{ c.country_slug }}" {% if c.country_slug == selected_slug %}selected{% endif %}>{{ c.country_name }}</option>
<option value="{{ c.country_slug }}" {% if c.country_slug == selected_slug %}selected{% endif %}>{{ c.country_name_en }}</option>
{% endfor %}
</select>
</div>
@@ -40,9 +40,11 @@
<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>60
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#D97706;margin-left:4px;"></span>30
<span style="display:inline-block;width:10px;height:10px;border-radius:50%;background:#DC2626;margin-left:4px;"></span>&lt;30
<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>&lt;20
</span>
<span><strong>Size:</strong> population</span>
</div>
@@ -114,7 +116,7 @@ window.__MAP_T = {score_label:"{{ t.map_score_label }}",venues:"{{ t.map_venues
var icon = PNMarkers.makeIcon({
size: size,
color: hex,
pulse: score >= 60,
pulse: score >= 75,
});
L.marker([loc.lat, loc.lon], { icon: icon })
.bindTooltip(tip, { className: 'map-tooltip', direction: 'top', offset: [0, -Math.round(size / 2)] })