Reworking map import to handle postgres data dumps.

This commit is contained in:
Roland 2022-03-31 07:31:15 -06:00
parent be4c3a5021
commit 5178f72b66
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
11 changed files with 194 additions and 109 deletions

View file

@ -513,12 +513,12 @@ export async function setThrottle(on) {
}
export async function getMapImportStatus() {
let response = await apiGet(`${API_URI}/map/pbf`);
let response = await apiGet(`${API_URI}/map/files`);
return await response.json();
}
export async function importPbfs(pbfs) {
let body = {'pbfs': pbfs};
export async function importMapFiles(paths) {
let body = {'files': paths};
let response = await apiPost(`${API_URI}/map/import`, body);
if (response.status === 204) {
return null;