Chore: make method private, add tests

This commit is contained in:
Pieter Vander Vennet 2024-01-16 04:04:17 +01:00
parent 876c766130
commit a9e145076d
2 changed files with 7 additions and 2 deletions

View file

@ -52,7 +52,7 @@ export class Overpass {
return `${this._interpreterUrl}?data=${encodeURIComponent(query)}`
}
public async ExecuteQuery(query: string): Promise<[FeatureCollection, Date]> {
private async ExecuteQuery(query: string): Promise<[FeatureCollection, Date]> {
const json = await Utils.downloadJson(this.buildUrl(query))
if (json.elements.length === 0 && json.remark !== undefined) {