import { AbstractDistanceTransformer } from '../../../transformer' ; import { GoogleMapsProvider } from '../google-maps.provider' ; import type { DistanceDetailsInterface } from '../../../interface' ; export class GoogleMapsDistanceTransformer extends AbstractDistanceTransformer < GoogleMapsProvider > { constructor ( raw ) { super ( GoogleMapsProvider , raw ) ; } async getDistance ( ) { return this . raw . distance . value ; } async getDuration ( ) { return this . raw . duration . value ; } }