Files
nodeMap/services/mockApi/fetchGisStationsStaticDistrict.js

69 lines
1.7 KiB
JavaScript

export const fetchGisStationsStaticDistrict = async (url, dispatch, fetchOptions) => {
console.log("⚠️ Mock-API: fetchGisStationsStaticDistrict wird verwendet!");
const mockData = {
Name: "Liste aller Geraete einer bestimmten Karte",
Zeitstempel: "2025-03-05T10:51:20.8210755+01:00",
IdMap: "12",
Points: [
{
LD_Name: "CPL Ismael",
IdLD: 50922,
Device: "CPL V3.5 mit 24 Kü",
Link: "cpl.aspx?ver=35&kue=24&id=50922",
Location_Name: "Littwin",
Location_Short: "LTW",
IdLocation: 24101,
Area_Name: "Rastede",
Area_Short: "",
IdArea: 20998,
X: 53.246112,
Y: 8.162241,
Icon: 20,
System: 1,
Active: 1,
},
{
LD_Name: "LTEModem",
IdLD: 50950,
Device: "LTE Modem LR77",
Link: "lr77.aspx?ver=1&id=50950",
Location_Name: "Littwin",
Location_Short: "LTW",
IdLocation: 24101,
Area_Name: "Rastede",
Area_Short: "",
IdArea: 20998,
X: 53.246112,
Y: 8.162241,
Icon: 12,
System: 5,
Active: 1,
},
{
LD_Name: "GMA ISA",
IdLD: 50951,
Device: "Glättemeldeanlage",
Link: "gma.aspx?ver=1&id=50951",
Location_Name: "Littwin",
Location_Short: "LTW",
IdLocation: 24101,
Area_Name: "Rastede",
Area_Short: "",
IdArea: 20998,
X: 53.246112,
Y: 8.162241,
Icon: 1,
System: 11,
Active: 1,
},
// Die restlichen Daten fügst du genauso ein
],
};
dispatch({
type: "SET_GIS_STATIONS",
payload: mockData.Points,
});
};