Suche nach Strassen und Hausnummern

This commit is contained in:
concierge committed 2026-10-23 22:51:23 +02:00
1 parent a16f28b040
commit 518248ca00
12 files changed
+6346 -14

No files matched your search

+20
View File
@@ -114,6 +114,26 @@ function importCSV(input) {
});
}
function importHouseNumbers(input) {
const file = input.files[0];
if (!file) return;
const formData = new FormData();
formData.append('file', file);
fetch(`${apiBase}/hausnummern/import`, {
method: 'POST',
body: formData
}).then(r => r.json()).then(data => {
if (data.success) {
alert(`${data.count} Hausnummern importiert`);
location.reload();
} else {
alert(data.error);
}
}).finally(() => {
input.value = '';
});
}
function showStreetHistory(streetId) {
currentStreetId = streetId;
fetch(`${apiBase}/strassen/${streetId}/history`)