2021-03-22 03:05:08 +01:00
|
|
|
export abstract class TagsFilter {
|
|
|
|
|
|
|
|
abstract asOverpass(): string[]
|
|
|
|
|
|
|
|
abstract isUsableAsAnswer(): boolean;
|
|
|
|
|
|
|
|
abstract isEquivalent(other: TagsFilter): boolean;
|
|
|
|
|
|
|
|
abstract matchesProperties(properties: any): boolean;
|
|
|
|
|
2021-03-29 02:31:08 +02:00
|
|
|
abstract asHumanString(linkToWiki: boolean, shorten: boolean, properties: any);
|
2021-03-22 03:05:08 +01:00
|
|
|
|
|
|
|
abstract usedKeys(): string[];
|
2021-04-19 18:17:26 +02:00
|
|
|
|
2021-03-29 02:31:08 +02:00
|
|
|
/**
|
|
|
|
* Converts the tagsFilter into a list of key-values that should be uploaded to OSM.
|
2021-04-17 23:36:46 +02:00
|
|
|
* Throws an error if not applicable.
|
|
|
|
*
|
|
|
|
* Note: properties are the already existing tags-object. It is only used in the substituting tag
|
2021-03-29 02:31:08 +02:00
|
|
|
*/
|
|
|
|
abstract asChange(properties:any): {k: string, v:string}[]
|
2021-03-29 01:20:06 +02:00
|
|
|
|
2021-03-22 03:05:08 +01:00
|
|
|
}
|