import type { AxiosInstance } from 'axios' ; import { ReverseCommand } from '../../../command' ; import type { ReverseQuery } from '../../../model' ; import type { HereResponseType , HereReverseQueryInterface } from '../interface' ; import { HereCommonCommandMixin } from './mixin' ; link export class HereReverseCommand extends HereCommonCommandMixin ( ReverseCommand ) < HereReverseQueryInterface , HereResponseType > { constructor ( httpClient , private readonly appId , private readonly appCode ) { super ( httpClient , appId , appCode ) ; } static getUrl ( ) { return 'https://reverse.geocoder.api.here.com/6.2/reversegeocode.json' ; } protected async buildQuery ( query ) { return { app_id : this . appId , app_code : this . appCode , language : query . language , maxresults : query . limit , gen : 9 , prox : `${ query . lat },${ query . lon },100` , mode : 'retrieveAddresses' , additionaldata : 'Country2,true;NormalizeNames,true' , } ; } }