init commit
This commit is contained in:
9
src/api/api.ts
Normal file
9
src/api/api.ts
Normal 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 };
|
||||
Reference in New Issue
Block a user