import { AbstractSuggestionTransformer } from '../../../transformer' ; import { HereProvider } from '../here.provider' ; import type { HereOneResultAddressType , HereOneResultType } from '../interface' ; export class HereSuggestionTransformer extends AbstractSuggestionTransformer < HereProvider > { constructor ( raw ) { super ( HereProvider , raw ) ; } async getFormattedAddress ( ) { return this . getLocationAddress ( ) . Label ?? '' ; } async getPlaceId ( ) { return this . raw . Location . LocationId ; } private getLocationAddress ( ) { return this . raw . Location . Address || { } ; } }