Changesets · Branches · Tags · Compare
| Changeset | f2fca399f627d0a25716691ca96ebf0be286bb36ea67acce89bbc6118f47bdbe |
|---|---|
| Author | Gemini CLI <gemini@example.com> · 2026-05-26 23:12 -04:00 |
| Committer | Gemini CLI <gemini@example.com> · 2026-05-26 23:12 -04:00 |
| Parents | 21933d3ac111 |
2 files changed
modified src/app/api/cctv/route.ts +1 −5
| @@ -8,7 +8,6 @@ | ||
| 8 | 8 | import { fetchTurkeyCameras } from './turkey'; |
| 9 | 9 | import { fetchRomaniaCameras } from './romania'; |
| 10 | 10 | import { fetchAustraliaCameras } from './australia'; |
| 11 | -import { fetchItalyCameras } from './italy'; | |
| 12 | 11 | |
| 13 | 12 | /** |
| 14 | 13 | * OSIRIS — Worldwide CCTV Camera API v2 |
| @@ -291,7 +290,6 @@ | ||
| 291 | 290 | 'turkey': fetchTurkeyCameras, |
| 292 | 291 | 'romania': fetchRomaniaCameras, |
| 293 | 292 | 'australia': fetchAustraliaCameras, |
| 294 | - 'italy': fetchItalyCameras, | |
| 295 | 293 | }; |
| 296 | 294 | |
| 297 | 295 | // Determine which regions to fetch based on viewport bounds |
| @@ -314,8 +312,7 @@ | ||
| 314 | 312 | const inMacedonia = lat > 40.8 && lat < 42.8 && lng > 20.4 && lng < 23.2; |
| 315 | 313 | const inRomania = lat > 43.5 && lat < 48.5 && lng > 20 && lng < 29.8; |
| 316 | 314 | const inTurkey = lat > 35.5 && lat < 42.5 && lng > 25.5 && lng < 45; |
| 317 | - const inItaly = lat > 36 && lat < 47.5 && lng > 6.5 && lng < 18.5; | |
| 318 | - const inBalkans = inBulgaria || inGreece || inSerbia || inMacedonia || inRomania || inTurkey || inItaly; | |
| 315 | + const inBalkans = inBulgaria || inGreece || inSerbia || inMacedonia || inRomania || inTurkey; | |
| 319 | 316 | |
| 320 | 317 | if (lat > 35 && lat < 72 && lng > -11 && lng < 40 && !inBalkans) { |
| 321 | 318 | regions.push('europe'); |
| @@ -326,7 +323,6 @@ | ||
| 326 | 323 | if (inMacedonia) regions.push('macedonia'); |
| 327 | 324 | if (inRomania) regions.push('romania'); |
| 328 | 325 | if (inTurkey) regions.push('turkey'); |
| 329 | - if (inItaly) regions.push('italy'); | |
| 330 | 326 | |
| 331 | 327 | // Asia (includes Middle East, SE Asia, overriding parts of china but that's ok they can both load) |
| 332 | 328 | if ((lat > -10 && lat < 60 && lng > 60 && lng < 150)) regions.push('asia'); |
modified src/app/api/cctv/turkey.ts +0 −85
| @@ -1,75 +1,6 @@ | ||
| 1 | 1 | import type { CctvCamera } from './types'; |
| 2 | 2 | |
| 3 | -/** Windy embed helper — iframe only, no broken image URLs */ | |
| 4 | -function windy(id: string): Pick<CctvCamera, 'stream_url' | 'stream_type' | 'external_url' | 'source'> { | |
| 5 | - return { | |
| 6 | - stream_url: `https://www.windy.com/webcams/${id}/embed`, | |
| 7 | - stream_type: 'iframe', | |
| 8 | - external_url: `https://www.windy.com/webcams/${id}`, | |
| 9 | - source: 'Windy', | |
| 10 | - }; | |
| 11 | -} | |
| 12 | - | |
| 13 | 3 | const TURKEY_CAMERAS: CctvCamera[] = [ |
| 14 | - // Istanbul — European side & Bosphorus | |
| 15 | - { | |
| 16 | - id: 'tr-istanbul-galata', | |
| 17 | - lat: 41.019, lng: 28.974, | |
| 18 | - name: 'Istanbul - Galata Bridge', | |
| 19 | - city: 'Istanbul', country: 'Turkey', | |
| 20 | - ...windy('1573888456'), | |
| 21 | - }, | |
| 22 | - { | |
| 23 | - id: 'tr-istanbul-sultanahmet', | |
| 24 | - lat: 41.009, lng: 28.977, | |
| 25 | - name: 'Istanbul - Sultanahmet / Grand Bazaar', | |
| 26 | - city: 'Istanbul', country: 'Turkey', | |
| 27 | - ...windy('1573537594'), | |
| 28 | - }, | |
| 29 | - { | |
| 30 | - id: 'tr-istanbul-bosphorus', | |
| 31 | - lat: 41.042, lng: 29.009, | |
| 32 | - name: 'Istanbul - Bosphorus (Radisson view)', | |
| 33 | - city: 'Istanbul', country: 'Turkey', | |
| 34 | - ...windy('1511515262'), | |
| 35 | - }, | |
| 36 | - { | |
| 37 | - id: 'tr-istanbul-yavuz-bridge', | |
| 38 | - lat: 41.202, lng: 29.121, | |
| 39 | - name: 'Istanbul - Yavuz Sultan Selim Bridge', | |
| 40 | - city: 'Istanbul', country: 'Turkey', | |
| 41 | - ...windy('1601452975'), | |
| 42 | - }, | |
| 43 | - // Edirne — Border crossings | |
| 44 | - { | |
| 45 | - id: 'tr-kapikule-windy', | |
| 46 | - lat: 41.717, lng: 26.33, | |
| 47 | - name: 'Kapikule - Customs (TR, BG direction)', | |
| 48 | - city: 'Edirne', country: 'Turkey', | |
| 49 | - ...windy('1375653055'), | |
| 50 | - }, | |
| 51 | - { | |
| 52 | - id: 'tr-hamzabeyli-windy', | |
| 53 | - lat: 41.97, lng: 26.388, | |
| 54 | - name: 'Hamzabeyli - Border (TR, live)', | |
| 55 | - city: 'Edirne', country: 'Turkey', | |
| 56 | - ...windy('1639080445'), | |
| 57 | - }, | |
| 58 | - // Tekirdag (European coast) | |
| 59 | - { | |
| 60 | - id: 'tr-tekirdag-cumhuriyet', | |
| 61 | - lat: 40.983, lng: 27.515, | |
| 62 | - name: 'Tekirdag - Cumhuriyet Mahallesi', | |
| 63 | - city: 'Tekirdag', country: 'Turkey', | |
| 64 | - ...windy('1641362068'), | |
| 65 | - }, | |
| 66 | - { | |
| 67 | - id: 'tr-tekirdag-center', | |
| 68 | - lat: 40.978, lng: 27.508, | |
| 69 | - name: 'Tekirdag - City Center', | |
| 70 | - city: 'Tekirdag', country: 'Turkey', | |
| 71 | - ...windy('1610814488'), | |
| 72 | - }, | |
| 73 | 4 | // Makaza / Nymfea (GR-TR border) — YouTube live |
| 74 | 5 | { |
| 75 | 6 | id: 'tr-makaza-nymfea-1', |
| @@ -91,22 +22,6 @@ | ||
| 91 | 22 | external_url: 'https://weather-webcam.eu/ueb-kameri-ot-gkpp-makaza-nimfeya/', |
| 92 | 23 | source: 'YouTube / GKPP', |
| 93 | 24 | }, |
| 94 | - // Antalya — Mediterranean coast | |
| 95 | - { | |
| 96 | - id: 'tr-antalya-harbor', | |
| 97 | - lat: 36.8841, lng: 30.7056, | |
| 98 | - name: 'Antalya - Old Harbor', | |
| 99 | - city: 'Antalya', country: 'Turkey', | |
| 100 | - ...windy('1546441490'), | |
| 101 | - }, | |
| 102 | - // Alanya | |
| 103 | - { | |
| 104 | - id: 'tr-alanya-coast', | |
| 105 | - lat: 36.5437, lng: 31.9935, | |
| 106 | - name: 'Alanya - Coastline', | |
| 107 | - city: 'Alanya', country: 'Turkey', | |
| 108 | - ...windy('1539516234'), | |
| 109 | - }, | |
| 110 | 25 | ]; |
| 111 | 26 | |
| 112 | 27 | export async function fetchTurkeyCameras(): Promise<CctvCamera[]> { |