import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { AppInitService } from '../../core/app-init.service'; export interface GIS { longitude: number; latitude: number; } export interface DisplayPlace { displayName: string; name: string; country: string; administrativeName?: string; wikipediaUrl?: string; location: GIS; } export interface SearchPlace { id: string; displayName: string; name: string; administrativeName?: string; country: string; locationType: string; } export declare class GeonameService { private readonly _http; private _appInitService; constructor(_http: HttpClient, _appInitService: AppInitService); /** * Given a geoname id, resolves the identifier. * * @param id the geiname id to resolve. */ resolveGeonameID(id: string): Observable; /** * Given a search string, searches for places matching the string. * * @param searchString place to search for. */ searchPlace(searchString: string): Observable; }