import type { AxiosInstance } from 'axios' ; import { PlaceDetailsCommand } from '../../../command' ; import type { PlaceDetailsQuery } from '../../../model' ; import type { ArcgisPlaceDetailsQueryInterface } from '../interface' ; import { ArcgisGeocodeCommandMixin } from './mixin' ; link export class ArcgisPlaceDetailsCommand extends ArcgisGeocodeCommandMixin ( PlaceDetailsCommand ) < ArcgisPlaceDetailsQueryInterface > { constructor ( httpClient , private readonly token ? ) { super ( httpClient ) ; } static getUrl ( ) { return 'https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates' ; } protected async buildQuery ( query ) { return { token : this . token , forStorage : ! ! this . token , magicKey : query . placeId , langCode : query . language , locationType : 'rooftop' , outFields : 'Addr_type,LongLabel,AddNum,StAddr,City,RegionAbbr,Region,Country,Postal,DisplayX,DisplayY' , f : 'json' , } ; } }