2024-09-26 19:15:20 +02:00
|
|
|
import { Feature } from "geojson"
|
|
|
|
|
2023-09-25 02:13:24 +02:00
|
|
|
export interface ImageUploader {
|
2023-09-28 23:50:27 +02:00
|
|
|
maxFileSizeInMegabytes?: number
|
2023-09-25 02:13:24 +02:00
|
|
|
/**
|
|
|
|
* Uploads the 'blob' as image, with some metadata.
|
|
|
|
* Returns the URL to be linked + the appropriate key to add this to OSM
|
|
|
|
*/
|
|
|
|
uploadImage(
|
2024-09-26 19:15:20 +02:00
|
|
|
blob: File,
|
|
|
|
currentGps: [number,number],
|
|
|
|
author: string
|
2023-09-28 23:50:27 +02:00
|
|
|
): Promise<{ key: string; value: string }>
|
2023-09-25 02:13:24 +02:00
|
|
|
}
|