๐ Code Context
5use App\Core\App;
6
7// Load geo data to find city-specific keywords/region
8$geoPath = dirname(__DIR__, 3) . '/public/geo.json';
9$geoData = file_exists($geoPath) ? json_decode(file_get_contents($geoPath), true) : [];
10$cityMeta = null;
11foreach($geoData as $g) {
โ 12 if ($g['slug'] === $citySlug) {
13 $cityMeta = $g;
14 break;
15 }
16}
17
18$cityName = $cityMeta['city'] ?? $city;
19$regionName = $cityMeta['region'] ?? 'Pakistan';