init commit

This commit is contained in:
2025-07-24 02:21:21 +02:00
commit afd46715c2
23 changed files with 1337 additions and 0 deletions

9
src/api/api.ts Normal file
View File

@@ -0,0 +1,9 @@
function callApi(stopId: number) {
const API_URL = `https://projekte.kvv-efa.de/sl3-alone/XSLT_DM_REQUEST?outputFormat=JSON&coordOutputFormat=WGS84[dd.ddddd]&depType=stopEvents&locationServerActive=1&mode=direct&name_dm=${stopId}&type_dm=stop&useOnlyStops=1&useRealtime=1&limit=6&line=kvv%253A22301%253AE%253AH%253As25&line=kvv%253A21012%253AE%253AH%253As25&line=kvv%253A21012%253AE%253AR%253As25&line=kvv%253A22305%253AE%253AH%253As25`;
return fetch(API_URL, {
method: "GET",
});
}
export { callApi };