func (v *Provider) Range() (int64, error) {
	res, err := v.apiG()

	if res, ok := res.(StatusData); err == nil && ok {
		if dist := res.EvStatus.DrvDistance; len(dist) == 1 {
			return int64(dist[0].RangeByFuel.EvModeRange.Value), nil
		}

		return 0, api.ErrNotAvailable
	}

	return 0, err
}
// Range implements the api.VehicleRange interface
Range implements the api.VehicleRange interface
// Range implements the api . VehicleRange interface
func (v *Provider) Range() (int64, error) {
	res, err := v.apiG()
	if res, ok := res.(StatusData); err == nil && ok {
		if dist := res.EvStatus.DrvDistance; len(dist) == 1 {
			return int64(dist[0].RangeByFuel.EvModeRange.Value), nil
		}
		return 0, api.ErrNotAvailable
	}
	return 0, err
}
func ( v * Provider ) Range ( ) ( int64 , error ) { res , err := v . apiG ( ) if res , ok := res . ( StatusData ) ; err == nil && ok { if dist := res . EvStatus . DrvDistance ; len ( dist ) == 1 { return int64 ( dist [ 0 ] . RangeByFuel . EvModeRange . Value ) , nil } return 0 , api . ErrNotAvailable } return 0 , err }
Range implements the api.VehicleRange interface
Range implements the api . VehicleRange interface