Adding adresses to rtept rather than rte.

This commit is contained in:
vdv committed 2023-01-07 15:41:16 +01:00
1 parent 2ca519a53c
commit e7b27cda4e
5 files changed
+33 -20

No files matched your search

+1
View File
@@ -46,6 +46,7 @@ export const getRte = async (params: any) => {
//level 1
if (row.doc.type === 'rtept') {
target.splice(1);
row.doc.doc.id = row.doc._id;
appendToArray(target.at(-1), row.doc.type, row.doc.doc);
target.push(row.doc.doc);
}
+7
View File
@@ -42,3 +42,10 @@ export const putNewRtept = async (id?: IdGpx | IdRte | IdRtept) => {
);
return finalId as IdRtept;
};
export const putRtept = async (params: any) => {
const { id, rtept } = params;
rtept.id = undefined;
await put(id, 'rtept', (doc) => rtept, rtept);
return rtept;
};
+1
View File
@@ -49,6 +49,7 @@ interface Extensions {
'dyo:batterylevel'?: number;
'dyo:useragent'?: string;
'dyo:minZoom'?: number;
address: any;
}
interface Trk {