Suche nach Strassen und Hausnummern
This commit is contained in:
1 parent
a16f28b040
commit
518248ca00
12 files changed
+6346
-14
No files matched your search
@@ -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`)
|
||||
|
||||
Reference in new issue
Block a user