import type { Site } from "@/lib/fleet/types";

/** Two Munich dealership sites with geofence zones (approx. coords). */
export const sites: Site[] = [
  {
    id: "muc-nord",
    name: "Volvo Zentrum München Nord",
    shortName: "München Nord",
    center: { latitude: 48.1895, longitude: 11.5642, altitude: 520 },
    zones: [
      {
        id: "verkauf",
        name: "Verkaufshalle",
        siteId: "muc-nord",
        polygon: [
          [48.1902, 11.5632],
          [48.1902, 11.5652],
          [48.1892, 11.5652],
          [48.1892, 11.5632],
        ],
      },
      {
        id: "werkstatt",
        name: "Werkstatt",
        siteId: "muc-nord",
        polygon: [
          [48.1891, 11.5632],
          [48.1891, 11.5646],
          [48.1884, 11.5646],
          [48.1884, 11.5632],
        ],
      },
      {
        id: "hof",
        name: "Außenhof",
        siteId: "muc-nord",
        polygon: [
          [48.1891, 11.5647],
          [48.1891, 11.5658],
          [48.1883, 11.5658],
          [48.1883, 11.5647],
        ],
      },
      {
        id: "auslieferung",
        name: "Auslieferung",
        siteId: "muc-nord",
        polygon: [
          [48.1904, 11.5653],
          [48.1904, 11.5662],
          [48.1896, 11.5662],
          [48.1896, 11.5653],
        ],
      },
    ],
  },
  {
    id: "muc-sued",
    name: "Volvo Zentrum München Süd",
    shortName: "München Süd",
    center: { latitude: 48.1012, longitude: 11.5368, altitude: 540 },
    zones: [
      {
        id: "verkauf",
        name: "Verkaufshalle",
        siteId: "muc-sued",
        polygon: [
          [48.1019, 11.5358],
          [48.1019, 11.5378],
          [48.1009, 11.5378],
          [48.1009, 11.5358],
        ],
      },
      {
        id: "werkstatt",
        name: "Werkstatt",
        siteId: "muc-sued",
        polygon: [
          [48.1008, 11.5358],
          [48.1008, 11.5372],
          [48.1001, 11.5372],
          [48.1001, 11.5358],
        ],
      },
      {
        id: "hof",
        name: "Außenhof",
        siteId: "muc-sued",
        polygon: [
          [48.1008, 11.5373],
          [48.1008, 11.5384],
          [48.1000, 11.5384],
          [48.1000, 11.5373],
        ],
      },
      {
        id: "auslieferung",
        name: "Auslieferung",
        siteId: "muc-sued",
        polygon: [
          [48.1021, 11.5379],
          [48.1021, 11.5388],
          [48.1013, 11.5388],
          [48.1013, 11.5379],
        ],
      },
    ],
  },
];
